summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Adjust for kern.ps_strings and PS_STRINGS not being a pointer. This isbde1998-12-161-8/+7
| | | | | | | | an unimprovement here. I thought it would be an improvement, as in libkvm, but here we can access the strings directly. Use sysctlbyname() instead of sysctl() and trust it to give a nonzero address if it succeeds.
* Add reminder to return memory allocated by this call.imp1998-12-161-1/+10
| | | | Obtained from: OpenBSD
* Reviewed by: JKHwes1998-12-142-87/+217
| | | | | | Submitted by: Wes Peters Added strtok_r (reentrant) function and man page.
* Commit out caveat about hardlinks to directories since they aresteve1998-12-131-27/+27
| | | | | | no longer possible. PR: 8337
* PR: docs/9050dillon1998-12-131-0/+1
| | | | | Add reference to required include file #include <stdlib.h> for getloadavg(3) function call.
* CALL -> PCALL for sigaltstack for libc_r.jb1998-12-101-1/+1
|
* Removed unused include of <kvm.h>. It was alarming for libc to apparentlybde1998-12-071-3/+1
| | | | | | depend on libkvm. Removed obsolete `#define _NEW_VFSCONF'.
* - Fix modulo bug that was masked by the correct code in libgcc.a which isnate1998-11-301-1/+1
| | | | | used in almost all programs unless a shared library specifically ignores libgcc.a.
* Enable aio_read(2).jkoshy1998-11-241-2/+2
|
* Don't mention exit(3) in explanation; _exit(2) is a better choice.jkoshy1998-11-231-2/+2
|
* Man page for aio_read(2).jkoshy1998-11-191-0/+189
| | | | Submitted by: Terry Lambert <terry@whistle.com> on the -doc lists.
* Update to reflect reality.nectar1998-11-161-4/+4
| | | | PR: kern/8629
* Fix a .Nm -> .Fn fix that was missed in the previous commit.jkoshy1998-11-091-1/+1
| | | | Pointed-out-by: Bruce Evans
* Added info about non-blocking support.dg1998-11-061-1/+15
|
* Update manual page to reflect changes in rev 1.12 ofjkoshy1998-11-061-3/+6
| | | | | "src/lib/libc/gen/popen.c" --- popen() in the child now closes any copies of popen()'ed descriptors in the parent.
* Added a manual page for sendfile(2).dg1998-11-052-2/+139
|
* Include mergesort() in description of errors.rnordier1998-11-041-1/+3
|
* Drop unused labels.rnordier1998-11-041-2/+2
|
* Handle a zero elements argument.rnordier1998-11-041-0/+3
| | | | | PR: 8566 Submitted by: Archie Cobbs <archie@whistle.com>
* A feeble attempt at kld compatability. The mount_* programs assume thatpeter1998-11-031-1/+10
| | | | | | | | | | | they cannot mount a filesystem that they cannot see in getvfsbyname(). Part 1 of this is a hack, make vfsisloadable() always return true - the ultimate decider of whether it's loadable or not is kldload() or mount(). Part 2 of this is to have vfsload() call kldload(2) and return success if it works. This means that we will use a viable kld module in preference to an LKM! Ultimately, the thing to do is remove the hacks to do a vfsload in all the mount_* commands and let the kernel do it by itself in mount(2).
* Typo.jmz1998-10-301-1/+1
|
* Prevent buffer overflow in getpwnam()msmith1998-10-291-2/+2
| | | | | PR: bin/8176 Submitted by: Archie Cobbs <archie@whistle.com>
* Clarify processing of the string argument by psignal().rnordier1998-10-291-1/+3
|
* (Whoops: make it better instead of worse this time). Clarifyrnordier1998-10-291-1/+1
| | | | processing of the string argument by perror().
* Clarify processing of the string argument by perror().rnordier1998-10-291-8/+5
|
* Check for a zero-length as well as a NULL string argument.rnordier1998-10-291-1/+1
|
* The man page implies that the string argument to psignal() may bernordier1998-10-291-4/+2
| | | | | NULL, in line with perror(3). However, the code presently checks only for a zero-length string. Check for both.
* Handle ELF symbols better. This fixes "vmstat -i" for the casejdp1998-10-281-59/+77
| | | | where "/var/db/kvm_kernel.db" doesn't exist.
* (`'): and (`'); -> (`:') and (`;')fenner1998-10-261-2/+2
|
* Slight style police.obrien1998-10-251-3/+13
| | | | Add some content from objformat(1).
* fix unsigned overflowache1998-10-251-5/+7
| | | | PR: 8437
* Fix types.dima1998-10-211-19/+19
|
* Revert last change. mkstemp() wasn't to blame, it's nvi. However,peter1998-10-201-21/+5
| | | | mkstemp() is not behaving as documented.
* Stop mk*temp() from being pathologically stupid in the face of a umask(0);peter1998-10-201-5/+21
| | | | | | | There are other ways to fix this than wrapping _gettemp(), but this was the most convenient. Discovered by: bde
* Fix style issues in execl(), and make execle() vfork()-safe.des1998-10-151-13/+23
| | | | | Reviewed by: bde Approved by: jkh
* Conform to POSIX and close any copies of popen() descriptors inherited by amsmith1998-10-151-0/+4
| | | | | | | popen()ed child. PR: misc/7810 Submitted by: Wayne Scott <wscott@ichips.intel.com>
* Correct braino in previous commit. I get the pointy hat again.des1998-10-141-3/+4
|
* Make execl() vfork()-safe. This should fix potential bugs in rcp,des1998-10-141-8/+20
| | | | | | | telnet and tip, and probably a few other apps. Reviewed by: bde Approved by: jkh
* Avoid the need for calling functions that malloc after a vfork().peter1998-10-111-2/+10
|
* vfork -> fork. The child calls execl() which calls malloc(), sobde1998-10-101-1/+1
| | | | | | | | | vfork() can't be used. We could use alloca() in execl() so that it can be called between vfork() and execve(), but a "portable" popen() shouldn't depend on this. Calling execle() instead of execl() should be fairly safe, since execle() is supposed to be callable from signal handlers and signal handlers can't call malloc(). However, execle() is broken.
* Remove the description of EBADF (that's an implementation detail if Ieivind1998-10-101-11/+6
| | | | | | | | ever saw one), and move the description of NULL behaviour out to a 'NOTES' section, with an extra note that programs should not rely up on it. Kinda-approve-by: bde (by not replying to the mail with the diff)
* Fix a memory leakjulian1998-10-071-15/+25
| | | | | | | | | | | PR: 7923 Submitted by: Archie Cobbs <archie@whistle.com> The scandir() function returns -1 if it fails. In many cases when this happens, it does not free the memory that it allocated, resulting in a memory leak, or close the directory opened with opendir(). BAD DOG, BAD!
* 64bit portability fixes.dfr1998-10-051-11/+11
| | | | Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
* program written under FreeBSD -> programs written under FreeBSDeivind1998-10-031-2/+2
| | | | Noticed by: Alex Nash <nash@mcs.net>
* Delete the XXX comments that refer to spinlock recursion. The malloc/free/jb1998-09-301-15/+1
| | | | | | | | | realloc functions check for recursion within the malloc code itself. In a thread-safe library, the single spinlock ensures that no two threads go inside the protected code at the same time. The thread implementation is responsible for ensuring that the spinlock does in fact protect malloc. There was a window of opportunity in which this was not the case. I'll fix that with a commit RSN.
* `kern.maxproc' is not changeable from sysctl(8).jkoshy1998-09-291-1/+1
| | | | Reminded by: Bruce Evans <bde@zeta.org.au>
* Document that we will core-dump on getting a NULL pointer.eivind1998-09-281-0/+4
|
* Don't cast int pointers to long pointers when reading labels fromdfr1998-09-261-6/+9
| | | | /etc/disktab.
* Apply patch to properly sscanf(3) when there is whitespace in the formatobrien1998-09-251-7/+2
| | | | | | | | | | | | | string. From the submitted patch: Credit for patch: Chris Torek <torek@bsdi.com> Tod Miller <millert@openbsd.org> This makes us in line with SunOS 4.1.3_U1, Solaris 2.6, OpenBSD 2.3, HP-UX 10.20, Irix 5.3. The previous behavior was in line with Ultrix 4.4. PR: bin/7970 Submitted by: Niall Smart nialls@euristix.ie
* Use 8k pagesize on alpha, not 4k.dfr1998-09-231-1/+5
|
OpenPOWER on IntegriCloud