summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Chflags was clearing all flags supplied on the command line after aJean-Marc Zucconi1999-05-213-6/+6
| | | | | | | | | | clearing flag like dump or noschg, etc. PR: bin/10071 Submitted by: Andreas Klussmann <andreas@infosys.heitec.net> Notes: svn path=/head/; revision=47367
* Fixed disordering and duplication of MLINKS in previous commit toBruce Evans1999-05-192-3/+3
| | | | | | | libc/string/Makefile.inc. psignal.3 doesn't live in libc/string. Notes: svn path=/head/; revision=47320
* Add a strsignal(3) (like strerror(3)) for libc compatability with otherPeter Wemm1999-05-184-6/+95
| | | | | | | systems. NetBSD, Linux, SVR4 etc all have it. Notes: svn path=/head/; revision=47289
* Add a note that when a stream opened via fdopen() is closed via fclose(),Archie Cobbs1999-05-171-0/+4
| | | | | | | | the underlying file descriptor is also closed. To me at least this wasn't immediately obvious. Notes: svn path=/head/; revision=47281
* $ brucify -deblunderPoul-Henning Kamp1999-05-161-2/+2
| | | | Notes: svn path=/head/; revision=47249
* More typos.Kris Kennaway1999-05-091-2/+2
| | | | Notes: svn path=/head/; revision=46800
* Typo.Kris Kennaway1999-05-091-1/+1
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=46798
* PR: 10918Foxfair Hu1999-05-071-2/+2
| | | | | | | | | Submitted by: Yung-Jen Hung <winard@u3717a.dorm.ccu.edu.tw> Reviewed by: bearscorp.bbs@bbs.life.nthu.edu.tw _BIG5_sgetrune() in libc doesn't work well, this commit will fix it. Notes: svn path=/head/; revision=46641
* writev(2) can return EDESTADDRREQ when attempting to write to aGuy Helmer1999-05-041-0/+6
| | | | | | | | | | UNIX domain socket on which connect(2) had been used to set a destination address and the destination goes away. PR: docs/10451 Notes: svn path=/head/; revision=46441
* Show "#include <machine/param.h>" in SYNOPSIS to get declaration ofGuy Helmer1999-05-043-3/+6
| | | | | | | | | PAGE_SIZE for sys/shm.h. PR: docs/8464 Notes: svn path=/head/; revision=46426
* Note the effect of close(2) on fcntl(2) record locks.Guy Helmer1999-05-041-1/+9
| | | | | | | PR: docs/3522 Notes: svn path=/head/; revision=46424
* Declare the return address for __divX, __remX so that gdb can step overDoug Rabson1999-05-021-1/+1
| | | | | | | calls properly. Notes: svn path=/head/; revision=46294
* Document ishexnumber, isideogram, isnumber, isphonogram, isrune,Guy Helmer1999-04-291-2/+20
| | | | | | | | | and isspecial. PR: docs/9854 Notes: svn path=/head/; revision=46191
* The accept(2) call can fail with EINTR (at least in the threaded context).Guy Helmer1999-04-291-1/+5
| | | | | | | PR: docs/8858 Notes: svn path=/head/; revision=46188
* This Implements the mumbled about "Jail" feature.Poul-Henning Kamp1999-04-282-2/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a seriously beefed up chroot kind of thing. The process is jailed along the same lines as a chroot does it, but with additional tough restrictions imposed on what the superuser can do. For all I know, it is safe to hand over the root bit inside a prison to the customer living in that prison, this is what it was developed for in fact: "real virtual servers". Each prison has an ip number associated with it, which all IP communications will be coerced to use and each prison has its own hostname. Needless to say, you need more RAM this way, but the advantage is that each customer can run their own particular version of apache and not stomp on the toes of their neighbors. It generally does what one would expect, but setting up a jail still takes a little knowledge. A few notes: I have no scripts for setting up a jail, don't ask me for them. The IP number should be an alias on one of the interfaces. mount a /proc in each jail, it will make ps more useable. /proc/<pid>/status tells the hostname of the prison for jailed processes. Quotas are only sensible if you have a mountpoint per prison. There are no privisions for stopping resource-hogging. Some "#ifdef INET" and similar may be missing (send patches!) If somebody wants to take it from here and develop it into more of a "virtual machine" they should be most welcome! Tools, comments, patches & documentation most welcome. Have fun... Sponsored by: http://www.rndassociates.com/ Run for almost a year by: http://www.servetheweb.com/ Notes: svn path=/head/; revision=46155
* Mention that you can only create a block or char special file usingJoerg Wunsch1999-04-281-0/+5
| | | | | | | mknod(2). Notes: svn path=/head/; revision=46150
* Mention that set-id bits are not honoured for shell scripts andTim Vanderhoek1999-04-271-1/+8
| | | | | | | | | | filesystems with the "nosuid" option. Mention that syscall tracing is disabled sometimes. PR: misc/11328 Notes: svn path=/head/; revision=46107
* More egcs warning fixes:Warner Losh1999-04-254-3/+5
| | | | | | | | | | | | | o use braces to avoid potentially ambiguous else o don't default to type int (and also remove a useless register modifier). o Use parens around assignment values used as truth values. o Remove unused function. Reviewed by: obrien and chuckr Notes: svn path=/head/; revision=46079
* Re-fixed to start at 1969 per the actual Posix requirement. AlsoWes Peters1999-04-252-7/+7
| | | | | | | fixed a typo on the man page. Notes: svn path=/head/; revision=46051
* Bring two-digit years up-to-date with POSIX requirements.Wes Peters1999-04-252-2/+12
| | | | | | | | | | | 70-00 are intepreted in the 20th century; 01-69 in the 21st century. (Yes, 2000 is the last year of the 20th century, not the first year of the 21st.) Submitted by: Sergey Babkin <babkin@bellatlantic.net> Notes: svn path=/head/; revision=46042
* Add missing strings.Poul-Henning Kamp1999-04-241-0/+7
| | | | | | | | | PR: 11285 Submitted by: Chris Costello <chris@calldei.com> Reviewed by: phk Notes: svn path=/head/; revision=46018
* Fix all the mipseb Makefiles. They were broken when I checked them inWarner Losh1999-04-228-6/+166
| | | | | | | | | | | | | before. Added SYS.h for mipseb and mipsel. I now get part way through building libc in the cross environment that I have (along with pending mipse[bl] changes to the intree egcs) with these changes. Notes: svn path=/head/; revision=45931
* Back out my change from 6 April PDT that added a new dlversion()John Polstra1999-04-222-33/+1
| | | | | | | | | | function. It was an ill-considered feature. It didn't solve the problem I wanted it to solve. And it added Yet Another Version Number that would have to be maintained at every release point. I'm nuking it now before anybody grows too fond of it. Notes: svn path=/head/; revision=45929
* Revise for KLD's.Guy Helmer1999-04-201-55/+8
| | | | | | | Prompted-By: Nathan Ahlstrom <nrahlstr@winternet.com> Notes: svn path=/head/; revision=45878
* vfsload maps into kldload only now, no more fork/exec of modload(8).Peter Wemm1999-04-191-85/+1
| | | | Notes: svn path=/head/; revision=45824
* Document pread() and pwrite().Dmitrij Tejblum1999-04-113-11/+68
| | | | | | | Obtained from: NetBSD (mostly) Notes: svn path=/head/; revision=45607
* Contains the paraNik Clayton1999-04-101-9/+1
| | | | | | | | | | | | | | | | | | Unlike other filesystem objects, symbolic links do not have an owner, group, access mode, times, etc. Instead, these attributes are taken from the directory that contains the link. The only attributes returned from an lstat() that refer to the symbolic link itself are the file type (S_IFLNK), size, blocks, and link count (always 1). This is bogus, and disagrees with the implementation and symlink(7). Removed it. PR: docs/10269 Submitted by: Tolik <tolik@sibptus.tomsk.ru> Notes: svn path=/head/; revision=45560
* Various language and style concerns fixed.Warner Losh1999-04-091-11/+18
| | | | | | | Noted by: bde Notes: svn path=/head/; revision=45518
* Fixed missing include in synopsis.Bruce Evans1999-04-096-21/+13
| | | | | | | Fixed some mdoc usage errors. Notes: svn path=/head/; revision=45512
* Add manpage link for dlversion(3).John Polstra1999-04-071-2/+3
| | | | Notes: svn path=/head/; revision=45401
* Add a new function dlversion() which returns the version number ofJohn Polstra1999-04-072-2/+34
| | | | | | | | | the dynamic linker in the same form as __FreeBSD_version. This is mainly intended for checking the dynamic linker version during a make world. Notes: svn path=/head/; revision=45398
* Fixed disordering in previous 2 commits. Fixed an English error.Bruce Evans1999-04-051-5/+6
| | | | Notes: svn path=/head/; revision=45336
* Add wrappers for pread and pwrite syscalls.Dmitrij Tejblum1999-04-046-11/+119
| | | | Notes: svn path=/head/; revision=45313
* Add mkstemps to the man page, and create a link for it.Warner Losh1999-04-042-2/+14
| | | | | | | | Obtained from: OpenBSD Poked in the eye about committing new functions without a manpage: obrien Notes: svn path=/head/; revision=45308
* Add mkstemps from OpenBSD. This has been in my tree for months andWarner Losh1999-04-041-7/+24
| | | | | | | | | hasn't caused any problems until the egcs import. This fix breaks the world build, but my very next commit will remove mkstemps from the egcs build. Notes: svn path=/head/; revision=45303
* Manpages for the KLD system calls.Doug Rabson1999-04-047-1/+450
| | | | | | | | PR: docs/10412 Submitted by: Chris Costello <chris@calldei.com> Notes: svn path=/head/; revision=45296
* Fix a macro name typo that made a word disappear.John Polstra1999-04-031-1/+1
| | | | Notes: svn path=/head/; revision=45273
* Disable the "Hint" option in phkmalloc as default. Recent VM systemPoul-Henning Kamp1999-03-282-4/+4
| | | | | | | | | | | | | | | changes have made this too expensive. This gains about 1.25% on worldstone on my SMP machine. Swap-less machines, for instance PicoBSDs, and machines which experience page-out trafic, check with top(1), will probably want to reenable this with: ln -s H /etc/malloc.conf Suggested by: alc (&dyson ?) Notes: svn path=/head/; revision=45091
* Partial fix for the forking problem: if we can't access the master maps,Dag-Erling Smørgrav1999-03-271-4/+11
| | | | | | | | | try again with the unrestricted map. PR: bin/10821 Notes: svn path=/head/; revision=45066
* Rename when building libc_r.Doug Rabson1999-03-251-2/+2
| | | | Notes: svn path=/head/; revision=45037
* Fix a (relatively harmless) braino. I confused myself over the for() loopPeter Wemm1999-03-241-3/+2
| | | | | | | | | | | | that counted the number of elements in argv. The counter is incremented in the next-iteration section of the loop, not the body, so at termination it's already "counted" the element that failed the continuation test - in this case the NULL argv terminator. Noted by: bde Notes: svn path=/head/; revision=44984
* Remove last remaining references to malloc/realloc and functions thatPeter Wemm1999-03-231-50/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | call them. All the execX() libc functions should be vfork() safe now. Specifically: - execlp() does the argument count-and-build into a vector from alloca (like the others) - buildargv() is no longer used (and gone). - execvp() uses alloca/strcpy rather than strdup(). - the ENOEXEC handler uses alloca rather than malloc. - a couple of free() calls removed - alloca works on the local stack and the allocations are freed on function exit (which is why buildargv wasn't useful - it's alloca() context would disappear on return). Along the way: - If alloca() fails (can it?), set errno = ENOMEM explicitly. - The ENOEXEC recovery routine that trys again with /bin/sh appeared to not be terminating the new argv[] array for /bin/sh, allowing it to walk off the end of the list. I dithered a bit about using alloca() even more as it's most commonly associated with gcc. However, standalone portable (using malloc) and machine-specific assembler alloca implementations appear to be available on just about all the architectures we're likely to want to port to. alloca will be the least of our problems if ever going to another compiler. Notes: svn path=/head/; revision=44974
* Add a sysctl variable which can help stop chroot(2) escapes.Poul-Henning Kamp1999-03-231-2/+29
| | | | | | | | | | | | | | | | | | kern.chroot_allow_open_directories = 0 chroot(2) fails if there are open directories. kern.chroot_allow_open_directories = 1 (default) chroot(2) fails if there are open directories and the process is subject of a previous chroot(2). kern.chroot_allow_open_directories = anything else filedescriptors are not checked. (old behaviour). I'm very interested in reports about software which breaks when running with the default setting. Notes: svn path=/head/; revision=44973
* Typo fix.Joseph Koshy1999-03-231-1/+1
| | | | | | | | PR: docs/10733 Submitted by: Steve Coltrin <spcoltri@io.com> Notes: svn path=/head/; revision=44961
* Don't be so selective about which errors cause us to continue andWarner Losh1999-03-211-7/+2
| | | | | | | | | | | which ones cause us to fail. Now all open errors on the databse file will cause the next file in the list to be tried. Submitted by: Arne Henrik Juul <arnej@math.ntnu.no> PR: 4585 Notes: svn path=/head/; revision=44921
* EACESS -> EACCESAlexander Langer1999-03-153-5/+5
| | | | Notes: svn path=/head/; revision=44761
* Add support for long long modifier (e.g. %llx, %lld).Doug Rabson1999-03-111-3/+9
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=44674
* PID_MAX is now 99999.Ollivier Robert1999-03-101-1/+1
| | | | | | | | PR: docs/10530 Submitted by: Ben Smithurst <ben@scientia.demon.co.uk> Notes: svn path=/head/; revision=44646
* Explain ENXIO error status with respect to fifos.Guy Helmer1999-03-071-0/+4
| | | | | | | PR: docs/8559 Notes: svn path=/head/; revision=44559
* Don't bogotify the synopsis by attempting to describe err_set_file() there.Bruce Evans1999-03-051-11/+19
| | | | | | | Fixed some disorder. Notes: svn path=/head/; revision=44485