Problems with stat()
-{WinterWolf}-
wntrwolf at nephillim.net
Wed Nov 24 17:47:50 CST 1999
~sdpm~
I have a question maybe someone can answer because I can't seem to find
a reference to it anywhere.
How do I convert the file MODE returned by stat() into a MODE I can use
with chmod()? For example, I have a set of files that when stat()'ed
return 34056 as their MODE. The MODE returned by stat() supposedly
includes both file type and permissions. Still, even counting the 3 as a
file type (regular file) that still leaves me with 4(set uid)056. When I
do an ls -l on the files, their permissions show as
-r----s--- which in my mind converts to 2(set gid)410 . . . doesn't make
any sense.
Anyone have any ideas?
--
Regards,
MRDII
--
Mario R. Delgado aka WinterWolf
wntrwolf at nephillim.net
http://www.nephillim.net/theden
"I am so smart, I am so smart,
S-M-R-T . . . I mean, S-M-A-R-T!"
Homer J. Simpson
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/FA d-@ s+:+ a- C++$ UBHS++++$ P+++$>++++$ L- E---
W+++$ N+ o? K? w !O !M V-- PS+ PE Y+ PGP t(+) 5 X+(++)
R+ tv+ b++ DI++ D+ G e+>++ h---- r+++ y++++
------END GEEK CODE BLOCK------
~sdpm~
The posting address is: san-diego-pm-list at hfb.pm.org
List requests should be sent to: majordomo at hfb.pm.org
If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:
unsubscribe san-diego-pm-list
If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.
More information about the San-Diego-pm
mailing list