summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-24190-997/+1582
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch
* Add a new item to kinfo_proc: ki_sflag to mirror p_sflag.jhb2001-01-241-1/+2
|
* Protect against multiple inclusion.sobomax2001-01-241-0/+5
|
* Minor fixes:sobomax2001-01-241-3/+3
| | | | | | | | - Use "OPOST | ONLCR" as a c_oflag in the raw mode instead of 0, which should make debug output mode readable; - flush input buffer when switching to/from raw mode. This should prevent leaking raw scancodes into your shell prompt when program called VGLKeyboardEnd() w/o processing all scancodes in the buffer.
* I made a last-minute change before the last commit which brokewollman2001-01-231-3/+1
| | | | the errno semantics. Get it (closer to) right this time.
* mdoc(7) police: replaced empty line with .Pp, updated document date.ru2001-01-231-2/+2
|
* Add a couple of new library interfaces (will be activated when thewollman2001-01-232-0/+88
| | | | relavant header file changes are committed) for POSIX support.
* Add the function sysctlnametomib to libc. Details on the semanticsmckusick2001-01-233-3/+111
| | | | and use of this function have been added to the sysctl.3 manual page.
* Revert rev. 1.27. This file only included <sys/select.h> because ofwollman2001-01-201-3/+0
| | | | | brokenness introduced in <sys/select.h> rev. 1.8 which is now OBE. <sys/tty.h> and <sys/selinfo.h> together do the right thing.
* mdoc(7) police: removed leading whitespaces that are not insideru2001-01-191-2/+2
| | | | Bd/Ed; these hardly degrade the quality of the produced output.
* man(7) -> mdoc(7).ru2001-01-181-583/+475
|
* Document EHOSTDOWN error.ben2001-01-171-0/+2
| | | | | PR: 24410 Submitted by: Martin Horcicka <horcicka@vol.cz>
* Clarify comments referring to strlcat() usagejedgar2001-01-171-1/+22
| | | | Obtained from: OpenBSD
* - Reverse the order of two loop invariant to ensure strlcat() does notjedgar2001-01-171-3/+6
| | | | | | | | | | attempt to read memory when siz is 0 - Clarify comments referring to strlcat() usage PR: 24278, 24295 Submitted by: Tony Finch <dot@dotat.at> Richard Kettlewell <rjk@greenend.org.uk> Reviewed by: -audit
* Merge the documentation for sigsetmask() and sigblock() into aben2001-01-173-99/+31
| | | | | | | | single manual page, appropriately linked, since this removes the decision of which page the (previously non-existent) sigmask.2 MLINK should point at. Submitted by: will
* man(7) -> mdoc(7).ru2001-01-175-1416/+1143
|
* rstat(1) and rstat_svc(8) are the early versions ofru2001-01-173-88/+0
| | | | the rup(1) and rpc.rstatd(8) manpages respectively.
* o When returning NULL, return (NULL) instead of return (0).rwatson2001-01-178-24/+24
| | | | | Submitted by: jedgar Obtained from: TrustedBSD Project
* SIGABRT is *not* the same as calling abort(), so don't claim that it is.ben2001-01-161-2/+2
| | | | | | | (abort() flushes all open stdio streams for one thing.) PR: 24249 Submitted by: Edwin Groothuis <mavetju@chello.nl>
* The bit about sigpending not detecting any errors is a lie, it can returnben2001-01-161-2/+7
| | | | | | | EFAULT. PR: 24360 Submitted by: Kenneth Ingham <ingham@i-pi.com>
* mdoc(7) police: fixed broken references.ru2001-01-162-3/+1
|
* Prepare for mdoc(7)NG.ru2001-01-1611-14/+14
|
* Version bump, because of ABI incompatibility.nsouch2001-01-151-1/+1
| | | | Suggested by: Maxim Sobolev <sobomax@FreeBSD.org>
* Add Truecolor 16 and 32bits support. Note that 24bits modes are notnsouch2001-01-134-35/+251
| | | | | | | | | | | supported since it's not easy to put 3 bytes accross 64Kb windows of memory. This should not be such a problem with linear framebuffers. There is no major interface modification except that the color type becomes u_long instead of byte. So one just need to recompile his application. Approved by: Soren Schmidt <sos@freebsd.dk>
* man(7) -> mdoc(7).ru2001-01-122-138/+248
|
* mdoc(7) police: Ft/Vt now accept punctuation-type arguments.ru2001-01-127-13/+13
|
* man(7) -> mdoc(7).ru2001-01-121-266/+433
|
* man(7) -> mdoc(7).ru2001-01-121-77/+100
|
* man(7) -> mdoc(7).ru2001-01-115-681/+845
|
* mdoc(7) police: fixed (minor) mdoc bugs introduced in previous revision.ru2001-01-101-2/+3
|
* o acl_from_text.c:rwatson2001-01-094-48/+20
| | | | | | | | | | | | - errno is already set to ENOMEM (as appropriate) when asprintf(), strdup(), or acl_init() fails o acl_to_text.c: - the return value of the initial strdup() is not checked - errno is already set to ENOMEM (as appropriate) when asprintf and acl_init() fails - let the the default: case use 'goto error_label' for consistency Submitted by: jedgar
* o bzero() the ACL structure only if malloc() returns non-NULL.rwatson2001-01-092-2/+4
| | | | Submitted by: jedgar
* o Correct spelling error from patch in previous commit.rwatson2001-01-092-2/+2
|
* o Add missing initialization of errno from error returns ofrwatson2001-01-096-0/+6
| | | | | | cap_get_fd(), cap_get_file() and cap_get_proc(). Submitted by: jedgar
* The user name for anonymous ftp is now "anonymous".des2001-01-081-10/+17
| | | | | Remove the period after the last man page reference. Add a reference to RFC1635, and sort the RFC references by number.
* Back out previous (accidental) commit.des2001-01-081-1/+1
|
* Use "anonymous" rather than "ftp" as login name for anonymous ftp.des2001-01-082-4/+3
| | | | | | Rather than have a separate (misnamed) FTP_ANONYMOUS_PASSWORD constant, use FTP_ANONYMOUS_USER (i.e. "anonymous") to construct the anonymous ftp password if getlogin() fails.
* o Make acl_from_text() support uid's and gid's as well as usernamesrwatson2001-01-082-12/+36
| | | | | | | and groupnames, by adding appropriate support to acl_name_to_id() in acl_support.c Submitted by: green
* Correct check of getgrnam outputjedgar2001-01-072-2/+2
| | | | Approved by: rwatson
* Fix bugs in the handling of > 8 positional arguments:archie2001-01-061-14/+18
| | | | | | | | - The stack was getting smashed by __grow_type_table() - reallocf() was being called with the wrong pointer - The maximum argument number was being incorrectly computed PR: misc/23521
* Use a unified libgcc rather than a seperate one for threaded andjhb2001-01-061-2/+2
| | | | | | | | non-threaded programs. This provides threaded programs with the needed exception frame symbols. parts submitted by: Max Khon <fjoe@iclub.nsu.ru> PR: 23252
* gethostbyname2() is able to lookup AF_INET6.alex2001-01-061-10/+0
| | | | | PR: 23823 Noticed by: Andrew Arensburger <arensb@ooblick.com>
* Use a unified libgcc rather than a seperate one for threaded andobrien2001-01-069-18/+14
| | | | | | | | non-threaded programs. This provides threaded programs with the needed exception frame symbols. parts submitted by: Max Khon <fjoe@iclub.nsu.ru> PR: 23252
* Force strong references to several pthread_* functions which are weaklyobrien2001-01-063-0/+96
| | | | | | | | | | | | | | | | referenced to by libgcc.a. This is needed when linking statically as SVR4 (ie, ELF) behavior is to only link in a module if it satisfies an undefined strong reference from somewhere. (this surprises a lot of people) Things are different when using shared libs, the entire library and its modules and their symbols are available at run-time (when the weak reference is seen to still be unsatisfied and is satisfied on the spot), this is not the case with static libs. Thus one can have a static binary with unresolved week references, and at run-time dereference a NULL pointer. Submitted by: eischen
* Add rcsid's.obrien2001-01-043-9/+23
|
* The instructions on doing something with src/lib/csu/powerpc.obrien2001-01-041-0/+26
|
* PowerPC version of the C runtime support.obrien2001-01-041-0/+124
| | | | | This is an amalgamation of the NetBSD macppc crt0.c (which the copyright reflects) and the FreeBSD/Alpha crt1.c.
* PowerPC verions of the crt initialization and finalization files requiredobrien2001-01-042-0/+91
| | | | by the ELF ABI.
* Fix SCCS id string abuse I introduced.obrien2001-01-021-1/+1
|
* Fix typo: ispec -> ipsecben2001-01-011-1/+1
| | | | | PR: 24005 Submitted by: Jimmy Olgeni <olgeni@uli.it>
OpenPOWER on IntegriCloud