summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* src/Makefile.inc1 sets DESTDIR=${WORLDTMP} for `buildworld' stageRuslan Ermilov2000-08-042-2/+2
| | | | | | | | causing pre-processed manual pages, like terminfo(5), to point to the temporary build tree. Notes: svn path=/head/; revision=64245
* Return an error instead of overflowing the buffer in the case of a longKris Kennaway2000-08-041-0/+4
| | | | | | | $HOME in ruserpass() Notes: svn path=/head/; revision=64243
* Calculate the string length of a u_long at compile-time, instead of using aKris Kennaway2000-08-041-5/+17
| | | | | | | hardcoded value. Notes: svn path=/head/; revision=64242
* Correct factor-of-10 error in INT_STRLEN_MAXIMUM() calculation.Kris Kennaway2000-08-041-1/+3
| | | | Notes: svn path=/head/; revision=64241
* Correct string length bounds checking.Kris Kennaway2000-08-041-3/+5
| | | | Notes: svn path=/head/; revision=64240
* Prevent TMPDIR overflow.Kris Kennaway2000-08-041-1/+5
| | | | Notes: svn path=/head/; revision=64239
* Don't overflow the internal buffer in clnt_sperror()Kris Kennaway2000-08-041-1/+1
| | | | Notes: svn path=/head/; revision=64237
* sprintf -> snprintf paranoiaKris Kennaway2000-08-041-3/+3
| | | | Notes: svn path=/head/; revision=64236
* Limit the amount of data copied to the error buffer to _POSIX2_LINE_MAX.Kris Kennaway2000-08-041-2/+2
| | | | | | | This is the documented size which the user-provided buffer must be. Notes: svn path=/head/; revision=64233
* Prevent buffer overflows.Kris Kennaway2000-08-041-0/+10
| | | | Notes: svn path=/head/; revision=64222
* Cleanup warnings by adding missint prototypes, removing unneeded duplicateJohn Baldwin2000-08-034-12/+20
| | | | | | | | | | prototypes, and adding in several 'const's. Also, add some missing $FreeBSD$'s. Found by: BDECFLAGS Notes: svn path=/head/; revision=64185
* Fix signedness bogon.Dag-Erling Smørgrav2000-08-021-7/+6
| | | | Notes: svn path=/head/; revision=64129
* Make sem_post() safe to call from within a signal handler, as required byJason Evans2000-08-016-0/+30
| | | | | | | POSIX/SUSv2. Notes: svn path=/head/; revision=64111
* Revert the temporary hack in rev 1.79.Peter Wemm2000-08-011-1/+1
| | | | Notes: svn path=/head/; revision=64106
* If the format string passed to setproctitle begins with a '-'Paul Saab2000-08-014-48/+28
| | | | | | | | | | character, skip the program name when setting the process title. Ansified with extreme prejudice. Reviewed by: peter Notes: svn path=/head/; revision=64094
* Whitespace only:Sheldon Hearn2000-07-311-4/+4
| | | | | | | | Fix an overlong line and trailing whitespace that crept in, in the previous commit. Notes: svn path=/head/; revision=64061
* Add pointers to rfork_thread(3)Peter Wemm2000-07-311-3/+12
| | | | Notes: svn path=/head/; revision=64042
* Add a skeleton rfork_thread(3) man page.Peter Wemm2000-07-292-1/+79
| | | | Notes: svn path=/head/; revision=64006
* Take a shot at implementing a functional rfork_thread() for alpha. ThisPeter Wemm2000-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). Notes: svn path=/head/; revision=64004
* Fix some rather interesting bugs that managed to not turn up in variousPeter Wemm2000-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. :-/ Notes: svn path=/head/; revision=64003
* rfork(2) wrapper for simple rfork-style threads. I have lost count ofPeter Wemm2000-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. Notes: svn path=/head/; revision=64000
* Deal with the exit entry in MIASM changing to sys_exit.Peter Wemm2000-07-291-1/+1
| | | | | | | This Is A Hack(TM). Notes: svn path=/head/; revision=63988
* Teach library about Home/End keysAndrey A. Chernov2000-07-282-5/+30
| | | | Notes: svn path=/head/; revision=63948
* Fully preserve original tty settings outside of line edition mode. Old variantAndrey A. Chernov2000-07-281-44/+8
| | | | | | | | | | preserve them only partially, so tty state becomes different after el_* functions used. PR: 20138 Notes: svn path=/head/; revision=63947
* Move terminal descriptor flush before stty to eliminate potential problemsAndrey A. Chernov2000-07-271-1/+1
| | | | | | | whith characters conversion changed like \n -> \r\n and so on. Notes: svn path=/head/; revision=63946
* Don't fail if _ftp_stat() reports a protocol error, since that most likelyDag-Erling Smørgrav2000-07-271-0/+1
| | | | | | | | | | means that the server doesn't understand SIZE or MDTM, which should not be a hard failure. Submitted by: ume Notes: svn path=/head/; revision=63910
* Fix temp. singnals blocking. Only one signal was blocked due to typo pastedAndrey A. Chernov2000-07-261-3/+5
| | | | | | | many times. Notes: svn path=/head/; revision=63900
* Add address translation support for RTSP/RTP used by RealPlayer andArchie Cobbs2000-07-268-3/+819
| | | | | | | | | | | Quicktime streaming media applications. Add a BUGS section to the man page. Submitted by: Erik Salander <erik@whistle.com> Notes: svn path=/head/; revision=63899
* MFC 1.11.2.3 from -stable to -currentMatthew Dillon2000-07-251-6/+21
| | | | Notes: svn path=/head/; revision=63851
* If the server reports the size as 0, treat it as unknown. This works aroundDag-Erling Smørgrav2000-07-251-3/+2
| | | | | | | | | | | | a bug in some ftp servers (most notably ftp.vmunix.com) which report the size of a file correctly in ascii mode, but report it as 0 in binary mode. Reported by: asmodai Also remove an unneeded initialization. Notes: svn path=/head/; revision=63847
* Centralize the default port finding code.Dag-Erling Smørgrav2000-07-253-33/+43
| | | | | | | | Work around YA Apache bug: don't send port in Host: header if it's the default port. Notes: svn path=/head/; revision=63842
* Clean up some nits, with the permission of the author:Sheldon Hearn2000-07-241-7/+14
| | | | | | | | | * Grammar fixes. * Mark up rfork and vnode as cross-references. * Clarify the use of the RFFDG flag to rfork(2). Notes: svn path=/head/; revision=63805
* Remove the reference to KERN_UPDATEINTERVAL and syncer(4), sinceSheldon Hearn2000-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 Notes: svn path=/head/; revision=63757
* Ignore environment variables that are set but empty.Dag-Erling Smørgrav2000-07-211-40/+81
| | | | | | | | | | | | | | | Sort out the size / length confusion. Always try to report the *real* file size in the url_stat structure, no matter how much of it is actually being sent, and try to detect inconsistencies between sizes. Rearrange the request loop to avoid having to add meaningless code just to silence compiler warnings. Switch to a more sensible and consistent interface for the _http_parse*() functions. Notes: svn path=/head/; revision=63716
* Document the proxy support better.Dag-Erling Smørgrav2000-07-211-2/+15
| | | | Notes: svn path=/head/; revision=63715
* The decision to use an HTTP proxy for FTP documents belongs in the FTP codeDag-Erling Smørgrav2000-07-212-13/+24
| | | | Notes: svn path=/head/; revision=63713
* Don't send port number to proxy unless it's not the standard FTP portDag-Erling Smørgrav2000-07-211-2/+6
| | | | Notes: svn path=/head/; revision=63712
* Call _thread_init() from pthread_once() if it has not already been called.Doug Rabson2000-07-213-0/+6
| | | | | | | | | | This fixes a segfault in some C++ programs which use exceptions before main() has been called (i.e. from global constructors). Reviewed by: deischen Notes: svn path=/head/; revision=63710
* Use _close() instead of close() in addrconfig() to keep it from becoming aJason Evans2000-07-211-3/+3
| | | | | | | potential cancellation point in libc_r. Notes: svn path=/head/; revision=63704
* Fix problem where original author thought `unsigned long' was the bestDavid E. O'Brien2000-07-201-2/+4
| | | | | | | | | | | 32-bit type (rather than define his own type based on the type of box being compiled on). Submitted by: Mark Abene <phiber@radicalmedia.com> (however I applied a slightly different fix) Notes: svn path=/head/; revision=63692
* Copy canonname for *ahost, into static buffer.Hajimu UMEMOTO2000-07-201-10/+10
| | | | | | | Obtained from: KAME Project Notes: svn path=/head/; revision=63682
* use .Pp instead of faking it with an extra newlineAlfred Perlstein2000-07-201-1/+1
| | | | | | | Pointed out by: sheldonh Notes: svn path=/head/; revision=63639
* document get/set sockopt usage with accept_filter(9)Alfred Perlstein2000-07-201-2/+35
| | | | Notes: svn path=/head/; revision=63635
* Alocate rcmd{,_af}()'s *ahost argument using malloc() (wellBrian Somers2000-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 Notes: svn path=/head/; revision=63622
* Fix the case where the file name is preceded by a lone slash.Dag-Erling Smørgrav2000-07-201-1/+1
| | | | Notes: svn path=/head/; revision=63585
* Don't try to skip to the requested offset if the server returns more dataDag-Erling Smørgrav2000-07-191-8/+10
| | | | | | | | | than requested. Instead, inform the caller of the real offset by modifying the offset field in the original struct url, and let him decide how to handle the situation. Notes: svn path=/head/; revision=63567
* pthread_once --> pthread_once_t.Jason Evans2000-07-192-2/+2
| | | | Notes: svn path=/head/; revision=63541
* Update stale references to update(4) with references to the newSheldon Hearn2000-07-193-4/+4
| | | | | | | syncer(4) manual page. Notes: svn path=/head/; revision=63498
* To define A RR to root (.) is valid in DNS. So, h_name = "" shouldn'tHajimu UMEMOTO2000-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> Notes: svn path=/head/; revision=63490
* Const'ify parameters to ethers(3) routines as appropriate.Archie Cobbs2000-07-182-10/+10
| | | | Notes: svn path=/head/; revision=63474