summaryrefslogtreecommitdiff
path: root/include/unistd.h
AgeCommit message (Collapse)Author
2008-06-25Move _POSIX_THREAD_SAFE_FUNCTIONS into unistd.h and set it to 200112Todd C. Miller
now that we support all the _r functions required by POSIX 1003.1-2001. Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@
2008-04-29Remove duplicate psignal(3) and sys_siglist definitions. signal.hKurt Miller
is the correct place for them and nothing gets them from here in base/xenocara/ports. no objection millert@ okay kettenis@
2008-04-24- correct brk(2) prototype and man page to match implementation and POSIX.Kurt Miller
brk(2) returns an int value not a void *. brk(2) returns 0 upon success not a pointer to the new end of memory. okay millert@, kettenis@, deraadt@
2006-12-20zap bogus sentinel, as noticed by dasn.Marc Espie
okay theo
2006-08-28zap argument name, okay millert@Marc Espie
2005-12-13First step in include files overhaul. Use __FOO_VISIBLE (as definedTodd C. Miller
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
2005-11-24undelete died a while back; millert okTheo de Raadt
2005-11-21Move contents of sys/select.h to sys/selinfo.h in preparation for aTodd C. Miller
userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
2005-11-20brk() and sbrk() should use void *, not char *. Note that sbrk()Todd C. Miller
should take intptr_t, not int, but we don't presently have intptr_t available from unistd.h. OK marco@
2005-05-27mktemp(3) et al. go in stdlib.h, not unistd.h. While there be moreTodd C. Miller
explicit about mktemp(3) in the man page.
2004-01-13Prototype closefrom(); tedu@ OKTodd C. Miller
2003-08-07des_cipher 3rd param is int32_t not longTheo de Raadt
2003-08-01add __bounded__ attributes for userland headers; enabled with -WboundedAnil Madhavapeddy
ok deraadt@
2003-06-26backout the __bounded__ attributes for a while; requested by deraadt@Anil Madhavapeddy
2003-06-26Mark various standard library functions with the __bounded__ attribute.Anil Madhavapeddy
You must have an up-to-date gcc for this! deraadt@ ok
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-10Do not let userland access the swapon system call anymore (nothing uses itMiod Vallat
anyway). ok deraadt@ weingart@
2002-12-03GNU-like getopt_long() from NetBSD with changes by me to supportTodd C. Miller
getopt_long_only(). At some point this should replace the BSD getopt(3) but we are not there yet. While I am here add protection from the multiple getopt() definitions due to conflicting standards.
2002-10-30Add [gs]etres[ug]id(2) syscall to libc and use it in emulating some 4.3BSDTodd C. Miller
functions.
2002-10-25NULL is now 0L so it is the same size as a pointer.Todd C. Miller
OK mickey@ and discussed with deraadt@
2002-09-17uncommit, since it breaks macppc libc. millert and miod have now said theyTheo de Raadt
did NOT approve those for commit. why did mickey feel he was ok to go commiting a set of diffs which had not been passed around and tested by people? we don't know. mickey, have you got something to say for yourself?
2002-09-17move __syscall prototype into unistd.h (like everybody else) and avoid ↵Michael Shalayeff
private protos for it everywhere; millert@ ok
2002-08-30Put sentinel back in.Marc Espie
2002-06-07Backout previous change. Since it requires people to upgrade gcc, we wantMiod Vallat
to give them a larger timeslot to do that. Requested by deraadt@ and various people on icb or vocally.
2002-06-05Use attribute((sentinel)) on functions where it makes sense.Marc Espie
(this will warn if they are used without a terminating NULL pointer. Note *pointer*, very useful for arches where 0 != (void *)0, in size) okay millert@
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-08-07remove redundant __noreturn__ attributes now that __dead is sane for modern gccTodd C. Miller
2000-12-06use __x__ formats for __attribute__ arguments; guenther@gac.eduTheo de Raadt
2000-09-12o add missing getsid() prototypeTodd C. Miller
o fix typo in getsid() that broke getsid(pid) where pid != 0 o cause getsid() and getpgid() to return EPERM if requesting the id of a session/process group not in the current session o check for NULL session in getsid() for exiting processes
2000-07-19from freebsd:Michael Shalayeff
strtofflags/fflagstostr to convert file flags to/from binary from/into a string as used in chflags(1). use u_int32_t instead of u_long (as freebsd does). increase libc minor. millert@ ok.
2000-04-20prototyping for p{read,write}{,v}Theo de Raadt
2000-02-19swapctl 2nd arg is constTheo de Raadt
2000-01-27add IPv6-ready rcmd() friends.Jun-ichiro itojun Hagino
rcmd(): IPv4 only rcmd_af(): af independent ruserok(): af independent iruserok(): IPv4 only iruserok_sa(): af independent
1999-12-16rresvport_af() and bindresvport_af()Theo de Raadt
1999-09-17Be thorough about NULL as __null for C++.Marc Espie
1999-06-11Define NULL to be __null for C++: better quality of implementation.Marc Espie
__null is a magic constant of integral type that converts to a null pointer as should be, but warns for ambiguity when used to resolved an overload between an integral type and a pointer type.
1999-05-22Add swapctl(2) prototype.Tobias Weingartner
1998-11-20Add thread-safety to libc, so that libc_r will build (on i386 at least).David Leonard
All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO
1998-11-19add getpgid() proto; formTheo de Raadt
1998-06-30add mkstemp(char *template, int suffixlen) interfaceTheo de Raadt
1998-05-13change size parameter to size_tTheo de Raadt
1998-04-25readlink() 3rd param is size_t; XPGTheo de Raadt
1998-02-16be more careful for _XOPEN_SOURCETheo de Raadt
1998-02-10more explicit protosTheo de Raadt
1998-02-10move proto to unistd.hTheo de Raadt
1997-12-27Make usleep prototype match manual page and implementationThorsten Lockert
1997-12-22add XPG4.2 lockf; kleinkTheo de Raadt
1997-11-16move proto to sys/stat.h; XPG4.2Theo de Raadt
1997-06-20Add mkdtemp(3)Todd C. Miller