Anybody know how to determine the umask of a running process under
Call umask() to change the umask. It returns the old umask. You can thenQuote:>Anybody know how to determine the umask of a running process under
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Don't bother cc'ing followups to me.
Is there any way to determine the umask of a running process under
AIX? Apart from making it dump core, I mean.
getprocs() seemed likely but as far as I can see the returned
structs don't contain the umask. The umask lives in (struct
user).U_cmask, but I can't see a way to read it. There seems to be
no PT_READ_U under AIX, either.
All opinions expressed are solely those of the author and not of
Direct telephone line: +44 161 8041