summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Note that '+' and '?' are not special characters in basic REs but theySteve Price1998-02-141-2/+5
| | | | | | | | | | can be simulated using bounds. PR: 5708 Submitted by: Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de> Notes: svn path=/head/; revision=33352
* Describe signal handling. Don't describe the old implementation. Don'tBruce Evans1998-02-131-35/+17
| | | | | | | | | define `microsecond'. Cleaned up English. Obtained from: mostly from sleep.3 Notes: svn path=/head/; revision=33303
* Describe signal handling. Don't describe the old implementation. CleanedBruce Evans1998-02-131-30/+23
| | | | | | | | | up English. Obtained from: mostly from NetBSD Notes: svn path=/head/; revision=33299
* Many security improvements from OpenBSD:Warner Losh1998-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. Notes: svn path=/head/; revision=33295
* Fixed disordering of MLINKS in previous commit. Fixed old disorder inBruce Evans1998-02-121-17/+15
| | | | | | | MLINKS. Notes: svn path=/head/; revision=33287
* Fix _listmatch() again so that it works with group lists containing onlyBill Paul1998-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> Notes: svn path=/head/; revision=33278
* - Bump the minor # due to the addition of the stringlist functions.Nate Williams1998-02-121-2/+2
| | | | | | | Reviewed by: asami Notes: svn path=/head/; revision=33263
* Do signal handlig he Posix wayGuido van Rooij1998-02-101-40/+11
| | | | | | | Obtained from: NetBSD (after complains from Bruce) Notes: svn path=/head/; revision=33225
* Move the trampolines for dlopen and related functions from crt0.oJohn Polstra1998-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. Notes: svn path=/head/; revision=33180
* Document the fpgetprec/fpsetprec functions in their man page.Jonathan Lemon1998-02-043-1/+4
| | | | | | | | | Add cross-references to the elusive fpsetmask() function to various other man pages. Reviewed by: bde Notes: svn path=/head/; revision=33107
* Cleanup the manpage now that setpwent has a void return type.Steve Price1998-02-011-7/+7
| | | | Notes: svn path=/head/; revision=32984
* XOpen says the void setpwent(void) is correct. Also call setpassent(0)Steve Price1998-02-011-7/+2
| | | | | | | | | instead of duplicating code, albeit trivial (inspired by NetBSD). PR: 5524 Notes: svn path=/head/; revision=32962
* Kill lfs files that were causing make world to fail.Warner Losh1998-01-311-3/+2
| | | | Notes: svn path=/head/; revision=32927
* PR: 5573Daniel O'Callaghan1998-01-272-2/+4
| | | | | | | | Submitted by: garbanzo@hooked.net Add strncasecmp, strncmp to NAME field. Notes: svn path=/head/; revision=32818
* Fix a cast from a pointer to a long instead of an int which was enoughJohn Birrell1998-01-241-2/+2
| | | | | | | to ruin a 64-bit day. Notes: svn path=/head/; revision=32743
* Eliminate sprintfWarner Losh1998-01-211-1/+2
| | | | | | | Obtained from:OpenBSD (theo de raadt) Notes: svn path=/head/; revision=32687
* Fixed #includes in the synopsis and in an example. <sys/socket.h>Bruce Evans1998-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). Notes: svn path=/head/; revision=32647
* Moved most of the (source-level) compatibility hacks for the vfsconfBruce Evans1998-01-201-2/+4
| | | | | | | | interface from sys/mount.h to libc/getvfsent.c The new interface is now the default. Notes: svn path=/head/; revision=32643
* Added cross references to mincore(2) and minherit(2).Alexander Langer1998-01-201-0/+3
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32638
* Added #include <sys/types.h> to synopsis.Alexander Langer1998-01-202-1/+4
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32637
* Started getting rid of the compatibility cruft for the Lite1 mount()Bruce Evans1998-01-171-0/+2
| | | | | | | | | | | and the pre-Lite2 vfsconf interfaces. For getvfsent.c, just define _OLD_VFSCONF. This will give the current default macro hacks in <sys/mount.h> when the default is reversed. This is an intermediate step. Notes: svn path=/head/; revision=32594
* Fixed missing #include in synopsis.Bruce Evans1998-01-161-0/+2
| | | | Notes: svn path=/head/; revision=32565
* Fixed wrong prototype for clock_getres().Bruce Evans1998-01-161-2/+2
| | | | Notes: svn path=/head/; revision=32564
* Fixed wrong prototypes. Most of the prototypes had missing return types,Bruce Evans1998-01-161-9/+19
| | | | | | | or missing const's or `short *' instead of `[ug]id_t *' in argument types. Notes: svn path=/head/; revision=32563
* Fixed missing return type in a prototype.Bruce Evans1998-01-161-0/+1
| | | | Notes: svn path=/head/; revision=32562
* Return the correct errno from getcwd() even if free() or closedir()Stephen McKay1998-01-151-0/+4
| | | | | | | | | overwrites it. This actually showed up when running under an old kernel when free() called the madvise() stub which set errno, causing getcwd() to return EOPNOTSUPP instead of ERANGE. Notes: svn path=/head/; revision=32530
* Add #ifndef __NETBSD_SYSCALLS around calls to issetugid() whichJohn Birrell1998-01-153-6/+18
| | | | | | | do not exist in NetBSD 1.3. Notes: svn path=/head/; revision=32524
* Typo fix.Alexander Langer1998-01-151-2/+12
| | | | | | | | | | Added EOPNOTSUPP and EMLINK to errors section. Added symlink(2) xref. Obtained from: OpenBSD Notes: svn path=/head/; revision=32514
* Include string.h for memcpy function prototype.John Birrell1998-01-141-0/+1
| | | | Notes: svn path=/head/; revision=32507
* Consistently reference init as .Xr init 8.Alexander Langer1998-01-131-2/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32494
* Return type and argument to sleep are unsigned int.Alexander Langer1998-01-131-2/+3
| | | | Notes: svn path=/head/; revision=32493
* Dump the constant NGROUPS in favor of the POSIX way:Alexander Langer1998-01-131-9/+6
| | | | | | | | | sysconf(_SC_NGROUPS_MAX). Submitted by: bde Notes: svn path=/head/; revision=32489
* Use .Fn for sysconf(_SC_CLOCK_TCK) reference.Alexander Langer1998-01-131-1/+3
| | | | | | | Added $Id$. Notes: svn path=/head/; revision=32488
* Formatting fix & improved comment for struct timeval.Alexander Langer1998-01-111-1/+3
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32451
* Fixed brk(2) xref.Alexander Langer1998-01-111-1/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32450
* Added sys/types.h to synopsis as per POSIX.Alexander Langer1998-01-111-1/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32449
* Replace sys/param.h with sys/types.h as per POSIX.Alexander Langer1998-01-111-1/+9
| | | | | | | | | Document the special case of gidsetlen == 0. Partially obtained from: OpenBSD Notes: svn path=/head/; revision=32448
* Document that arg max is controllable via sysctl.Alexander Langer1998-01-111-5/+7
| | | | Notes: svn path=/head/; revision=32447
* Formatting fix.Alexander Langer1998-01-111-1/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32438
* Added EMFILE and ENFILE to errors section.Alexander Langer1998-01-111-0/+5
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32437
* .Xr sigvec --> sigactionAlexander Langer1998-01-111-2/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=32436
* Add <sys/types.h> to synopsis.Alexander Langer1998-01-111-1/+4
| | | | | | | | | | Correct a grammatical error. Add cross-reference to setrlimit(2). Obtained from: OpenBSD Notes: svn path=/head/; revision=32435
* Make a couple of the stat flags dependent on the sys/stat.h header fileJohn Birrell1998-01-093-3/+27
| | | | | | | | | | | | | | that this source is compiled against. This source is referenced by install which is needed as a build tool and must be able to compile against NetBSD headers and libraries if we have a hope of supporting another architecture. With this change, that's two working programs down and 3945 (?) to go. The other one was make, but that didn't need any changes to work under FreeBSD/Alpha. 8-) Notes: svn path=/head/; revision=32361
* handle long usernames more carefullyWarner Losh1998-01-071-5/+8
| | | | | | | | Reviewed by: guido Obtained from: OpenBSD (Theo de Raadt) Notes: svn path=/head/; revision=32299
* Convert to mdoc format.Philippe Charnier1998-01-051-248/+146
| | | | Notes: svn path=/head/; revision=32271
* size_t -> unsignedAndrey A. Chernov1998-01-041-3/+3
| | | | | | | | in arguments length INT_MAX overflow check Suggested-by: bde Notes: svn path=/head/; revision=32253
* Expanded cross references.Alexander Langer1998-01-029-8/+20
| | | | Notes: svn path=/head/; revision=32193
* 1. EOF was returned when the buffer size was larger than INT_MAX. ThisAndrey A. Chernov1998-01-012-10/+10
| | | | | | | | | | | | | case has very little to do with the output size being larger than INT_MAX. 2. The new #include of <limits.h> was disordered. 3. The new declaration of `on' was disordered (integer types go together). 4. Testing an unsigned value for > 0 was fishy. Submitted by: bde Notes: svn path=/head/; revision=32168
* Drop the use of caddr_t in conjunction with mmap(2).Alexander Langer1997-12-311-4/+4
| | | | Notes: svn path=/head/; revision=32133
* Convert caddr_t --> void * for sys/mman.h functions.Alexander Langer1997-12-319-16/+16
| | | | | | | | | | | | | | | | | | | mlock, mmap, mprotect, msync, munlock, and munmap are defined by POSIX as taking void *. The const modifier has been added to mlock, munlock, and mprotect as the standard dictates. minherit comes from OpenBSD and has been updated to conform with their recent change to void *. madvise and mincore are not defined by POSIX, but their arguments have been modified to be consistent with the POSIX-defined functions. mincore takes a const pointer, but madvise does not due to the MADV_FREE case. Discussed with: bde Notes: svn path=/head/; revision=32131