summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
Commit message (Collapse)AuthorAgeFilesLines
* Mention that tftpd(8) also uses syslog(3).jkoshy1998-06-051-2/+3
|
* Correct wrong claim about `telldir()' cookie lifetimes.jkoshy1998-06-031-16/+11
| | | | | PR: 4043 Submitted by: Joe Orthoefer <j_orthoefer@tia.net>
* Add a trivial mechanism for returning a useful default value if one ismsmith1998-06-011-1/+4
| | | | | | | | | available and the kernel MIB setting is zero. Return the result from getpagesize() if the p1003_1b.pagesize MIB value is zero. Suggested by: Joerg Schilling <schilling@fokus.gmd.de>
* Several sources including Unix98 say that semctl's fourthsteve1998-05-311-5/+24
| | | | | | | | | | parameter is optional except where: cmd == {IPC_SET || IPC_STAT || GETALL || SETVAL || SETALL} PR: 2448 Reviewed by: bde Submitted by: Tim Singletary <tsingle@sunland.gsfc.nasa.gov> Minor tweaks by: steve
* Remove references to getvfsbytype. Also remove getvfsbynamesteve1998-05-301-32/+13
| | | | | | as it has its own manpage. Discussed with: bde
* Remove a couple style bugs from the code snippet thatsteve1998-05-261-3/+3
| | | | | | slipped in on the previous commit. Submitted by: bde
* Update code example to reflect current practice.steve1998-05-251-12/+10
|
* NetBSD doesn't have a __getcwd syscall, so set have__getcwd to `no'jb1998-05-151-0/+4
| | | | when building libc with NetBSD syscalls.
* Remove extern int errno and #include <errno.h> to get the proper definition.jb1998-05-051-1/+1
|
* Go back to version 1.16 - it was correct the way it was.brian1998-05-011-6/+6
| | | | Pointed out by: bde
* connect() returns -1 on error - not 0.brian1998-05-011-7/+7
|
* Stubs are required in libc so that it can be used with libpthreadjb1998-04-291-1/+5
| | | | | (and kernel threads), but weak symbols and non-weak symbols of the same name built into libc_r result in unpredictable linking.
* Oops, revert part of a diff that wasn't supposed to have been committed.dg1998-04-281-2/+2
|
* Cache the results of the ps_strings sysctl so that it doesn't have to bedg1998-04-281-10/+12
| | | | redone for every call of setproctitle().
* Improve description.rnordier1998-04-221-5/+6
| | | | Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
* Typo policebrian1998-04-171-1/+1
|
* Change in name of the static initializer define.jb1998-04-041-1/+1
|
* Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B anddufault1998-03-281-53/+54
| | | | | | | | | | | | | | | | _KPOSIX_PRIORITY_SCHEDULING options to work. Changes: Change all "posix4" to "p1003_1b". Misnamed files are left as "posix4" until I'm told if I can simply delete them and add new ones; Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux; Add man pages for _POSIX_PRIORITY_SCHEDULING system calls; Add options to LINT; Minor fixes to P1003_1B code during testing.
* Fixed bitrot in synopsis. Didn't fix bitrot elsewhere.bde1998-03-231-6/+7
|
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aqcharnier1998-03-194-16/+16
|
* Change MACHINE to MACHINE_ARCH.jb1998-03-091-12/+4
| | | | | | Add _spinlock.c (stubs) to sources. Nuke tahoe and vax.
* Stub functions for thread locking with weak symbols so that they arejb1998-03-091-0/+60
| | | | only linked when not linking an application against libc_r or libpthread.
* NetBSD implements semctl using a __semctl syscall instead of thejb1998-03-091-0/+4
| | | | | semsys syscall that FreeBSD kernels use. Grumble. So make the call dependent on if __NETBSD_SYSCALLS is defined.
* getvfsbyname() doesn't existing NetBSD, so return ENOSYS if compiledjb1998-03-091-1/+5
| | | | into a library with __NETBSD_SYSCALLS defined.
* Change a variable to type size_t to suit the sysctl prototype.jb1998-03-091-2/+4
| | | | Add #include <string.h> to get prototypes.
* Cast pointer to a long instead of an int to keep a 64-bit compilerjb1998-03-091-1/+1
| | | | happy. The code works either way, but I like a clean compile.
* Reviewed by: bdedufault1998-03-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Changes to support building with _POSIX_SOURCE set to 199309L: 1. Add sys/_posix.h to handle those preprocessor defs that POSIX says have effects when defined before including any header files; 2. Change POSIX4_VISIBLE back to _POSIX4_VISIBLE 3. Add _POSIX4_VISIBLE_HISTORICALLY for pre-existing BSD features now defined in POSIX. These show up when: _POSIX_SOURCE and _POSIX_C_SOURCE are not set or _POSIX_C_SOURCE is set >= 199309L and vanish when: _POSIX_SOURCE is set or _POSIX_C_SOURCE is < 199309L. 4. Explain these in man 9 posix4; 5. Include _posix.h and conditionalize on new feature test.
* Add support for ELF.jdp1998-03-071-34/+106
| | | | Switch to ANSI-style function definitions.
* We don't need to NUL terminate our sun_path.brian1998-03-061-4/+3
| | | | Pointed out by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
* Nul terminate sockaddr_un::sun_pathbrian1998-03-061-3/+4
| | | | Suggested by: Theo de Raadt <deraadt@openbsd.org>
* Make SyslogAddr a sockaddr_un rather than a sockaddr.brian1998-03-051-10/+12
| | | | | This wasn't a problem in practice as PATH_LOG and PATH_OLDLOG are both < sizeof sockaddr::sa_data.
* Reviewed by: msmith, bde long agodufault1998-03-041-0/+107
| | | | | POSIX.4 headers and sysctl variables. Nothing should change unless POSIX4 is defined or _POSIX_VERSION is set to 199309.
* Replace previous commit with a check disallowing ptr from runningsteve1998-03-011-14/+7
| | | | | | | off the end of the list variable. PR: 5345, 5610 Submitted by: nagao@cs.titech.ac.jp
* Strings are terminated by NUL, not NULL.jraynard1998-02-281-3/+3
|
* Remove the config_* routines with permission from Poul-Henning Kamp,steve1998-02-283-265/+3
| | | | | | | the original author. PR: 5834 Discussed with: phk, jkh
* The NetBSD getlogin syscall has a different name.jb1998-02-201-0/+4
|
* Fix a bogus cast for a bogus pointer check. This only checks if thejb1998-02-201-1/+1
| | | | | pointer is 4-byte aligned. On a 64-bit machine it probably should check that the pointer is 8-byte aligned (eh, Bruce?) 8-)
* NetBSD kernels don't have issetugid(), so #ifdef this out whenjb1998-02-201-1/+5
| | | | | building FreeBSD's libc to run with a NetBSD kernel. We'll get to the alpha kernel later, I promise. 8-)
* Need to #include <unistd.h> for nice(3).steve1998-02-181-0/+1
| | | | | PR: 5782 Submitted by: David Malone <dwmalone@maths.tcd.ie>
* Submitted by: Jeremy Allison (jallison@whistle.com)julian1998-02-181-3/+1
| | | | | | fix a slight confusion about which draft of threads we are supporting. this allows something as big and ugly as samba to be compiled with libc_r and still work! our user-level pthreads seems amazingly robust!
* Mention when bidirectional features first appeared.jkh1998-02-171-0/+4
|
* signal() returns SIG_ERR, not just -1. The sys/signal.h header filejb1998-02-151-1/+1
| | | | | | | provides the cast from -1 to the signal() return type, so no further casting by programmers should be required. Pointed out by: bde (of course).
* Describe signal handling. Don't describe the old implementation. Don'tbde1998-02-131-35/+17
| | | | | | define `microsecond'. Cleaned up English. Obtained from: mostly from sleep.3
* Describe signal handling. Don't describe the old implementation. Cleanedbde1998-02-131-30/+23
| | | | | | up English. Obtained from: mostly from NetBSD
* Fixed disordering of MLINKS in previous commit. Fixed old disorder inbde1998-02-121-17/+15
| | | | MLINKS.
* Fix _listmatch() again so that it works with group lists containing onlywpaul1998-02-121-7/+14
| | | | | | | | | one group. Thanks to Dirk Froemberg for supplying a patch for this. I will be closing out the PR and moving this to the 2.2.5 branch later: my login sessions to freefall from Columbia are ridiculously spotty today. PR: 5610 Submitted by: Dirk Froemberg <ibex@physik.TU-Berlin.DE>
* Do signal handlig he Posix wayguido1998-02-101-40/+11
| | | | Obtained from: NetBSD (after complains from Bruce)
* Move the trampolines for dlopen and related functions from crt0.ojdp1998-02-094-3/+460
| | | | | | | | | | | | | | | into libc. This reduces the size of every dynamically linked executable by 248 bytes, and it reduces the size of static executables by a lesser amount. It also eliminates some global namespace pollution. With this change in place, the source for dlfcn.h should probably be moved to "/usr/src/include". I'll save that for another day. Compatibility note: Programs which use dlopen, if compiled on systems with this change, will not run on systems with a libc from prior to this change. Very few programs use dlopen, so I think that is OK.
* Document the fpgetprec/fpsetprec functions in their man page.jlemon1998-02-041-0/+1
| | | | | | Add cross-references to the elusive fpsetmask() function to various other man pages. Reviewed by: bde
* Cleanup the manpage now that setpwent has a void return type.steve1998-02-011-7/+7
|
OpenPOWER on IntegriCloud