[cs631apue] Archive state?

yluo4 yluo4 at stevens.edu
Mon Oct 7 14:51:12 EDT 2013


   I use strmode(), so I don't need to worry about the type.  It can 
display automatically.  Maybe you should try to use strmode.  It makes 
your life easier.


On 10/07/2013 2:45 PM, Tejas Nadkarni wrote:
> 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 [1]
>> _______________________________________________
>> cs631apue mailing list
>> cs631apue at lists.stevens.edu
>> https://lists.stevens.edu/mailman/listinfo/cs631apue [1]
> 
> 
> 
> Links:
> ------
> [1] https://lists.stevens.edu/mailman/listinfo/cs631apue


More information about the cs631apue mailing list