summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* MACHINE -> MACHINE_ARCHjb1998-03-091-2/+2
|
* Define empty variables in case no names are added to them. This avoidsjb1998-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.
* Add an include path to private linc/libc_r/libpthread header files.jb1998-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.
* Add a private (to libc, libc_r and libpthread) header file containingjb1998-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.
* These files are very specific to FreeBSD kernels, so silently compilejb1998-03-092-1/+6
| | | | no code when building a library with __NETBSD_SYSCALLS defined.
* 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.
* Fixed a few ancient typos, added a little missing stuff, and updatedmckay1998-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.
* Add support for ELF.jdp1998-03-071-34/+106
| | | | Switch to ANSI-style function definitions.
* Fix resource allocation problems:wpaul1998-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.
* 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.
* Fixed uninitialized pointer in previous commit. mktemp() was broken.bde1998-03-031-5/+6
| | | | | | I noticed cvs core dumps and uncleaned cvs temporary files in /tmp. Fixed ANSIisms.
* 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
* Don't add OBJS to CLEANFILES. bsd.obj.mk does it. Some objects werebde1998-02-251-3/+1
| | | | duplicated.
* Change MACHINE references to MACHINE_ARCH.jb1998-02-201-3/+3
|
* Change MACHINE references to MACHINE_ARCH.jb1998-02-204-11/+11
|
* Add #include <string.h> to get prototypes.jb1998-02-201-1/+2
|
* 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-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!
* correct a typo I just noticed.jkh1998-02-171-1/+1
|
* 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).
* Note that '+' and '?' are not special characters in basic REs but theysteve1998-02-141-2/+5
| | | | | | | can be simulated using bounds. PR: 5708 Submitted by: Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de>
* 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
* Many security improvements from OpenBSD:imp1998-02-133-35/+113
| | | | | | | | | | | implement mkdtemp improve man page for mk*temp use arc4random to seed extra XXX's randomly Optionally warn of unsafe mktemp uses From various commits by theo de raadt and Todd Miller. Obtained from: OpenBSD This should go into 2.2 after a testing period.
* 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>
* - Bump the minor # due to the addition of the stringlist functions.nate1998-02-121-2/+2
| | | | Reviewed by: asami
* 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-043-1/+4
| | | | | | 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
|
* XOpen says the void setpwent(void) is correct. Also call setpassent(0)steve1998-02-011-7/+2
| | | | | | instead of duplicating code, albeit trivial (inspired by NetBSD). PR: 5524
* Kill lfs files that were causing make world to fail.imp1998-01-311-3/+2
|
* PR: 5573danny1998-01-272-2/+4
| | | | | Submitted by: garbanzo@hooked.net Add strncasecmp, strncmp to NAME field.
* Fix a cast from a pointer to a long instead of an int which was enoughjb1998-01-241-2/+2
| | | | to ruin a 64-bit day.
* Eliminate sprintfimp1998-01-211-1/+2
| | | | Obtained from:OpenBSD (theo de raadt)
* Fixed #includes in the synopsis and in an example. <sys/socket.h>bde1998-01-201-1/+1
| | | | | | isn't a prerequisite, since it isn't required for the prototypes and isn't always needed to call the functions (the address family might be a variable).
OpenPOWER on IntegriCloud