aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* As-per r161293 (jhb), only recognize mfi(4) on i386.Devin Teske2014-04-301-1/+1
| | | | | | | | This is a direct commit to stable/4 as all future branches contain r105818 which made this code obsolete. Notes: svn path=/stable/4/; revision=265129
* Teach libdisk about mfid devices. This is a direct commit to stable/4Devin Teske2014-04-302-2/+4
| | | | | | | since stable/5 and newer have r105681 which made this code obsolete. Notes: svn path=/stable/4/; revision=265126
* MF7: If the running kernel has support for shm_open() and shm_unlink() asJohn Baldwin2009-06-231-0/+28
| | | | | | | | system calls (i.e. 8.0+), then invoke the system calls instead of using open/fcntl/unlink. Notes: svn path=/stable/4/; revision=194744
* MFC: Add a feature_present(3) function which checks to see if a named kernelJohn Baldwin2009-06-113-2/+138
| | | | | | | feature is present by checking the kern.features sysctl MIB. Notes: svn path=/stable/4/; revision=193999
* MFC: Fail attempts to use file descriptors larger than SHRT_MAX.John Baldwin2008-03-173-0/+42
| | | | Notes: svn path=/stable/4/; revision=177307
* MFC rev. 1.35 - remove MSG_PEEK from the description of the send(2)Peter Pentchev2007-05-041-1/+0
| | | | | | | syscall; it is only relevant for incoming data. Notes: svn path=/stable/4/; revision=169244
* MFC: sendmail 8.14.1Gregory Neil Shapiro2007-04-122-3/+3
| | | | Notes: svn path=/stable/4/; revision=168643
* MFC: Don't read more than the given 'len' bytes from the 'big' string.John Baldwin2007-02-011-1/+1
| | | | Notes: svn path=/stable/4/; revision=166406
* MFC: uthread fixes for select timeout and signal handling.John Baldwin2006-10-232-37/+58
| | | | Notes: svn path=/stable/4/; revision=163633
* MFC: rev 1.21: fix return of uninitialized data from malloc(). CouldPeter Wemm2006-09-121-0/+1
| | | | | | | cause readdir() to fail or give duplicate results or other strange things. Notes: svn path=/stable/4/; revision=162260
* 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/4/; revision=158200
* MFC: Add new libsm file from sendmail 8.13.6Gregory Neil Shapiro2006-03-291-1/+1
| | | | Notes: svn path=/stable/4/; revision=157252
* MFC 1.55: fill ai_canonname field for numeric hostname, by the givenHajimu UMEMOTO2006-03-271-7/+24
| | | | | | | | | hostname. follow new recommendation in RFC3493. PR: standards/94995 Notes: svn path=/stable/4/; revision=157180
* 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/4/; revision=154680
* 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/4/; revision=152564
* 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/4/; revision=149546
* 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/4/; revision=148531
* 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/4/; revision=148408
* MFC of 1.33: remember to reset nextgrp in getnetgrent(), so that subsequent ↵Jonathan Chen2005-07-251-56/+65
| | | | | | | | | | | calls to getnetgrent() doesn't return bogus information. MFC of 1.34: fix innetgr() returning false positives and negatives when reverse netgroup matching is used. PR: 35506 Notes: svn path=/stable/4/; revision=148406
* 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/4/; revision=148099
* MFC: (1.75, 1.76) flush the send side rather than shut it down.Dag-Erling Smørgrav2005-07-031-2/+23
| | | | Notes: svn path=/stable/4/; revision=147749
* MFC 1.15+1.16: Remove a check about whether sa->sa_len is equal to salenXin LI2005-05-091-3/+0
| | | | | | | | | | | | from getnameinfo(3). This improves API compatibility with other POSIX complaint operating systems. PR: standards/80008 Requested by: Xin Liu <lx@knight.6test.edu.cn> Reviewed by: freebsd-standards (das) Notes: svn path=/stable/4/; revision=146026
* MFS:Hajimu UMEMOTO2005-05-053-25/+61
| | | | | | | | | | | | | - replace use of a spinlock with a mutex. - enclose getservby{name,port}(3) call with mutex lock. - protect _hostconf_init_done and _hostconf_init() call with mutex lock. lib/libc/net/getaddrinfo.c: 1.41 lib/libc/net/name6.c: 1.33 lib/libc/net/getnameinfo.c: 1.14.6.1, 1.14.6.2 Notes: svn path=/stable/4/; revision=145897
* MFC: rev 1.8Joe Marcus Clarke2005-03-061-3/+3
| | | | | | | | | | | | Fix a problem in the Skinny ALG where a specially crafted packet could cause a libalias application (e.g. natd, ppp, etc.) to crash. Note: Skinny support is not enabled in natd or ppp by default. Approved by: nectar (secteam) Security: This fixes a remote DoS exploit Notes: svn path=/stable/4/; revision=143187
* MFC rev. 1.13: remove the misleading documentation of the unusedPeter Pentchev2005-02-271-17/+1
| | | | | | | 'key' argument to mpool_open(3). Notes: svn path=/stable/4/; revision=142650
* MFC: (1.50) stop leaking connection buffers.Dag-Erling Smørgrav2005-02-231-0/+1
| | | | Notes: svn path=/stable/4/; revision=142295
* MFC: Remove file no longer in 8.13.3Gregory Neil Shapiro2005-02-191-1/+1
| | | | Notes: svn path=/stable/4/; revision=142101
* MFC 1.54: query A RR before AAAA RR.Hajimu UMEMOTO2005-02-031-10/+10
| | | | Notes: svn path=/stable/4/; revision=141177
* Merge copyright changes from -current.Jeffrey Hsu2005-01-192-4/+4
| | | | | | | Approved by: re (Ken Smith). Notes: svn path=/stable/4/; revision=140493
* Teach libdisk about the ipsd devices. Note: I don't like to editorilize inScott Long2005-01-132-1/+3
| | | | | | | | | | | commits, but libdisk is just plain lame. Being required to teach it about each disk device name is part of the magic folklore that is just plain wrong. This is one of the many many many reasons why libdisk & sysinstall need to be thrown away and rebuilt from scratch. No amount of tweaking and fixing them will make them better. Notes: svn path=/stable/4/; revision=140193
* MFC 1.16 (plug memory leak)Diomidis Spinellis2005-01-131-0/+4
| | | | | | | PR: bin/75656 Notes: svn path=/stable/4/; revision=140168
* Add a period to the end of a sentence, and bump document date.Ken Smith2005-01-121-2/+2
| | | | | | | Pointy hat: kensmith Notes: svn path=/stable/4/; revision=140128
* This is a partial MFC of the current RELENG_5 Linux emulation, whichKen Smith2005-01-122-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | became necessary due to the plans for using linux_base-8 for the 4.11 release. Among other things running "/compat/linux/bin/ls -l" dumped core because it tried to use completely non-existent system calls. We don't actually implement the system calls it's trying to use but we at least need to have something in place that returns an error code. Things being added: - wrapper for mmap2(2) from sys/compat/linux/linux_machdep.c v1.31 sys/compat/linux/linux_dummy.c v1.35 - add dummy entries for fadvise64(2) and *xattr(2) family of syscalls from sys/compat/linux/linux_dummy.c v1.37 - add ENOATTR error code because that is what the *xattr(2) family of syscalls returns, which in turn required tweaking the error code translation table in the NFS server code[1]. - add $FreeBSD$ token to lib/libc/gen/errlst.c so it passes pre-commit check script... [1] Noticed by rwatson. Requested by: nectar Reviewed by: nectar, sobomax, re@ Tested by: nectar, ceri MFS after: 2 days Notes: svn path=/stable/4/; revision=140126
* MFC: rev 1.24Kirill Ponomarev2005-01-021-1/+3
| | | | | | | | | | | | date: 2004/12/30 13:09:34; author: krion; state: Exp; lines: +3 -1 Add LOG_NTP facility. Submitted by: Kurt Jaeger <pi at complx dot LF dot net> Approved by: ru MFC after: 3 days Notes: svn path=/stable/4/; revision=139571
* MFC rev. 1.9: no macros for sigemptyset(3) and friends,Maxim Konovalov2004-12-271-9/+12
| | | | | | | sigismember(3) could return -1. Notes: svn path=/stable/4/; revision=139355
* MFC 1.37, 1.40: Document S_* macros and more struct stat fields.Yaroslav Tykhiy2004-12-221-3/+61
| | | | | | | Requested by: roam Notes: svn path=/stable/4/; revision=139180
* MFC: Make popen(3) thread-safe for libc_r.Yaroslav Tykhiy2004-12-151-8/+30
| | | | | | | | Submitted by: marck Approved by: re (kensmith) Notes: svn path=/stable/4/; revision=138890
* - MFC:Marius Strobl2004-12-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | | lib/Makefile 1.155 libexec/Makefile 1.57 usr.bin/Makefile 1.234 (partly), 1.235 Build non-crypto telnet(1) and telnetd(8) if NO_OPENSSL is defined. - Replace the check for the non-existence of src/secure and src/kerberosIV with a check for the non-existence of src/crypto only. This is to bring these checks in line with the demise of the NOSECURE knob and because if src/crypto doesn't exist we won't build any crypto stuff including not Kerberos IV (and also not Kerberos 5 for that matter). Note: On HEAD all these checks for the existence of crypto sources even have been completely removed. Discussed with: ru (some months ago) Reviewed by: ru (some months ago) Approved by: markm (telnet and secure bits, some months ago) Notes: svn path=/stable/4/; revision=138807
* MFC:Marius Strobl2004-12-134-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makefile.inc1 1.361 bin/ed/Makefile 1.22 lib/Makefile 1.157 lib/libcrypt/Makefile 1.31 lib/libfetch/Makefile 1.41 lib/libpam/modules/modules.inc 1.17 libexec/Makefile 1.61 share/examples/etc/make.conf 1.215 share/man/man5/make.conf.5 1.73 usr.bin/Makefile 1.239 usr.bin/fetch/Makefile 1.14 usr.sbin/pkg_install/Makefile 1.14 usr.sbin/pkg_install/add/Makefile 1.17 usr.sbin/pkg_install/info/Makefile 1.17 usr.sbin/pkg_install/version/Makefile 1.12 usr.sbin/ppp/Makefile 1.95, 1.96 usr.sbin/pppd/Makefile 1.25 usr.sbin/sendmail/Makefile 1.40 usr.sbin/tcpdump/tcpdump/Makefile 1.36 Retire the useless NOSECURE knob. The motivation for this MFC is that MAKE_KERBEROS4 and MAKE_KERBEROS5 are meant to be buildable by various makefiles when NOSECURE is set but this was broken because Kerberos depends on e.g. des(3) from OpenSSL which wasn't built when NOSECURE was defined. Fixing the NOSECURE knob however would have meant to make it do the same as the NOCRYPT knob. If you had been using the NOSECURE build knob please now use the NOCRYPT knob instead. Discussed with: ru (some months ago) Reviewed by: ru (some months ago) Approved by: markm (telnet and secure bits, some months ago), kensmith (re) Notes: svn path=/stable/4/; revision=138803
* MFC 1.23: Correctly document the return value of strerror() andGiorgos Keramidas2004-11-201-11/+10
| | | | | | | | strerror_r() and the contents of the returned buffer for unknown error codes. Notes: svn path=/stable/4/; revision=137900
* MFC:Hidetoshi Shimokawa2004-10-231-3/+5
| | | | | | | Add support for eui64(5) to libc. Notes: svn path=/stable/4/; revision=136813
* MFC: Fix a condition where the hole would be inserted in the wrongJun Kuriyama2004-09-191-2/+4
| | | | | | | | | place during a split. Obtained from: NetBSD Notes: svn path=/stable/4/; revision=135464
* MFC: Add support for VIS_GLOB and sync with -current.Hidetoshi Shimokawa2004-09-172-28/+51
| | | | | | | PR: bin/60524 Notes: svn path=/stable/4/; revision=135361
* MFC rev. 1.20: spell _SC_CLK_TCK correctly.Peter Pentchev2004-08-231-1/+1
| | | | Notes: svn path=/stable/4/; revision=134205
* MFC getaddrinfo.3 1.25, getipnodebyname.3 1.14 and getnameinfo.3 1.17:Peter Pentchev2004-08-233-3/+7
| | | | | | | cross-reference these three pages. Also, bump the document date. Notes: svn path=/stable/4/; revision=134204
* Argh... also MFC rev. 1.52: spell FTP correctly and bump the date.Peter Pentchev2004-08-231-2/+2
| | | | Notes: svn path=/stable/4/; revision=134203
* MFC rev. 1.51: describe the ftp-chroot option of login.conf.Peter Pentchev2004-08-231-1/+11
| | | | Notes: svn path=/stable/4/; revision=134201
* MFC: now e.f.f.3.ip6.arpa is delegated, we no longer need to query ip6.intDavid Malone2004-08-212-7/+1
| | | | | | | Obtained from: KAME Notes: svn path=/stable/4/; revision=134105
* MFC revisions 1.29 through 1.31: fix a printf() example and bumpPeter Pentchev2004-08-131-3/+3
| | | | | | | the document date. Notes: svn path=/stable/4/; revision=133634
* MFC: (1.73) allocate space for terminating NUL in base 64 encoded string.Dag-Erling Smørgrav2004-08-101-1/+1
| | | | Notes: svn path=/stable/4/; revision=133416