summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fixed formatting of the MADV_FREE flag description.Alexander Langer1997-12-301-3/+3
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=32118
* Typo fix.Alexander Langer1997-12-301-2/+2
| | | | Notes: svn path=/head/; revision=32114
* Document MS_SYNC.Alexander Langer1997-12-301-0/+1
| | | | Notes: svn path=/head/; revision=32112
* The terminating character in strings is `NUL', not `NULL'.Wolfram Schneider1997-12-282-2/+2
| | | | Notes: svn path=/head/; revision=32051
* fork() checks RLIMIT_NPROC, not RLIMIT_NOFILE.Tim Vanderhoek1997-12-261-1/+1
| | | | | | | | pr: docs/5260 submitted-by: Niall Smart [3]njs3@doc.ic.ac.uk Notes: svn path=/head/; revision=32001
* Removed unnecessary initialization of hp in gethostbyaddr_r.Alexander Langer1997-12-251-3/+3
| | | | Notes: svn path=/head/; revision=31984
* Add overflow checks: if output size becomes bigger than INT_MAX,Andrey A. Chernov1997-12-251-2/+13
| | | | | | | just return EOF Notes: svn path=/head/; revision=31983
* Correct type of stored argument place (from previous fix)Andrey A. Chernov1997-12-242-4/+4
| | | | Notes: svn path=/head/; revision=31982
* 1) Restore back comment about snprintf()Andrey A. Chernov1997-12-241-7/+10
| | | | | | | | 2) Optimize string buffer copy to call memcpy() and update pointers only for count > 0, it makes snprintf(NULL, 0, ...) more efficient Notes: svn path=/head/; revision=31981
* Return back to BSD snprintf semantics which recent C9x standard adoptsAndrey A. Chernov1997-12-243-21/+23
| | | | | | | | | | | | | instead of Singe Unix, thanx Bruce for explaining, I am not realize standards war was there. But now, fix n == 0 case to not return error and fix check for too big n. Things left to do: check for overflow in arguments. Notes: svn path=/head/; revision=31980
* 1) Oops! Insert again if (n == 0) return 0.Andrey A. Chernov1997-12-242-10/+10
| | | | | | | | | | | | | | | | | | | | | | Final word is Bruce's quote: C9x specifies the BSD4.4-Lite behaviour: [#3] ... Thus, the null-terminated output has been completely written if and only if the returned value is less than n. It means that if we not have any null-terminated output as for n == 0 we can't return value less than n, so we forced to return value equal to n i.e. 0 The next good thing is glibc compatibility, of course. 2) Do check for too big n in machine-independent way. 3) Minor optimization assuming EOF is < 0 Notes: svn path=/head/; revision=31979