summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
Commit message (Collapse)AuthorAgeFilesLines
* Update gethostname() prototype to match source and standard.wollman2003-08-191-1/+1
|
* Fixed namespace pollution and unsorting of the 1003.1-1990 list inbde2003-07-011-1/+1
| | | | previous commit.
* Add a libc function execvP that takes the search path as an arguement.gordon2003-06-291-0/+1
| | | | | | | | Change execvp to be a wrapper around execvP. This is necessary for some of the /rescue pieces. It may also be more generally applicable as well. Submitted by: Tim Kientzle <kientzle@acm.org> Approved by: Silence on arch@
* o Add typedef for off_t, pid_t, and useconds_t.mike2002-12-291-6/+17
| | | | | o Use useconds_t where appropriate. o Fix a bug in typedef for uid_t (5.0-R candidate).
* This is David Schultz's swapoff code which I am finally able to commit.dillon2002-12-151-0/+1
| | | | | | | This should be considered highly experimental for the moment. Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> MFC after: 3 weeks
* Fix XSI (X/Open) namespace support.mike2002-11-121-11/+18
|
* Create a small library function, check_utility_compat(3), to determinewollman2002-10-281-0/+1
| | | | | | | | whether a named utility should behave in FreeBSD 4.x-compatible mode or in a standard mode (default standard). The configuration is done malloc(3)-style, with either an environment variable or a symlink. Update expr(1) to use this new interface.
* Update limits and configuration parameters for 1003.1/TC1/D6.wollman2002-10-271-0/+3
| | | | | | | | | | | Implement new sysconf keys. Change the implenentation of _SC_ASYNCHRONOUS_IO in preparation for the next set of changes. Move some limits which had been in <sys/syslimits.h> to <limits.h> where they belong. They had only ever been in syslimits.h to provide for the kernel implementation of the CTL_USER MIB branch, which went away with newsysctl years ago. (There is a #error in <sys/syslimits.h> which I will downgrade in the next commit.)
* Move the _POSIX_VERSION constant from <unistd.h> to <sys/unistd.h>, somike2002-10-131-2/+1
| | | | that it can be used in-kernel for a sysctl.
* Back down to 1003.2-1992 for the time being -- it is causing too manywollman2002-09-251-1/+1
| | | | headaches for common but deprecated uses of standard utilities.
* o Move select() helper macros from <sys/types.h> to <sys/select.h>.mike2002-09-231-0/+5
| | | | | | | | | | o Include <sys/select.h> from <sys/types.h> in the __BSD_VISIBLE case, so applications and base software can be slowly updated. o Prototype select() in <sys/select.h>. It was previously only prototyped in <unistd.h>. o Add some XXX's to <sys/types.h>. Reviewed by: -standards
* Define constants for those POSIX options and option groups which arewollman2002-09-211-18/+237
| | | | | | | | | | | | | | | | | (or would be) implemented (or not) exclusively in user-land. A threads expert should check over the values I have set to make sure that they correctly reflect reality. Move all sysconf() keys here from <sys/unistd.h> as they are not implemented in the kernel. Add new keys from 1003.1-2001 final text. (Some additional keys are expected in TC1.) Add some protection against redundant declarations between <stdlib.h> and <unistd.h> for some functions which XSI requires in the former and BSD traditionally declares in the latter. Restrict qualifiers and other changes from 1003.1-2001 have not been made to the functions prototyped here. (3 of 5)
* Style: One space between "restrict" qualifier and "*".tjr2002-09-061-2/+2
|
* 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
OpenPOWER on IntegriCloud