summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* - Added support for installing boot0 and boot0.5 for PC-98.nyan2000-08-123-2/+75
| | | | - Cosmetic changes.
* Add the -mpreferred-stack-boundary=2 option to reduce code bloat. Wepeter2000-08-111-0/+4
| | | | compile the kernel with this.
* Add support to send the string 'PXEClient' as the Vendor classps2000-08-113-4/+32
| | | | | | identifier to the DHCP server. Now you can check for this string in your dhcp configuration to decide whether you will hand out a lease to the client or not.
* 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
* - Do not modify Peer's Call ID in outgoing Incoming-Call-Connectedru2000-08-091-18/+25
| | | | | | | | PPTP control messages. - Cosmetics: replace `GRE link' with `PPTP link'. Reviewed by: Erik Salander <erik@whistle.com>
* This is an overhaul of the mode page handling in camcontrol as well askbyanc2000-08-082-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | related patches. These include: * Mode page editting can be scripted. This involves two things: first, if stdin is not a tty, changes are read from stdin rather than invoking $EDITOR. Second, and more importantly, not all modepage entries must be included in the change set. This means that camcontrol can now gracefully handle more intrusive editting from the $EDITOR, including removal or rearrangement of lines. It also means that you can do stuff like: # echo "WCE: 1" | camcontrol modepage da3 -m 8 -e # newfs /dev/da3 # echo "WCE: 0" | camcontrol modepage da3 -m 8 -e * Range-checking on user-supplied input values. modeedit.c now uses the field width specifiers to determine the maximum allowable value for a field. If the user enters a value larger than the maximum, it clips the value to the max and warns the user. This also involved patching cam_cmdparse.c to be more consistent with regards to the "count" parameter to arg_put (previously is was the length of strings and 1 for all integral types). The cam_cdbparse(3) man page was also updated to reflect the revised semantics. * In the process, I removed the 64 entry limit on mode pages (not that we were even close to hitting that limit). This was a nice side-effect of the other changes. * Technically, the new mode editting functionality allows editting of character array entries in mode pages (type 'c' or 'z'), however since buff_encode doesn't grok them it is currently useless. * Camcontrol gained two new options related to mode pages: -l and -b. The former lists all available mode pages for a given device. The latter forces mode page display in binary format (the default when no mode page definition was found in scsi_modes). * Added support for mode page names to scsi_modes. Allows names to be displayed alongside mode numbers in the mode page listing. Updated scsi_modes to use the new functionality. This also adds the semicolon into the scsi_modes syntax as an optional mode page definition terminator. This is needed to name pages without providing a page format definition. * Updated scsi_all.h to include a structure describing mode page headers. * Added $FreeBSD$ line to scsi_modes. Inspired by: dwhite Reviewed by: ken
* 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.
* - Fixed warnings and typo.nyan2000-08-082-1/+6
| | | | | | - Recognize slice type 0x24 as FAT (only PC-98). Submitted by: Nobuyuki Koganemaru <kogane@koganemaru.co.jp>
* kevent() is not a POSIX cancellation point, so _kevent() need not bejasone2000-08-081-7/+2
| | | | | | defined. Remove some unnecessary header file inclusions.
* Add wrapper for kevent() syscalljlemon2000-08-0713-9/+95
| | | | Noted as missing by: nicolas.leonard@animaths.com
* Document return value of ENOENT for nonexistent/invalid filter entries.jlemon2000-08-071-0/+2
|
* Adjust TCP checksum rather than compute it afresh.ru2000-08-071-4/+8
| | | | Submitted by: Erik Salander <erik@whistle.com>
* Don't use kern.disks sysctl on PC-98 because the wd driver doesn't callnyan2000-08-071-0/+4
| | | | disk_create() function.
* Good, fixing the header showed incorrect usage of it! #define _KERNELgreen2000-08-061-0/+3
| | | | here for the include of sys/select.h.
* 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
* src/Makefile.inc1 sets DESTDIR=${WORLDTMP} for `buildworld' stageru2000-08-042-2/+2
| | | | | causing pre-processed manual pages, like terminfo(5), to point to the temporary build tree.
* Return an error instead of overflowing the buffer in the case of a longkris2000-08-041-0/+4
| | | | $HOME in ruserpass()
* 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
|
* Limit the amount of data copied to the error buffer to _POSIX2_LINE_MAX.kris2000-08-041-2/+2
| | | | This is the documented size which the user-provided buffer must be.
* Prevent buffer overflows.kris2000-08-041-0/+10
|
* Cleanup warnings by adding missint prototypes, removing unneeded duplicatejhb2000-08-034-12/+20
| | | | | | | prototypes, and adding in several 'const's. Also, add some missing $FreeBSD$'s. Found by: BDECFLAGS
* Fix signedness bogon.des2000-08-021-7/+6
|
* Make sem_post() safe to call from within a signal handler, as required byjasone2000-08-016-0/+30
| | | | 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-014-48/+28
| | | | | | | character, skip the program name when setting the process title. Ansified with extreme prejudice. Reviewed by: peter
* Whitespace only:sheldonh2000-07-311-4/+4
| | | | | Fix an overlong line and trailing whitespace that crept in, in the previous commit.
* 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).
* Teach library about Home/End keysache2000-07-282-5/+30
|
* Fully preserve original tty settings outside of line edition mode. Old variantache2000-07-281-44/+8
| | | | | | | preserve them only partially, so tty state becomes different after el_* functions used. PR: 20138
* Move terminal descriptor flush before stty to eliminate potential problemsache2000-07-271-1/+1
| | | | whith characters conversion changed like \n -> \r\n and so on.
* Don't fail if _ftp_stat() reports a protocol error, since that most likelydes2000-07-271-0/+1
| | | | | | | means that the server doesn't understand SIZE or MDTM, which should not be a hard failure. Submitted by: ume
* Fix temp. singnals blocking. Only one signal was blocked due to typo pastedache2000-07-261-3/+5
| | | | many times.
* Add address translation support for RTSP/RTP used by RealPlayer andarchie2000-07-268-3/+819
| | | | | | | | Quicktime streaming media applications. Add a BUGS section to the man page. Submitted by: Erik Salander <erik@whistle.com>
* MFC 1.11.2.3 from -stable to -currentdillon2000-07-251-6/+21
|
* If the server reports the size as 0, treat it as unknown. This works arounddes2000-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.
* Centralize the default port finding code.des2000-07-253-33/+43
| | | | | Work around YA Apache bug: don't send port in Host: header if it's the default port.
* 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
OpenPOWER on IntegriCloud