summaryrefslogtreecommitdiff
path: root/include/unistd.h
AgeCommit message (Collapse)AuthorFilesLines
2012-05-22support _BSD_SOURCE feature test macroRich Felker1-3/+17
patch by Isaac Dunham. matched closely (maybe not exact) to glibc's idea of what _BSD_SOURCE should make visible.
2012-05-20move getpass decl to the right placeRich Felker1-0/+1
2012-05-04add support for ugly *64 functions with _LARGEFILE64_SOURCERich Felker1-0/+10
musl does not support legacy 32-bit-off_t whatsoever. off_t is always 64 bit, and correct programs that use off_t and the standard functions will just work out of the box. (on glibc, they would require -D_FILE_OFFSET_BITS=64 to work.) however, some programs instead define _LARGEFILE64_SOURCE and use alternate versions of all the standard types and functions with "64" appended to their names. we do not want code to actually get linked against these functions (it's ugly and inconsistent), so macros are used instead of prototypes with weak aliases in the library itself. eventually the weak aliases may be added at the library level for the sake of using code that was originally built against glibc, but the macros will still be the desired solution in the headers.
2012-04-22implement getusershell, etc. legacy functionsRich Felker1-0/+3
I actually wrote these a month ago but forgot to integrate them. ugly, probably-harmful-to-use functions, but some legacy apps want them...
2012-04-22getdtablesize is not standard; move it to its correct spot in unistd.hRich Felker1-1/+1
2012-04-22add getresuid and getresgid syscall wrappersRich Felker1-0/+2
2012-04-18legacy junk compatibility grab-bagRich Felker1-0/+2
- add the rest of the junk traditionally in sys/param.h - add prototypes for some nonstandard functions - add _GNU_SOURCE to their source files so the compiler can check proto
2012-02-17add get_current_dir_name functionRich Felker1-0/+1
2011-09-13fix various errors in function signatures/prototypes found by nszRich Felker1-3/+3
2011-08-12implement forkallRich Felker1-0/+1
this is a "nonstandard" function that was "rejected" by POSIX, but nonetheless had its behavior documented in the POSIX rationale for fork. it's present on solaris and possibly some other systems, and duplicates the whole calling process, not just a single thread. glibc does not have this function. it should not be used in programs intending to be portable, but may be useful for testing, checkpointing, etc. and it's an interesting (and quite small) example of the usefulness of the __synccall framework originally written to work around deficiencies in linux's setuid syscall.
2011-04-27correct variadic prototypes for execl* familyRich Felker1-3/+3
the old versions worked, but conflicted with programs which declared their own prototypes and generated warnings with some versions of gcc.
2011-04-13fix prototypes/signature for setgroups, etc.Rich Felker1-1/+1
2011-04-03prototype getdtablesize (nonstandard function)Rich Felker1-0/+1
2011-04-03add setresuid/setresgid functions (nonstandard)Rich Felker1-0/+2
2011-04-01remove obsolete and useless useconds_t typeRich Felker1-3/+2
2011-02-27implement fexecveRich Felker1-0/+1
2011-02-19prototypes for brk and sbrkRich Felker1-0/+2
2011-02-15feature test support in unistd.hRich Felker1-23/+27
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+464