summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* s/_thread_sys_write/__sys_write/Daniel Eischen2001-01-313-6/+6
| | | | | | | Submitted by: Mike Heffner <mheffner@vt.edu> Notes: svn path=/head/; revision=71856
* Unbreak world by correctly specifying the prototype for __sys_aio_suspend.Daniel Eischen2001-01-293-3/+3
| | | | | | | | | A make buildworld was done but not with the committed pthread_private.h. Reported by: Manfred Antar <null@pozo.com> Notes: svn path=/head/; revision=71808
* Add a few ``const''s to silence some -Wwrite-strings warningsBrian Somers2001-01-291-7/+9
| | | | Notes: svn path=/head/; revision=71796
* _exit in libc is now __sys_exit not __sys__exit.Daniel Eischen2001-01-297-21/+21
| | | | | | | | | Add another check for thread library initialization (jdp, we really need a way to get _thread_init called at program start before any constructors are run). Notes: svn path=/head/; revision=71771
* Clean up syscall generation in libc by removing HIDDEN_SYSCALLSDaniel Eischen2001-01-2924-254/+79
| | | | | | | | | | | | | | | | | and treating (almost) all system calls the same way: __sys_foo - actual syscall foo, _foo - weak definitions to __sys_foo Change PSEUDO syscalls (currently only _exit and _getlogin) to be __sys_foo (T) and _foo (W). Add $FreeBSD$ to a few files to satisfy commitprep. Suggested by: bde Notes: svn path=/head/; revision=71770
* Ignore leading witespace in the string given to PacketAliasProxyRule().Brian Somers2001-01-291-0/+1
| | | | Notes: svn path=/head/; revision=71763
* Update Makefile for the new sources.Jeroen Ruigrok van der Werven2001-01-281-1/+5
| | | | Notes: svn path=/head/; revision=71760
* Call trimdomain properly for ip4 addresses.Brian Somers2001-01-281-30/+30
| | | | | | | | PR: 24659 realhostname_sa() stuff submitted by: Jim.Pirzyk@disney.com Notes: svn path=/head/; revision=71753
* s/err1/errx/.Hajimu UMEMOTO2001-01-261-2/+2
| | | | | | | | | http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi?log=1673 Obtained from: KAME Notes: svn path=/head/; revision=71678
* Comment only change; s/_thread_sys_/__sys_/Daniel Eischen2001-01-264-8/+8
| | | | Notes: svn path=/head/; revision=71663
* Comment change only; s/_thread_sys_/__sys_/Daniel Eischen2001-01-261-1/+1
| | | | Notes: svn path=/head/; revision=71662
* Don't hardcode geometry of VESA_800x600 raster text mode (80x25). Instead saveMaxim Sobolev2001-01-251-2/+8
| | | | | | | actual geometry before switching to the graphics mode. Notes: svn path=/head/; revision=71643
* Set properly the PixelBytes field for 8bits modes.Nicolas Souchu2001-01-251-0/+2
| | | | | | | Submitted by: Maxim Sobolev <sobomax@FreeBSD.org> Notes: svn path=/head/; revision=71623
* -pthread -> -lc_rDaniel Eischen2001-01-243-3/+3
| | | | Notes: svn path=/head/; revision=71586
* Add weak definitions for wrapped system calls. In general:Daniel Eischen2001-01-24306-3478/+3895
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _foo - wrapped system call foo - weak definition to _foo and for cancellation points: _foo - wrapped system call __foo - enter cancellation point, call _foo(), leave cancellation point foo - weak definition to __foo Change use of global _thread_run to call a function to get the currently running thread. Make all pthread_foo functions weak definitions to _pthread_foo, where _pthread_foo is the implementation. This allows an application to provide its own pthread functions. Provide slightly different versions of pthread_mutex_lock and pthread_mutex_init so that we can tell the difference between a libc mutex and an application mutex. Threads holding mutexes internal to libc should never be allowed to exit, call signal handlers, or cancel. Approved by: -arch Notes: svn path=/head/; revision=71581
* Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-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 Notes: svn path=/head/; revision=71579
* Add a new item to kinfo_proc: ki_sflag to mirror p_sflag.John Baldwin2001-01-241-1/+2
| | | | Notes: svn path=/head/; revision=71577
* Protect against multiple inclusion.Maxim Sobolev2001-01-241-0/+5
| | | | Notes: svn path=/head/; revision=71519
* Minor fixes:Maxim Sobolev2001-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. Notes: svn path=/head/; revision=71518
* I made a last-minute change before the last commit which brokeGarrett Wollman2001-01-231-3/+1
| | | | | | | the errno semantics. Get it (closer to) right this time. Notes: svn path=/head/; revision=71438
* mdoc(7) police: replaced empty line with .Pp, updated document date.Ruslan Ermilov2001-01-231-2/+2
| | | | Notes: svn path=/head/; revision=71416
* Add a couple of new library interfaces (will be activated when theGarrett Wollman2001-01-232-0/+88
| | | | | | | relavant header file changes are committed) for POSIX support. Notes: svn path=/head/; revision=71414
* Add the function sysctlnametomib to libc. Details on the semanticsKirk McKusick2001-01-233-3/+111
| | | | | | | and use of this function have been added to the sysctl.3 manual page. Notes: svn path=/head/; revision=71409
* Revert rev. 1.27. This file only included <sys/select.h> because ofGarrett Wollman2001-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. Notes: svn path=/head/; revision=71289
* mdoc(7) police: removed leading whitespaces that are not insideRuslan Ermilov2001-01-191-2/+2
| | | | | | | Bd/Ed; these hardly degrade the quality of the produced output. Notes: svn path=/head/; revision=71263
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-181-583/+475
| | | | Notes: svn path=/head/; revision=71216
* Document EHOSTDOWN error.Ben Smithurst2001-01-171-0/+2
| | | | | | | | PR: 24410 Submitted by: Martin Horcicka <horcicka@vol.cz> Notes: svn path=/head/; revision=71193
* Clarify comments referring to strlcat() usageChris D. Faulhaber2001-01-171-1/+22
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=71192
* - Reverse the order of two loop invariant to ensure strlcat() does notChris D. Faulhaber2001-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 Notes: svn path=/head/; revision=71191
* Merge the documentation for sigsetmask() and sigblock() into aBen Smithurst2001-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 Notes: svn path=/head/; revision=71177
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-175-1416/+1143
| | | | Notes: svn path=/head/; revision=71175
* rstat(1) and rstat_svc(8) are the early versions ofRuslan Ermilov2001-01-173-88/+0
| | | | | | | the rup(1) and rpc.rstatd(8) manpages respectively. Notes: svn path=/head/; revision=71159
* o When returning NULL, return (NULL) instead of return (0).Robert Watson2001-01-178-24/+24
| | | | | | | | Submitted by: jedgar Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=71142
* SIGABRT is *not* the same as calling abort(), so don't claim that it is.Ben Smithurst2001-01-161-2/+2
| | | | | | | | | | (abort() flushes all open stdio streams for one thing.) PR: 24249 Submitted by: Edwin Groothuis <mavetju@chello.nl> Notes: svn path=/head/; revision=71129
* The bit about sigpending not detecting any errors is a lie, it can returnBen Smithurst2001-01-161-2/+7
| | | | | | | | | | EFAULT. PR: 24360 Submitted by: Kenneth Ingham <ingham@i-pi.com> Notes: svn path=/head/; revision=71124
* mdoc(7) police: fixed broken references.Ruslan Ermilov2001-01-162-3/+1
| | | | Notes: svn path=/head/; revision=71107
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-1611-14/+14
| | | | Notes: svn path=/head/; revision=71097
* Version bump, because of ABI incompatibility.Nicolas Souchu2001-01-151-1/+1
| | | | | | | Suggested by: Maxim Sobolev <sobomax@FreeBSD.org> Notes: svn path=/head/; revision=71062
* Add Truecolor 16 and 32bits support. Note that 24bits modes are notNicolas Souchu2001-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> Notes: svn path=/head/; revision=70991
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-122-138/+248
| | | | Notes: svn path=/head/; revision=70977
* mdoc(7) police: Ft/Vt now accept punctuation-type arguments.Ruslan Ermilov2001-01-127-13/+13
| | | | Notes: svn path=/head/; revision=70974
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-121-266/+433
| | | | Notes: svn path=/head/; revision=70966
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-121-77/+100
| | | | Notes: svn path=/head/; revision=70959
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-115-681/+845
| | | | Notes: svn path=/head/; revision=70936
* mdoc(7) police: fixed (minor) mdoc bugs introduced in previous revision.Ruslan Ermilov2001-01-101-2/+3
| | | | Notes: svn path=/head/; revision=70874
* o acl_from_text.c:Robert Watson2001-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 Notes: svn path=/head/; revision=70841
* o bzero() the ACL structure only if malloc() returns non-NULL.Robert Watson2001-01-092-2/+4
| | | | | | | Submitted by: jedgar Notes: svn path=/head/; revision=70840
* o Correct spelling error from patch in previous commit.Robert Watson2001-01-092-2/+2
| | | | Notes: svn path=/head/; revision=70839
* o Add missing initialization of errno from error returns ofRobert Watson2001-01-096-0/+6
| | | | | | | | | cap_get_fd(), cap_get_file() and cap_get_proc(). Submitted by: jedgar Notes: svn path=/head/; revision=70838
* The user name for anonymous ftp is now "anonymous".Dag-Erling Smørgrav2001-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. Notes: svn path=/head/; revision=70797