summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* setlocale may return NULL, handle this case too by resetting to "C"ache2000-09-011-5/+3
|
* Move protection code down to handle NL_CAT_LOCALE case too.ache2000-09-011-2/+3
|
* Protect from badly formed LANG variableache2000-09-011-1/+2
|
* Import XPG4-compliant basename(3) and dirname(3) from OpenBSD.des2000-08-315-2/+364
| | | | | | | | The man pages need some adjustments. PR: 12960, 12962 Submitted by: James Howard <howardjp@wam.umd.edu> Obtained from: OpenBSD
* catgets: detect if fd becomes invalid after exec and return default responseache2000-08-301-6/+6
| | | | cosmetique, use NULL for pointers comparison
* Explicetely describe catalog descriptor lifetimeache2000-08-301-0/+6
|
* strtok() -> strsep() (no strtok() in libraries allowed)ache2000-08-292-16/+26
| | | | | | small cleanup in nearby area: pointer 0 -> NULL, according to manpages hardcoded constant -> sizeof(buf)
* According to the susv2 man pages I have, remove(3) should act asdwmalone2000-08-282-7/+26
| | | | | | | | | rmdir(2) on directories and unlink(2) otherwise. This modification, and most of the man page update has been obtined from OpenBSD. This was spotted by someone on a mailing lists a few months ago, but I've lost their mail. Reviewed by: sheldonh
* The API change mentioned in the previous revision has been backed out, sojhb2000-08-221-5/+0
| | | | | | back out the corresponding documentation. Noticed by: brian, ume
* Remove duplicate FreeBSD id tags.jhb2000-08-213-3/+0
|
* Fix style bugs (including ones introduced from OpenBSD).green2000-08-162-58/+32
|
* Don't retry connecting via the same medium.ume2000-08-101-16/+8
| | | | | | | | I changed to close to original code before merging IPv6 support. It seems having delay before another try is useless. However, I'm not sure that delay means. So, I leave it as-is. PR: bin/20515
* mention getipnodeby* and get{addr,name}info are not thread-safe. (sync with ↵itojun2000-08-096-21/+110
| | | | | | | kame) s/.Os KAME/.Os/ comment From: Greg Thompson
* If using a DB_RECNO, db::put should return the new key if R_IAFTER isgreen2000-08-081-1/+9
| | | | | | set, not the previous key. Add $FreeBSD$, not taking this off the vendor branch because it's not on.
* Document return value of ENOENT for nonexistent/invalid filter entries.jlemon2000-08-071-0/+2
|
* Fix description of argv[0] passed to interpreted scripts; it's the name ofben2000-08-051-3/+3
| | | | the interpreter, _not_ the argv[0] passed in the original exec() call.
* Prevent internal buffer overflow due to expansion of $LANG and/or namekris2000-08-051-3/+11
| | | | | | argument in catopen(). Reviewed by: chris, -audit
* Calculate the string length of a u_long at compile-time, instead of using akris2000-08-041-5/+17
| | | | hardcoded value.
* Correct factor-of-10 error in INT_STRLEN_MAXIMUM() calculation.kris2000-08-041-1/+3
|
* Correct string length bounds checking.kris2000-08-041-3/+5
|
* Prevent TMPDIR overflow.kris2000-08-041-1/+5
|
* Don't overflow the internal buffer in clnt_sperror()kris2000-08-041-1/+1
|
* sprintf -> snprintf paranoiakris2000-08-041-3/+3
|
* Make sem_post() safe to call from within a signal handler, as required byjasone2000-08-011-0/+3
| | | | POSIX/SUSv2.
* Revert the temporary hack in rev 1.79.peter2000-08-011-1/+1
|
* If the format string passed to setproctitle begins with a '-'ps2000-08-012-24/+14
| | | | | | | character, skip the program name when setting the process title. Ansified with extreme prejudice. Reviewed by: peter
* Add pointers to rfork_thread(3)peter2000-07-311-3/+12
|
* Add a skeleton rfork_thread(3) man page.peter2000-07-292-1/+79
|
* Take a shot at implementing a functional rfork_thread() for alpha. Thispeter2000-07-292-0/+66
| | | | | | was not fun and I am not entirely certain of the correctness, but it seems to work. (in fact, side by side testing of this code vs the x86 version turned up hidden bugs in the x86 code).
* Fix some rather interesting bugs that managed to not turn up in variouspeter2000-07-291-5/+5
| | | | | | | | | | | testing and real-life applications: 1) If you returned from the thread function, you got a segv instead of calling _exit() with your return code. 2) clean up some bogus stack management. There was also an underflow on function return. 3) when making syscalls, the kernel is expecting to have to leave space for the function's return address. We need to duplicate this. It was an accident that the rfork syscall actually worked here. :-/
* rfork(2) wrapper for simple rfork-style threads. I have lost count ofpeter2000-07-293-2/+114
| | | | | | | | | | | | | | | the number of times I have given this to people and got asked: why isn't it in libc? It is impossible to do this without assembler glue to reset the stack for the new child process. int rfork_thread(flags, stack_addr, start_fnc, start_arg) int flags; Flags to rfork system call. See rfork(2). void *stack_addr; Top of stack for thread. int (*start_fnc)(void *); Address of thread function to call in child. void *start_arg; Argument to pass to the thread function in child. This is deliberately not documented or prototyped in includes until the corresponding alpha version is written.
* Deal with the exit entry in MIASM changing to sys_exit.peter2000-07-291-1/+1
| | | | This Is A Hack(TM).
* MFC 1.11.2.3 from -stable to -currentdillon2000-07-251-6/+21
|
* Clean up some nits, with the permission of the author:sheldonh2000-07-241-7/+14
| | | | | | * Grammar fixes. * Mark up rfork and vnode as cross-references. * Clarify the use of the RFFDG flag to rfork(2).
* Remove the reference to KERN_UPDATEINTERVAL and syncer(4), sincesheldonh2000-07-221-6/+0
| | | | | | | KERN_UPDATEINTERVAL can't be used to control sched_sync(). In fact, there's no easy way to control the syncer with sysctls. Reported by: bde
* Use _close() instead of close() in addrconfig() to keep it from becoming ajasone2000-07-211-3/+3
| | | | potential cancellation point in libc_r.
* Copy canonname for *ahost, into static buffer.ume2000-07-201-10/+10
| | | | Obtained from: KAME Project
* use .Pp instead of faking it with an extra newlinealfred2000-07-201-1/+1
| | | | Pointed out by: sheldonh
* document get/set sockopt usage with accept_filter(9)alfred2000-07-201-2/+35
|
* Alocate rcmd{,_af}()'s *ahost argument using malloc() (wellbrian2000-07-202-3/+14
| | | | | | | | | | | strdup()) rather than pointing it at something that's free()d (via freeaddrinfo(res)) before the function returns. I appreciate that this is an API change, but it's the only way (AFAIK) of doing this without breaking existing code that uses rcmd{,_af}(). Pointed out by: phkmalloc
* Update stale references to update(4) with references to the newsheldonh2000-07-193-4/+4
| | | | syncer(4) manual page.
* To define A RR to root (.) is valid in DNS. So, h_name = "" shouldn'tume2000-07-191-2/+2
| | | | | | | | be treated as NULL. PR: bin/19816 Submitted by: Bill Fenner <fenner@research.att.com> Reviewed by: Atsushi Onoe <onoe@sm.sony.co.jp>
* Const'ify parameters to ethers(3) routines as appropriate.archie2000-07-182-10/+10
|
* Simplify kqueue API slightly.jlemon2000-07-181-2/+2
| | | | Discussed on: -arch
* Drop the references to index(3) and rindex(3), which are non-standardalex2000-07-189-18/+0
| | | | | | and people shouldn't be encouraged to use them. Asked by: sheldonh
* Change my email address in the copyright notices for the sake of consistencyjasone2000-07-187-7/+7
| | | | (jasone@canonware.com --> jasone@freebsd.org).
* Reshuffle the SEE ALSO section.jasone2000-07-173-7/+7
| | | | Prompted by: sheldonh
* Add SEE ALSO section, as with the other string functions.alex2000-07-171-0/+11
| | | | Submitted by: dcs
* Make the NAME section a bit less confusing.ben2000-07-152-2/+2
| | | | | | PR: 19262 Submitted by: NOKUBI Hirotaka <nokubi@ff.iij4u.or.jp> Reviewed by: sheldonh
* Fix typo, teh -> the.asmodai2000-07-141-1/+1
|
OpenPOWER on IntegriCloud