Age | Commit message (Collapse) | Author |
|
|
|
|
|
added new function string_to_mode(char *m_string, mode_t base) which
parses a given string and converts it to a mode_t.
If either + or - are part of m_string the permissions are either
added or removed from base.
Currently support for permision copy is missing (e.g. g=u),
but all other flags should work.
Format for m_string: either symbolic modes or octal representation.
symbolic modes:
[auog][[+-=][rwxst]*]
examples:
string_to_mode("u=rwx,g=rw,o=r", 0);
string_to_mode("a-x", 0777);
string_to_mode("0744", 0);
|
|
fprintf().
|
|
|
|
|
|
cleanups on kill.c.
|
|
bzero case pretty well.
|
|
|
|
|
|
an integer.
|
|
be improved.
|
|
is stored in an unsigned variable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the original position before exiting.
|
|
|
|
|
|
|
|
(Yeah, I know sysfs hasn't actually got an API, but I like to pretend...)
|
|
shouldn't die when it's told to chop out a subsection of a string.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
understanding zero-context hunks.
|
|
|
|
|
|
|
|
default and have [p]error_exit() always return nonzero anyway.
|
|
|
|
|
|
|
|
tweaks.
|
|
unused portion of the buffer to 0, which can touch and allocate physical
pages for a large virtual mapping.)
|
|
as a yottabyte suffix. Also, the shift increment needs to be a long constant
on 64-bit platforms for the top three suffixes to mean anything.
|
|
|
|
message when called
from get_optflags().
|
|
|
|
|