summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* MFC rev. 1.33: document SO_NOSIGPIPE.Maxim Konovalov2006-05-011-1/+9
| | | | | | | Approved by: re (kensmith) Notes: svn path=/stable/5/; revision=158230
* MFC rev. 1.9: dbm_close(3) returns void.Maxim Konovalov2006-05-011-5/+1
| | | | | | | Approved by: re (kensmith) Notes: svn path=/stable/5/; revision=158224
* MFC:Joe Marcus Clarke2006-05-011-0/+1
| | | | | | | | | | Fix a file descriptor leak in cam_lookup_pass() when the ioctl to find the passthru device fails. Approved by: re (scottl) Notes: svn path=/stable/5/; revision=158200
* MFC: Add new libsm file from sendmail 8.13.6Gregory Neil Shapiro2006-03-291-1/+1
| | | | | | | Approved by: re (kensmith) Notes: svn path=/stable/5/; revision=157250
* MFC:Hajimu UMEMOTO2006-03-292-7/+28
| | | | | | | | | | | | | - When res_send() fails, we should reserve an error code. - When res_nquerydomain() returns SERVFAIL, we should try next domain. src/lib/libc/net/getaddrinfo.c: 1.75, 1.76 src/lib/libc/resolv/res_query.c: 1.3 Approved by: re (hrs) Notes: svn path=/stable/5/; revision=157241
* MFC:Yaroslav Tykhiy2006-03-113-8/+5
| | | | | | | | | | | Now login.access(5) feature belongs to pam_login_access(8), not to login(1), unlike it used to. This appears to apply to RELENG_5, too. Approved by: re (mux) Notes: svn path=/stable/5/; revision=156564
* Merge updated manual pages from HEAD to RELENG_5.George V. Neville-Neil2006-03-092-97/+146
| | | | | | | | | | | | | | 1.21 src/lib/libipsec/ipsec_set_policy.3 1.14 src/lib/libipsec/ipsec_strerror.3 1.17,1.18 src/share/man/man4/ipsec.4 Clean up some descriptions and remove ambiguities in the language. Add explanations to the examples. Approved by: re (scottl) Notes: svn path=/stable/5/; revision=156490
* MFC: rev. 1.30Christian Brueffer2006-03-091-1/+1
| | | | | | | | | Remove a useless word. Approved by: re (hrs) Notes: svn path=/stable/5/; revision=156481
* MFC: Handle the errors returned by res_querydomain() in same manner.Hajimu UMEMOTO2006-03-092-0/+40
| | | | | | | | | | lib/libc/net/getaddrinfo.c: 1.72 lib/libc/net/res_query.c: 1.32 Approved by: re (mux) Notes: svn path=/stable/5/; revision=156475
* MFC: Sync inet_net_pton() and inet_net_ntop() with latest BIND9'sHajimu UMEMOTO2006-03-063-85/+420
| | | | | | | | | | | | | includes an IPv6 support. lib/libc/net/inet_net.3: 1.3 lib/libc/net/inet_net_ntop.c: 1.8 lib/libc/net/inet_net_pton.c: 1.10 Approved by: re (scottl) Notes: svn path=/stable/5/; revision=156353
* MFC: Decrease the value of RES_DFLRETRY from 4 to 2.Hajimu UMEMOTO2006-03-061-1/+1
| | | | | | | | | | include/resolv.h: 1.26, 1.28 lib/libc/net/res_init.c: 1.33 Approved by: re (scottl) Notes: svn path=/stable/5/; revision=156352
* MFC:Hajimu UMEMOTO2006-03-042-18/+40
| | | | | | | | | | | | | - Just query 'as is', if there is a trailing dot in the name. - Don't query 'as is' twice. lib/libc/net/getaddrinfo.c: 1.71 lib/libc/net/res_query.c: 1.31 Approved by: re (scottl) Notes: svn path=/stable/5/; revision=156298
* MFC rmdir.2 1.14 and 1.15, and undelete.2 1.16 and 1.17Don Lewis2006-01-262-2/+10
| | | | | | | | | | | | rmdir() fails with EINVAL if the last component of the path is "..". Document the previously undocumented behaviour of rmdir(".") returning EINVAL as required by POSIX and SUSv3. Bump the man page change date. undelete() fails with EINVAL if the last component of the path is "..". Bump the man page change date. Notes: svn path=/stable/5/; revision=154843
* MFC: Return EINVAL if the tv_usec part of the utimes(2) argumentsDiomidis Spinellis2006-01-221-1/+7
| | | | | | | | | | | | contains incorrect fractional second values (outside the range 0-999999). Prior to this change users could create files with values outside that range. Moreover, on 32-bit machines tv_usec offsets larger than 4.3s would result in an unnormalized AND wrong timestamp value, due to overflow. Notes: svn path=/stable/5/; revision=154682
* MFC import of BIND 9.3.2Doug Barton2006-01-146-14/+61
| | | | Notes: svn path=/stable/5/; revision=154348
* Complete the MFC process for removing thread supportDoug Barton2006-01-147-20/+2
| | | | Notes: svn path=/stable/5/; revision=154347
* MFC rev 1.6:Brooks Davis2006-01-111-3/+1
| | | | | | | | | | | | | | | | | When removing the local domain, only do so when the result will be a host name. This is matches the documented behaviro. The previous behavior would remove the domain name even if the result retained a dot. This fixes rsh connections from a.example.com to example.com. This is also reported to fix rsh connections from host xxx to yyy.example.com. PR: 88301 Notes: svn path=/stable/5/; revision=154214
* MFC a small part of the big NetBSD merge that fixes a few bugs and should beStefan Farfeleder2006-01-097-56/+134
| | | | | | | | | | | | | | | | safe for RELENG_5. el.c: Check term_init() and strdup() failure. history.c and tokenizer.c: Check malloc() failure. makelist and map.c: Respect list sentinel. refresh.c: Refresh bug. Notes: svn path=/stable/5/; revision=154143
* MFC of fixes from Kame that didn't make the 5 STABLE branch.George V. Neville-Neil2005-12-242-4/+4
| | | | Notes: svn path=/stable/5/; revision=153702
* MF6: Restore the previous state after a FILL operation inJohn Baldwin2005-12-051-8/+15
| | | | | | | properties_read(). Notes: svn path=/stable/5/; revision=153130
* MF6: Add MLINK for execvP(3).John Baldwin2005-12-051-1/+1
| | | | Notes: svn path=/stable/5/; revision=153124
* MFC r1.7:Philip Paeps2005-12-031-2/+47
| | | | | | | | Check for altq presence during module init, and allow module to work even if altq is not present (just disable the altq bits in that case). Notes: svn path=/stable/5/; revision=153054
* MFC: Revision 1.60Tom McLaughlin2005-11-301-1/+1
| | | | | | | | | Misspelling in Poul-Henning Kamp's email address under AUTHORS Approved by: ade Notes: svn path=/stable/5/; revision=152946
* MFC 1.55: The KAME's getipnodebyaddr() code honor theHajimu UMEMOTO2005-11-181-0/+1
| | | | | | | | | MULTI_PTRS_ARE_ALIASES define also, but res_config.h was not included into libc/net/name6.c. So getipnodebyaddr() ignored the multiple PTRs. Notes: svn path=/stable/5/; revision=152563
* Correct the SHLIB_MAJOR back to 1 for libarchive.Tim Kientzle2005-10-141-2/+2
| | | | | | | | | | | | | | In a recent MFC, I accidentally picked up a SHLIB_MAJOR version bump for FreeBSD 6. Anyone that updated their 5-STABLE system between October 4, 2005 and now should delete /usr/lib/libarchive.so.2. Apologies. Notes: svn path=/stable/5/; revision=151329
* MFC 1.7: fixed the validation code of routing header length inHajimu UMEMOTO2005-10-101-4/+3
| | | | | | | inet6_rth_getaddr(). Notes: svn path=/stable/5/; revision=151192
* MFC: refer RFC 3542 rather than RFC 2292bis.Hajimu UMEMOTO2005-10-103-4/+4
| | | | | | | | | lib/libc/net/ip6opt.c: 1.8 lib/libc/net/rcmd.3: 1.25 lib/libc/net/rthdr.c: 1.8 Notes: svn path=/stable/5/; revision=151191
* MFC: Update libarchive to 1.02.033. (Synchronize with -CURRENT.)Tim Kientzle2005-10-0429-233/+651
| | | | | | | | | | | | | | | | | | | | | | | | Among other fixes: * C++ support * Portability: remove C99 requirements * Portability: don't require wchar.h * Check for memory allocation failures * Portability: better detection of ACL support * Signed/unsigned fixes * Fix crash when archive_read_next_header called after an open failure * Fix archive_read_data * Reduce window for attribute restore security race * Clean up pathnames before creating leading dirs * assign default inode/dev values to extracted tar entries to better support tar->cpio conversions * Trim mode and time values for inner ustar header when constructing pax entries * Sample code in archive_read.3 and archive_write.3 works now * Many comment and documentation corrections Notes: svn path=/stable/5/; revision=150900
* Fix reference paths.Jesus R. Camou2005-09-281-3/+3
| | | | | | | | Noticed by: Ilya Kiselyov <ilya@ostankino.ru> Approved by: trhodes (mentor) Notes: svn path=/stable/5/; revision=150672
* MFC: rev. 1.2Christian Brueffer2005-09-241-1/+1
| | | | | | | Use the correct function name as .Nm argument. Notes: svn path=/stable/5/; revision=150504
* MFC rev 1.64. Rev 1.51.2.3 claimed to be an MFC of 1.53, 1.55, 1.56,David Schultz2005-09-121-1/+1
| | | | | | | | | 1.59, 1.60, 1.62, and 1.64, but I left out 1.64. Reported by: asmodai@ Notes: svn path=/stable/5/; revision=150068
* MFC: check capable size of given strings correctly.R. Imura2005-09-081-1/+1
| | | | | | | | | 1.4 src/contrib/smbfs/lib/smb/kiconv.c 1.2 src/lib/libkiconv/xlat16_sysctl.c 1.11 src/sys/libkern/iconv.c Notes: svn path=/stable/5/; revision=149886
* MFC: Added a sentence to explain what "span" means.Gary W. Swearingen2005-09-072-1/+15
| | | | | | | | PR: docs/84850 Approved by: re Notes: svn path=/stable/5/; revision=149860
* MFC r1.6: fix unhandled malloc errors.Philip Paeps2005-09-011-9/+54
| | | | Notes: svn path=/stable/5/; revision=149689
* MFC 1.28:Gleb Smirnoff2005-08-311-1/+16
| | | | | | | | | | | | | | - Document the fact that the real length of listen queue is 1.5 more than the value of backlog argument. - Document the fact that a subsequent listen(2) calls on the listening socket change the backlog argument. - Note that current listen queue lengths can be queried using netstat(1). Submitted by: Igor Sysoev <is rambler-co.ru> Wording by: gnn Notes: svn path=/stable/5/; revision=149670
* MFC: sendmail 8.13.4 and hoststat(8)/purgestat(8) man page linkingGregory Neil Shapiro2005-08-281-1/+1
| | | | | | | Reminder by: Terry Kennedy Notes: svn path=/stable/5/; revision=149545
* MFC:Remko Lodder2005-08-201-0/+4
| | | | | | | | | | | | | | | Document the fact that accept(2) may return EINVAL when addrlen is negative (in addition to returning EINVAL when called on a descriptor that is not a socket). Submitted by: Arne H Juul <arnej@europe.yahoo-inc.com> PR: docs/80587 PR: docs/54995, docs/80587 Prodded by: rionda Notes: svn path=/stable/5/; revision=149316
* Merge spelling fixes from CURRENT. The revisions MFC'ed are:Giorgos Keramidas2005-08-188-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revision Path 1.9 src/lib/libarchive/archive_entry.3 1.20 src/lib/libarchive/archive_read.3 1.9 src/lib/libc/net/inet6_rth_space.3 1.7 src/lib/libc/posix1e/acl_get_entry.3 1.14 src/lib/libc/posix1e/mac.3 1.6 src/lib/libc/posix1e/mac_prepare.3 1.36 src/lib/libc/stdtime/strftime.3 1.15 src/lib/libc/sys/kse.2 1.7 src/lib/libc/sys/uuidgen.2 1.5 src/share/man/man4/man4.i386/acpi_panasonic.4 1.39 src/share/man/man4/man4.i386/ep.4 1.4 src/share/man/man4/man4.i386/snc.4 1.3 src/share/man/man4/man4.sparc64/snd_audiocs.4 1.10 src/share/man/man4/witness.4 1.2 src/share/man/man5/devfs.conf.5 1.50 src/share/man/man9/ifnet.9 1.6 src/share/man/man9/printf.9 1.11 src/usr.bin/file2c/file2c.1 1.26 src/usr.bin/indent/indent.1 1.16 src/usr.bin/lockf/lockf.1 1.89 src/usr.bin/make/make.1 1.44 src/usr.bin/systat/systat.1 1.18 src/usr.bin/truss/truss.1 1.32 src/usr.bin/xinstall/install.1 1.10 src/usr.sbin/bluetooth/rfcomm_pppd/rfcomm_pppd.8 1.3 src/usr.sbin/bluetooth/sdpd/sdpd.8 1.35 src/usr.sbin/i4b/isdnd/isdnd.rc.5 1.52 src/usr.sbin/mtree/mtree.8 1.7 src/usr.sbin/ndiscvt/ndiscvt.8 1.12 src/usr.sbin/ntp/doc/ntpdc.8 1.25 src/usr.sbin/pppd/pppd.8 1.39 src/usr.sbin/syslogd/syslog.conf.5 Notes: svn path=/stable/5/; revision=149237
* MFC the removal of threading from BIND.Doug Barton2005-08-065-29/+28
| | | | | | | Original work by: des Notes: svn path=/stable/5/; revision=148776
* MFC: v1.40 help.common, v1.45 intro.2John-Mark Gurney2005-08-011-4/+1
| | | | | | | Fix a couple documentation issues... Notes: svn path=/stable/5/; revision=148628
* MFC 1.12: don't accept invalid form of an address like 1:2:3:4:5:6:7::8.Hajimu UMEMOTO2005-07-291-0/+4
| | | | Notes: svn path=/stable/5/; revision=148528
* Correct a buffer overflow which can occur when decompressing aColin Percival2005-07-271-4/+4
| | | | | | | | | | | | carefully crafted deflated data stream. [1] Correct problems in the AES-XCBC-MAC IPsec authentication algorithm. [2] Submitted by: suz [2] Security: FreeBSD-SA-05:18.zlib [1], FreeBSD-SA-05:19.ipsec [2] Notes: svn path=/stable/5/; revision=148438
* MFC: 1.13Matthew N. Dodd2005-07-251-3/+4
| | | | | | | | Move initialization above point of first possible reference to avoid overwriting ty_status values set from the 'type' field. Notes: svn path=/stable/5/; revision=148409
* MFC of 1.34: fix innetgr() returning false positives and negatives when ↵Jonathan Chen2005-07-251-54/+63
| | | | | | | | | reverse netgroup matching is used. PR: 35506 Notes: svn path=/stable/5/; revision=148402
* fix that little lie I told six months ago about doing an MFC in 3 days...Jonathan Chen2005-07-221-0/+1
| | | | | | | MFC from 1.33: remember to reset nextgrp in getnetgrent(), so that subsequent calls to getnetgrent() doesn't return bogus information. Notes: svn path=/stable/5/; revision=148316
* Merge sem_init.3:1.18, sem_post.3:1.15, sem_wait.3:1.13 from HEAD toRobert Watson2005-07-173-0/+3
| | | | | | | | | | RELENG_5: Cross-reference sem_getvalue(3) from several other semaphore-related functions. Notes: svn path=/stable/5/; revision=148104
* MFC revision 1.13Xin LI2005-07-171-4/+7
| | | | | | | | | | | | | | | | | date: 2005/07/13 10:40:07; author: delphij; state: Exp; lines: +7 -4 Better memory handling: - It is acceptable to call free(3) when the given pointer itself is NULL, so we do not need to determine NULL before passing a pointer to free(3) - Handle failure of malloc(3) Submitted by: Dan Lukes <dan at obluda cz> PR: bin/83352 Approved by: re (scottl) Notes: svn path=/stable/5/; revision=148099
* MFC: Add the preadv() and pwritev() system calls.John Baldwin2005-07-143-16/+48
| | | | Notes: svn path=/stable/5/; revision=148003
* MFC v1.15, Add -D_FREEFALL_CONFIG to CFLAGS via Makefile so that justKen Smith2005-07-111-0/+1
| | | | | | | | defining _FREEFALL_CONFIG in /etc/make.conf is all that is required for the clusterisms to take effect. Notes: svn path=/stable/5/; revision=147927
* MFC rev. 1.6 of src/lib/libz/inftrees.c:Colin Percival2005-07-061-1/+1
| | | | | | | | | | Correct a buffer overflow which occurred in the handling of some particularly corrupt deflated data streams. Security: FreeBSD-SA-05:16.zlib Notes: svn path=/stable/5/; revision=147791