summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Add prototype for rfork().peter1996-02-231-0/+1
|
* Reviewed by: julian and (hsu?)julian1996-01-221-0/+1
| | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations
* Make the argument list for the (non-Posix) fchown() consistent withjoerg1995-02-161-1/+1
| | | | | | Posix chown(), and also with the man page. Submitted by: Doug Rabson <dfr@render.com>
* Declare [gs]etdomainname().wollman1994-09-181-0/+2
|
* Declare functions that don't return as having attribute __dead2.bde1994-09-081-1/+1
|
* BSD 4.4 Lite Include Sourcesrgrimes1994-05-241-0/+175
OpenPOWER on IntegriCloud