summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Change in name of the static initializer define.John Birrell1998-04-043-7/+7
| | | | Notes: svn path=/head/; revision=35026
* Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B andPeter Dufault1998-03-286-54/+586
| | | | | | | | | | | | | | | | | | | _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. Notes: svn path=/head/; revision=34925
* For 1.3, NetBSD replaced the swapon() syscall with swapctl() and movedJohn Birrell1998-03-232-2/+46
| | | | | | | | the only call to compat_12 which isn't there by default. Provide a wrapper. Notes: svn path=/head/; revision=34847
* (Ab)use .Vt instead of .Fd for a variable declaration.Bruce Evans1998-03-231-2/+2
| | | | Notes: svn path=/head/; revision=34817
* Fixed bitrot in synopsis. Didn't fix bitrot elsewhere.Bruce Evans1998-03-231-6/+7
| | | | Notes: svn path=/head/; revision=34816
* For 1.3, NetBSD walloped the msync syscall and replaced it withJohn Birrell1998-03-232-2/+59
| | | | | | | | | __msync13. The old one got moved to compat_12. Wrap __msync13 up to look like FreeBSD's msync and be careful to respect the fact that MS_SYNC is 0x0000 on FreeBSD, but 0x0004 on NetBSD. Notes: svn path=/head/; revision=34796
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.AqPhilippe Charnier1998-03-198-28/+32
| | | | Notes: svn path=/head/; revision=34669
* <sys/errno.h> -> <errno.h>Eivind Eklund1998-03-161-1/+1
| | | | Notes: svn path=/head/; revision=34629
* Fixed disordering and inconsistent style in previous commit.Bruce Evans1998-03-121-3/+2
| | | | Notes: svn path=/head/; revision=34511
* Nearly missed this one.John Birrell1998-03-092-2/+40
| | | | | | | | | | List non-default asm sources in MDASM so that they replace the defaults. For funny or incomplete syscalls, list them in NOASM to stop them from getting built as defaults. Notes: svn path=/head/; revision=34388
* Add #include <unistd.h> to get the prototype for __syscall().John Birrell1998-03-091-1/+2
| | | | | | | Cast to long before casting to a void ptr to shut up gcc. Notes: svn path=/head/; revision=34387
* Yikes, this is the worst of the lot. Bruce suggested doing this (!).John Birrell1998-03-091-58/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include the architecture specific sys makefile like previously, but what this contains differs. It defines MDASM which list architecture specific asm code that *replaces* syscalls of the same name defined in MIASM (which gets defined by the syscall.mk or netbsd_syscall.mk dependent of NETBSD_SYSCALLS being defined). If a syscall has a C source implementation or something funny done to it, or just doesn't need default asm source generated for it, then it is listed in NOASM. syscall.mk is generated by makesyscalls.sh with other syscall files. netbsd_syscall.mk is a hand-generated equivalent. So if a new syscall is added and no other makefiles are edited, it will automatically have the default asm source generated for it (whether you want it or not). Anything listed in MDASM gets added to SRCS and gets built. For each syscall name in MIASM, if it doesn't exist in MDASM or NOASM, it gets added to the ASM or ASMR lists to have code generated for it. If the syscall name was listed in HIDDEN_SYSCALLS (intended for use by libc_r, not libc which has it defined, but empty), then the name is added to the ASMR list and gets renamed before being built; otherwise it is added to the ASM list and gets built with the same name. I wonder if this is too complicated. But it works on both i386 and alpha. Notes: svn path=/head/; revision=34386
* Function to return a pointer to the non-threaded errno. This is declaredJohn Birrell1998-03-091-0/+47
| | | | | | | | with a weak symbol so that it won't be linked when linking against libc_r or libpthread. Notes: svn path=/head/; revision=34385
* Compatibility functions for use when __NETBSD_SYSCALLS is defined.John Birrell1998-03-092-0/+222
| | | | Notes: svn path=/head/; revision=34384
* Oops, we don't need NetBSD's malloc 'cause we can turn off utraceJohn Birrell1998-03-092-438/+2
| | | | | | | in phk's malloc. Notes: svn path=/head/; revision=34383
* NetBSD doesn't have a utrace syscall, so don't define that ifJohn Birrell1998-03-091-2/+4
| | | | | | | __NETBSD_SYSCALLS is defined. Notes: svn path=/head/; revision=34382
* Added #include <string.h> to get prototypes.John Birrell1998-03-092-1/+3
| | | | Notes: svn path=/head/; revision=34380
* Change MACHINE to MACHINE_ARCH.John Birrell1998-03-091-12/+4
| | | | | | | | | Add _spinlock.c (stubs) to sources. Nuke tahoe and vax. Notes: svn path=/head/; revision=34379
* Stub functions for thread locking with weak symbols so that they areJohn Birrell1998-03-091-0/+60
| | | | | | | only linked when not linking an application against libc_r or libpthread. Notes: svn path=/head/; revision=34378
* Import sources from NetBSD, tweaked for building in FreeBSD.John Birrell1998-03-0952-0/+3391
| | | | Notes: svn path=/cvs2svn/branches/JB/; revision=34375
* MACHINE -> MACHINE_ARCHJohn Birrell1998-03-091-2/+2
| | | | Notes: svn path=/head/; revision=34374
* Define empty variables in case no names are added to them. This avoidsJohn Birrell1998-03-091-2/+23
| | | | | | | | | | | | | | | | | substitution errors for variables that don't exist. If a machine architecture dependent makefile exists, include it to discover if libc or libc_r is being built with NetBSD syscalls instead of FreeBSD ones. Put a NO_QUAD thingy around the quad makefile so that 64-bit architectures can ignore that sh*t. In the test for MDSRCS being empty, add all MISRCS to SRCS, rather than just ignoring them. Notes: svn path=/head/; revision=34373
* Add an include path to private linc/libc_r/libpthread header files.John Birrell1998-03-091-2/+7
| | | | | | | | | | | | Define the HIDDEN_SYSCALLS macro as empty because libc doesn't have renamed syscalls. This avoids an undefined macro error when libc/sys/Makefile.inc goes to look though it. HIDDEN_SYSCALLS is used by the equivalent makefile to this one in lib/libc_r to list those syscalls that it needs to rename so that libc_r can provide replacement functions. Notes: svn path=/head/; revision=34372
* Add a private (to libc, libc_r and libpthread) header file containingJohn Birrell1998-03-091-0/+52
| | | | | | | | | prototypes for the spinlock functions that will be used for thread locks. libc will have stubs declared with weak symbols. libpthread and libc_r will have functions that really do something. Notes: svn path=/head/; revision=34365
* These files are very specific to FreeBSD kernels, so silently compileJohn Birrell1998-03-092-1/+6
| | | | | | | no code when building a library with __NETBSD_SYSCALLS defined. Notes: svn path=/head/; revision=34361
* NetBSD implements semctl using a __semctl syscall instead of theJohn Birrell1998-03-091-0/+4
| | | | | | | | semsys syscall that FreeBSD kernels use. Grumble. So make the call dependent on if __NETBSD_SYSCALLS is defined. Notes: svn path=/head/; revision=34360
* getvfsbyname() doesn't existing NetBSD, so return ENOSYS if compiledJohn Birrell1998-03-091-1/+5
| | | | | | | into a library with __NETBSD_SYSCALLS defined. Notes: svn path=/head/; revision=34359
* Change a variable to type size_t to suit the sysctl prototype.John Birrell1998-03-091-2/+4
| | | | | | | Add #include <string.h> to get prototypes. Notes: svn path=/head/; revision=34358
* Cast pointer to a long instead of an int to keep a 64-bit compilerJohn Birrell1998-03-091-1/+1
| | | | | | | happy. The code works either way, but I like a clean compile. Notes: svn path=/head/; revision=34357
* Reviewed by: bdePeter Dufault1998-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. Notes: svn path=/head/; revision=34319
* Fixed a few ancient typos, added a little missing stuff, and updatedStephen McKay1998-03-081-20/+23
| | | | | | | | | references to abort() in light of POSIX mandated behaviour. I'm still not 100% happy with much of the wording, but it's better than it was. Notes: svn path=/head/; revision=34310
* Add support for ELF.John Polstra1998-03-071-34/+106
| | | | | | | Switch to ANSI-style function definitions. Notes: svn path=/head/; revision=34196
* Fix resource allocation problems:Bill Paul1998-03-071-94/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Completely recoded the ypmatch cache code. The old code could leak memory: it would allow the cache to grow, but never shrink. The new code imposes the following limits: o The cache is capped at a limit of 5 entries. o Each entry expires after five seconds, at which point its slot is freed. o If an insertion is to be done and all five slots are filled, the oldest entry is forcibly expired to release its slot. Also, the cache is implemented on a per-binding basis rather than having a global cache covering all bindings. This means that each bound domain has its own 5 slot cache. - Changed clntudp_create() to clntudp_bufcreate() so that the xmit/recv message buffer sizes can be set explicitly. NIS transactions are rarely much larger than 1024 bytes since YPMAXRECORD is 1024. The defaults chosen by clntudb_create() are actually much larger than needed. I set the xmit buffer to a little over 1024 and the recv buffer to a little over 2048. This saves a few Kbytes for each NIS binding. - Add my name to the copyright. I think I've made enough changes to this file to merit it. :) Note: these changes should go into the 2.2.x branch, but I'm waiting on feedback from a tester to see if the cache fixes solve the reported memory leak problem. Notes: svn path=/head/; revision=34146
* We don't need to NUL terminate our sun_path.Brian Somers1998-03-061-4/+3
| | | | | | | Pointed out by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> Notes: svn path=/head/; revision=34075
* Nul terminate sockaddr_un::sun_pathBrian Somers1998-03-061-3/+4
| | | | | | | Suggested by: Theo de Raadt <deraadt@openbsd.org> Notes: svn path=/head/; revision=34072
* Make SyslogAddr a sockaddr_un rather than a sockaddr.Brian Somers1998-03-051-10/+12
| | | | | | | | This wasn't a problem in practice as PATH_LOG and PATH_OLDLOG are both < sizeof sockaddr::sa_data. Notes: svn path=/head/; revision=34059
* Reviewed by: msmith, bde long agoPeter Dufault1998-03-041-0/+107
| | | | | | | | POSIX.4 headers and sysctl variables. Nothing should change unless POSIX4 is defined or _POSIX_VERSION is set to 199309. Notes: svn path=/head/; revision=34030
* Fixed uninitialized pointer in previous commit. mktemp() was broken.Bruce Evans1998-03-031-5/+6
| | | | | | | | | I noticed cvs core dumps and uncleaned cvs temporary files in /tmp. Fixed ANSIisms. Notes: svn path=/head/; revision=34016
* Replace previous commit with a check disallowing ptr from runningSteve Price1998-03-011-14/+7
| | | | | | | | | | off the end of the list variable. PR: 5345, 5610 Submitted by: nagao@cs.titech.ac.jp Notes: svn path=/head/; revision=33950
* Strings are terminated by NUL, not NULL.James Raynard1998-02-281-3/+3
| | | | Notes: svn path=/head/; revision=33926
* Remove the config_* routines with permission from Poul-Henning Kamp,Steve Price1998-02-283-265/+3
| | | | | | | | | | the original author. PR: 5834 Discussed with: phk, jkh Notes: svn path=/head/; revision=33899
* Don't add OBJS to CLEANFILES. bsd.obj.mk does it. Some objects wereBruce Evans1998-02-251-3/+1
| | | | | | | duplicated. Notes: svn path=/head/; revision=33798
* Change MACHINE references to MACHINE_ARCH.John Birrell1998-02-201-3/+3
| | | | Notes: svn path=/head/; revision=33669
* Change MACHINE references to MACHINE_ARCH.John Birrell1998-02-204-11/+11
| | | | Notes: svn path=/head/; revision=33668
* Add #include <string.h> to get prototypes.John Birrell1998-02-201-1/+2
| | | | Notes: svn path=/head/; revision=33667
* The NetBSD getlogin syscall has a different name.John Birrell1998-02-201-0/+4
| | | | Notes: svn path=/head/; revision=33666
* Fix a bogus cast for a bogus pointer check. This only checks if theJohn Birrell1998-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-) Notes: svn path=/head/; revision=33665
* NetBSD kernels don't have issetugid(), so #ifdef this out whenJohn Birrell1998-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-) Notes: svn path=/head/; revision=33664
* Need to #include <unistd.h> for nice(3).Steve Price1998-02-181-0/+1
| | | | | | | | PR: 5782 Submitted by: David Malone <dwmalone@maths.tcd.ie> Notes: svn path=/head/; revision=33578
* Submitted by: Jeremy Allison (jallison@whistle.com)Julian Elischer1998-02-182-6/+6
| | | | | | | | | 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! Notes: svn path=/head/; revision=33527