[cs631apue] Archive state?

Tejas Nadkarni tnadkarn at stevens.edu
Mon Oct 7 14:45:36 EDT 2013


Correct but I can't find what macro or to check for with st_mode to see if
it's an archive. I'm not using strmode, I'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.



On Mon, Oct 7, 2013 at 2:42 PM, yluo4 <yluo4 at stevens.edu> wrote:

>   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.
>
>
>
> On 10/07/2013 2:35 PM, Tejas Nadkarni wrote:
>
>> What are you using to detect these file types? I don't believe there
>> are any macros with stat to do this and eve the ls implementation on
>> Ubuntu doesn't seem to treat archives differently from what I can
>> tell.
>>
>> a Archive state 1.
>> A Archive state 2.
>>
>> Any hints on where to look into this further?
>>
>> Thanks,
>> Tejas
>>
>>
>> ______________________________**_________________
>> cs631apue mailing list
>> cs631apue at lists.stevens.edu
>> https://lists.stevens.edu/**mailman/listinfo/cs631apue<https://lists.stevens.edu/mailman/listinfo/cs631apue>
>>
> ______________________________**_________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/**mailman/listinfo/cs631apue<https://lists.stevens.edu/mailman/listinfo/cs631apue>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20131007/18c3cd50/attachment-0001.html>


More information about the cs631apue mailing list