summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
Commit message (Collapse)AuthorAgeFilesLines
...
* o Merge <machine/ansi.h> and <machine/types.h> into a new headermike2002-08-211-12/+12
| | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien
* Support POSIX/SUS ``programming environment'' mistake in confstr().wollman2002-07-151-0/+15
|
* Move _CS_PATH from <sys/unistd.h> to <unistd.h> -- the kernel isn't involvedwollman2002-07-151-0/+2
| | | | in confstr() processing.
* getopt(3) was also added in 1003.2-1992.wollman2002-07-151-4/+4
|
* Fix visibility:wollman2002-07-151-11/+14
| | | | | | | - symlink() is from 1003.1-2001 and XPG4.2 - fchown() is from 1003.1-2001 - fsync() is from ISO/IEC 9945-1:1995 - confstr() is from 1003.2-1992
* Partially fix namespace visibility issues by using new visibility macros.wollman2002-06-151-38/+70
| | | | | Some issues still remain, and will require research in old POSIX standards if we care to get them right.
* o Implement <sys/_types.h>, a new header for storing types that aremike2002-04-011-1/+26
| | | | | | | | | | | | | | | MI, not required to be a fixed size, and used in multiple headers. This will grow in time, as more things move here from <sys/types.h> and <machine/ansi.h>. o Add missing type definitions (uint16_t and uint32_t) to <arpa/inet.h> and <netinet/in.h>. o Reduce pollution in <sys/types.h> by using `#if _FOO_T_DECLARED' widgets to avoid including <sys/stdint.h>. o Add some missing type definitions to <unistd.h> and note the ones that still need to be added. o Make use of <sys/_types.h> primitives in <grp.h> and <sys/types.h>. Reviewed by: bde
* Breath deep and take __P out of the system include files.imp2002-03-231-151/+148
| | | | | | # This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure.
* Change brk's prototype from char *brk(const char *) to int brk(const void *)dwmalone2002-01-241-2/+2
| | | | | | | | | | | | | | | and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t). This makes us more consistant with NetBSD and standards which include these functions. Bruce pointed out that ptrdiff_t would probably have been better than intptr_t, but this doesn't match other implimentations. Also remove local declarations of sbrk and unnecessary casting. PR: 32296 Tested by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 1 month
* Use the proper type (gid_t) for (group)->gr_gid to be orthogonalmarkm2002-01-221-2/+2
| | | | | | with uid_t usage and (user)->pw_uid. PR: 3242
* Fix support for K&R C.mike2001-12-221-1/+2
| | | | MFC after: 3 days
* NFS split forgot to prototype nfsclnt() syscall, do it.alfred2001-11-131-0/+1
|
* - Put missing prototype for rcmd() in <unistd.h>.ru2001-11-091-0/+2
| | | | | | | - Clean up the manpage. - style(9) rcmdsh.c. Committed from: BSDCon/EU 2k+1 terminal room
* o Update unistd.h with the prototype for the new eaccess(2) system call.rwatson2001-09-211-0/+1
| | | | Obtained from: TrustedBSD Project
* Implement getpeereid(3), a front-end to the LOCAL_PEERCREDdd2001-08-171-0/+1
| | | | | | | socket option for the Unix domain. It's weaker than the socket option (this only returns the uid and gid, while the socket opt. can return the entire group list), and is implemented mostly for compatibility with OpenBSD.
* Drop nested __P(). This trips up Supelec's dcc.rnordier2001-05-271-1/+1
|
* Change prototype to getlogin_r to reflect recent change to itsdeischen2001-01-011-1/+1
| | | | implementation (conformance to '96 POSIX standard).
* Move setproctitle() from libutil to libc (after a repo-copy)brian2000-09-021-0/+1
| | | | | | | | | and bump __FreeBSD_version to 500012 to mark the occasion. setproctitle() is prototyped in unistd.h as opposed to stdlib.h where OpenBSD and NetBSD have it. Reviewed by: peter
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIgreen2000-08-221-0/+2
| | | | | | | | | | | | | | for crypt(3) by now. In any case: Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8). The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :) Reviewed by: peter
* Add a prototype for rfork_thread().peter2000-07-291-0/+1
| | | | | | | | | pid_t rfork_thread(int forkflags, void *stack, int (*func)(void *arg), void *arg); A new process is created, presumably using RFMEM shared address space. The child process switches to the supplied stack, which is set up with a function call frame. The function is called with the supplied arguement. If the function returns, the return value will be used with _exit(2).
* Add strtofflags and fflagstostr to libc.joe2000-06-171-0/+2
|
* Revert part of the last commit, remove {g|s}etflags from the libcjoe2000-02-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | interface, and statically link them to the programs using them. These functions, upon reflection and discussion, are too generically named for a library interface with such specific functionality. Also the api that they use, whilst ok for private use, isn't good enough for a libc function. Additionally there were complications with the build/install-world process. It depends heavily upon xinstall, which got broken by the change in api, and caused bootstrap problems and general mayhem. There is work in progress to address future problems that may be caused by changes in install-chain tools, and better names for {g|s}etflags can be derived when some future program requires them. For now the code has been left in src/lib/libc/gen (it started off in src/bin/ls). It's important to provide library functions for manipulating file flag strings if we ever want this interface to be adopted outside of the source tree, but now isn't necessarily the right moment with 4.0-release just around the corner. Approved: jkh
* sync iruserok() extension API with other BSDsshin2000-02-011-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of rcmd related function is need to be updated to support IPv6. Some of them are already updated as standard document. But there is also several de-facto functions and they are not listed in standard documents. They are, iruserok() (used by rlogind, rshd) ruserok() (used by kerberos, etc) KAME package updated those functions in original way. iruserok_af() ruserok_af() But recently there was discussion on IETF IPng mailing list about how to sync those API, and it is decided, -Those function is not standard and not documented. -But let BSDs sync their API as de-facto. And after some discussion, it is announced that -add update to iruserok() as iruserok_sa() -no ruserok() API change(it is only updated internaly) So I sync those API before 4.0 is released. The changes are, -prototype changes -ruserok() internal update (use iruserok_sa() inside) -removal of ruserok_af() -change iruserok_af() as static functioin, and also prefix the name with __. -add iruserok_sa() (Just call __iruserok_af() inside) -adding flag AI_ALL to getipnodebyaddr() called from __icheckhost(). This is necessary to support IPv4 communication via AF_INET6 socket could be correctly authenticated via iruserok_sa() -irusreok_af() call is replaced to iruserok_sa() call in rlogind, and rshd. Approved by: jkh
* Historically file flags (schg, uschg, etc) have been converted fromjoe2000-01-271-0/+2
| | | | | | | | | | | | | | | | | string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags. Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc. There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags. The manual page could probably be improved upon ;)
* several tcp apps IPv6 updateshin2000-01-251-0/+2
| | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Add prototypes for [sg]etres[ug]id().peter2000-01-171-0/+4
|
* Fixed disordering, misformatting, and duplicate declaration ofbde2000-01-141-3/+2
| | | | iruserok_af() in previous commit.
* libc rcmd update for IPv6.shin2000-01-131-0/+4
| | | | | | | | A new function bindresvport2(), AF independent version of bindresvport() is also added. Reviewed by: sumikawa Obtained from: KAME project
* Fixed missing declaration of getlogin_r(3).bde1999-12-231-0/+2
|
* Make profil() 64bit-safe for alpha.simokawa1999-07-161-1/+1
| | | | | | | uintfptr_t may be better for offset, but we must wait until the definition of uintfptr_t moves from machine/profile.h. Reviewed by: bde
* Declare mkstemps().bde1999-04-091-0/+1
|
* Add prototypes for pread and pwrite.dt1999-04-041-0/+2
|
* optreset is a POSIX extension, make it visible in POSIX_SOURCE scope.msmith1999-01-111-1/+1
| | | | Submitted by: Andrzej Bialecki <abial@nask.pl>
* POSIX introduced optreset to deal with multiple invocationsmsmith1999-01-111-0/+1
| | | | | | | | | | of getopt (as in, multiple input lines :). This is documented in the man page and is used in the code, but unistd.h and stand.h do not declare it. Incidentally, it prevents me fixing a bug in loader's code... :-) PR: misc/9373 Submitted by: "Daniel C. Sobral" <dcs@newsguy.com>
* Fixed whitespace lossage and long lines in previous commit.bde1998-07-111-5/+5
|
* Declare lockf().dt1998-07-081-0/+8
|
* Remove duplicate declsbrian1998-04-191-2/+0
| | | | Not objected to by: freebsd-hackers
* Added forgotten declaration of mkdtemp().bde1998-03-121-0/+1
|
* Change usleep return type from void to int to match OpenGroup specs.ache1997-10-221-1/+1
|
* Prototypes for getsid() and getpgid(). Also, prefix type names inpeter1997-08-191-1/+3
| | | | setpgrp() prototype with _ as per style(9).
* remove stray forward declaration for struct timespecpeter1997-05-131-3/+0
| | | | Pointed out by: bde
* Oops, move clock_*() and nanosleep() to time.hpeter1997-05-121-4/+0
| | | | Submitted by: Peter Dufault <dufault@hda.com>
* prototype clock_settime(), clock_gettime(), clock_getres(), nanosleep().peter1997-05-121-0/+7
|
* #ifdef'ed the declaration of lseek() so that -Wredundant-decls doesn'tbde1997-04-131-0/+10
| | | | | | | | cause noise. Duplicated the lseek() redeclaration hack for all functions involving off_t's (ftruncate(), mmap() and truncate()) to help broken programs work.
* Declare issetugid()peter1997-04-051-0/+1
| | | | Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3200
* Declare lchown()..peter1997-03-311-0/+1
|
* Merge Lite2 changes -peter1997-03-111-1/+9
| | | | move getopt etc declarations from stdlib.h to unistd.h
* Don't use __dead or __pure in user code. They were obfuscationsbde1996-09-141-4/+2
| | | | | | for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong.
* Fixed new and old standards conformance bugs. The non-POSIX confstr() wasbde1996-07-171-3/+2
| | | | | | in the POSIX section for a log time. The non-POSIX getgrouplist() and setgroups() were recently added to the POSIX section although setgroups() was already in the non-POSIX section.
* General -Wall warning cleanup, part I.jkh1996-07-121-0/+2
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
OpenPOWER on IntegriCloud