summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Allow empty UIDs if we are processing NIS records. I am not entirelyeivind1999-11-221-2/+4
| | | | | | | | happy with how this end up and will re-visit the entire empty field problem, but this patch solves the NIS problem for now. Submitted by: Dan Nelson <dan@emsphone.com> PR: 14865,14984
* Make __sfp() even more thread-safe.dt1999-11-211-1/+1
|
* Add (FILE *) locking.dt1999-11-201-0/+9
|
* Make __sfp() (FILE allocator) thread-safe: added locking like in malloc().dt1999-11-201-0/+11
|
* Fix HISTORY - the copyright header on the file of the GCC version wasobrien1999-11-201-4/+4
| | | | | | misleading. Submitted by: Theo de Raadt <deraadt@cvs.openbsd.org>
* Add to the HISTORY.obrien1999-11-191-1/+9
|
* The "acfcomp" field is not in the structure anymore. There may be a betterroberto1999-11-191-1/+0
| | | | | | way to do that but it fixes buildworld. World broken by: archie :-)
* For the TCP transport, put the listening socket in non-blockingjdp1999-11-181-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | mode. This addresses a well-known race condition that can cause servers to hang in accept(). The relevant case is when somebody connects to the server and then immediately kills the connection by sending a TCP reset. On the server this causes select to report a ready condition on the socket, after which the accept call blocks because there is no longer any pending connection to accept. In -current there is already a work-around for this in the kernel. It was merged into -stable some time ago, but then David Greenman reverted it because it seemed to be causing a socket leak in some cases. (See uipc_socket.c revision 1.51.2.3.) Hence this userland fix is needed in -stable, and I plan to merge it into that branch soon because it fixes a potential DoS attack. It may also be needed in -current if the suspected socket leak turns out to be real. In any case, after thinking it over I believe the fix belongs in userland. An application shouldn't assume that a ready return from select guarantees that the subsequent I/O operation cannot block. A lot can happen between the select and the accept. A similar fix should most likely be applied to the Unix domain socket transport too. Submitted by: peter Reviewed by: jdp
* Make setproctitle(NULL) restore all of the original argumentsbrian1999-11-174-60/+90
| | | | (if it's able).
* Fix a bug in the hack that protects against FTP bounce attacks.jdp1999-11-171-3/+2
| | | | | | | | | It used to loop back up to the accept() call and block there, shutting out all other transports until a new connection came in. Now it returns instead after dropping the connection. That will take it back to the select() loop where all transports can be serviced. I intend to MFC this within a day or two since it fixes a DoS vulnerability.
* Don't complain loudly about unknown termcap capabilities, eg:peter1999-11-172-2/+2
| | | | | | | | {vladivostok:/usr/home/ken:1:0} echo |more "TERMCAP", line 0, col 60, terminal 'screen': unknown capability 'G0' "TERMCAP", line 0, col 806, terminal 'screen': unknown capability 'AX' Submitted by: Kenneth D. Merry <ken@kdm.org>
* Introduce commandline caching in the kernel.phk1999-11-163-0/+66
| | | | | | | | | | | This fixes some nasty procfs problems for SMP, makes ps(1) run much faster, and makes ps(1) even less dependent on /proc which will aid chroot and jails alike. To disable this facility and revert to previous behaviour: sysctl -w kern.ps_arg_cache_limit=0 For full details see the current@FreeBSD.org mail-archives.
* Add to pwd_mkdb a -q option to silence warnings about large IDs. Add asheldonh1999-11-152-4/+15
| | | | | | | | | suitably ominous warning in the manual page. The diff applied is not the one provided in the attributed PR. PR: 13344 Reviewed by: bde
* fts_pathlen and fts_namelen are u_short, not shortkris1999-11-151-2/+2
| | | | Obtained from: OpenBSD
* Typokris1999-11-151-1/+1
| | | | Obtained from: OpenBSD
* Properly document what ENOENT really means for kldfind(2).chris1999-11-141-3/+1
|
* Don't include Kerberos if NOCRYPT is defined, because it isn't buildmarcel1999-11-143-5/+11
| | | | | if NOCRYPT is defined. Likewise, don't include DES if NOSECURE is defined.
* ${MACHINE} -> ${MACHINE_ARCH}marcel1999-11-141-15/+15
| | | | | | | | | | | | | | | | All Makefiles now use MACHINE_ARCH for the target architecture. Unification is required for cross-building. Tags added to: sys/boot/Makefile sys/boot/arc/loader/Makefile sys/kern/Makefile usr.bin/cpp/Makefile usr.bin/gcore/Makefile usr.bin/truss/Makefile usr.bin/gcore/Makefile: fixed typo: MACHINDE -> MACHINE_ARCH
* Go to a bit more trouble to make it absolutely clear that malloc(3)peter1999-11-121-2/+9
| | | | does not zero the allocated memory.
* Repo copy ncp_cfg.h ncp_lib.h ncp_file.h ncp_rcfile.h from here topeter1999-11-125-420/+1
| | | | | | sys/netncp/*. Disconnect them from here to avoid breakage. Submitted by: bp
* Decremement by 1 the value taken for %j before assigning it to tm_yday,sheldonh1999-11-101-6/+50
| | | | | | | | | | | | | | | | | which is zero-based. Correct the range checking for the value taken for %S. Add %w for the day of the week (0-6). Accept (but do nothing with) %U and %W. The comment for this change was taken from NetBSD. These changes were made after several failed attempts to contact the author of our strptime.c . PR: 10131 Submitted by: tadf@kt.rim.or.jp (Tadayoshi Funaba)
* Fix the VGLBITMAP_INITIALIZER macro; VXsize and VYsize shouldyokota1999-11-091-1/+1
| | | | be the same as Xsize and Ysize.
* Fix dead loop if locale contains / and not all categories specifiedache1999-11-091-1/+3
| | | | | PR: 14742 Submitted by: peter@wahoo.com.tw
* Remove useless section.phantom1999-11-091-2/+0
| | | | | PR: docs/14764 Submitted by: David Malone <dwmalone@maths.tcd.ie>
* Restore sub-chapters order.phantom1999-11-091-19/+16
| | | | | PR: docs/14766 Submitted by: Kazutoshi Kubota <kazu@iworks.co.jp>
* style fixphantom1999-11-091-5/+8
| | | | | PR: docs/14737 Submitted by: Norihiro Kumagai <kuma@nk.rim.or.jp>
* - This is the new version of libvgl jointly developed by sos and I.yokota1999-11-088-148/+683
| | | | | | | | | It adds new functions and extend some structures and can handle VESA modes. - Update the man page. - Bump the library version number. (The old version will be added to compat3x.)
* Flag empty UID entries as errors (to stop typos from turning intoeivind1999-11-061-1/+6
| | | | alternate root accounts).
* Link manual page for login_getpwclass(3) to login_cap(3).jkoshy1999-11-041-1/+3
| | | | | PR: docs/14673 Submitted by: Andrew <andrew@ugh.net.au>
* Add unsigned char cast to isalphaache1999-11-042-2/+2
|
* Add unsigned char cast to isdigitache1999-11-041-1/+1
|
* Add unsigned char cast to is[x]digitache1999-11-042-5/+5
|
* Add unsigned char cast to isdigitache1999-11-042-2/+2
|
* Add unsigned char cast to isupperache1999-11-041-1/+1
|
* unsigned char cast to ctype macrosache1999-11-041-1/+3
|
* Add unsigned char cast to ctype macros argache1999-11-045-37/+39
|
* Add unsigned char cast to isspace argache1999-11-044-7/+15
|
* Fix a really lame buglet which broke with IPs of 34green1999-11-031-1/+1
| | | | (ERANGE...)
* Change structure field tolower to to_lower. The same for the toupper.bp1999-11-031-4/+4
|
* It is no longer necessary to prepend underscores to external symbols underjoerg1999-11-021-24/+8
| | | | | | ELF. Submitted by: A.Leidinger@WJPServer.CS.Uni-SB.de (Alexander Leidinger)
* Teach libdisk about the AMI and Mylex RAID drivers. You should be ablemsmith1999-11-022-1/+5
| | | | to install directly to arrays managed by these controllers now.
* Document that bind(2) can fail with EAGAIN.nik1999-11-011-0/+3
| | | | | | PR: docs/14173 docs/14181 Submitted by: Charles Randall <crandall@matchlogic.com> Submitted by: Kelly Yancey <kbyanc@posi.net>
* Add support for RADIUS accounting. Note, this changes the formatjdp1999-10-315-53/+259
| | | | | | | | | | | of the /etc/radius.conf file. But the code contains hacks for backward compatibility, so old files will continue to work. I updated the man pages and made a couple of minor changes, but everything else was submitted by Oleg. PR: misc/14284 Submitted by: Oleg Semyonov <os@altavista.net>
* Allow whitespace termination. Internal use of /etc/resolv.conf reliesgreen1999-10-311-3/+6
| | | | on this, and who knows what else would, too...
* This is the new inet_addr/inet_aton with proper error checking. Thisgreen1999-10-311-65/+69
| | | | | | | | | should close all outstanding PRs on incorrect inet_aton behavior, and since it has a decent parsing routine, doesn't allow some hysterically working behavior. PR: 13628 Submitted by: Adrian Chadd <adrian@FreeBSD.org>
* Add support for C++ in the headers. Some style cleanup.bp1999-10-317-179/+181
| | | | Pointed by: bde
* Minor mdoc cleanup.mpp1999-10-301-1/+1
|
* mdoc(7)'fyphantom1999-10-303-9/+21
|
* Add HISTORY.obrien1999-10-291-0/+8
|
* Handle SAP responces in a more correct way. Allow connection numberbp1999-10-294-21/+30
| | | | greater than 255 in the broadcast messages.
OpenPOWER on IntegriCloud