<div dir="ltr">Correct but I can&#39;t find what macro or to check for with st_mode to see if it&#39;s an archive. I&#39;m not using strmode, I&#39;m using macros to check the value of st_mode and nothing exists from what I can tell in man pages or on internet to determine if something is an archive let alone state1 or state2.<div>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 7, 2013 at 2:42 PM, yluo4 <span dir="ltr">&lt;<a href="mailto:yluo4@stevens.edu" target="_blank">yluo4@stevens.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">  I think you use strmode() can figure it out.  For example, strmode(st_mode, str_mode), then str_mode[0] can tell you what type it is.<div>
<div class="h5"><br>
<br>
<br>
On 10/07/2013 2:35 PM, Tejas Nadkarni wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
What are you using to detect these file types? I don&#39;t believe there<br>
are any macros with stat to do this and eve the ls implementation on<br>
Ubuntu doesn&#39;t seem to treat archives differently from what I can<br>
tell.<br>
<br>
a Archive state 1.<br>
A Archive state 2.<br>
<br>
Any hints on where to look into this further?<br>
<br>
Thanks,<br>
Tejas<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
cs631apue mailing list<br>
<a href="mailto:cs631apue@lists.stevens.edu" target="_blank">cs631apue@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue" target="_blank">https://lists.stevens.edu/<u></u>mailman/listinfo/cs631apue</a><br>
</blockquote>
______________________________<u></u>_________________<br>
cs631apue mailing list<br>
<a href="mailto:cs631apue@lists.stevens.edu" target="_blank">cs631apue@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue" target="_blank">https://lists.stevens.edu/<u></u>mailman/listinfo/cs631apue</a><br>
</blockquote></div><br></div>