aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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: 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: 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 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 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 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.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.54: query A RR before AAAA RR.Hajimu UMEMOTO2005-02-031-10/+10
| | | | Notes: svn path=/stable/4/; revision=141177
* 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 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
* 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
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2004-08-081-0/+230
| | | | Notes: svn path=/stable/4/; revision=133339
* MFC: daemon.c 1.6 daemon.3 1.13-1.14Guy Helmer2004-07-211-1/+20
| | | | | | | | | | | | | | | | Prevent abnormal termination of a child daemon process when created by a parent that is a session leader (e.g., login shell) by ignoring SIGHUP before calling fork(2) and then restoring SIGHUP's action after setsid(3). Based on the patch by Martin Kammerhofer <mkamm@gmx.net>. This has been in -current for 8 months with no reports of adverse affects. PR: bin/25462 Prompted-by: dada@sbox.tugraz.at Notes: svn path=/stable/4/; revision=132500
* Remove references to netstat(1).Max Khon2004-06-201-3/+0
| | | | Notes: svn path=/stable/4/; revision=130790
* MFC:Max Khon2004-06-171-1/+50
| | | | | | | | | | | | | | sendfile(2)-related statistics that can be viewed through netstat -m: - The number of times sendfile() had to do disk I/O - The number of times sfbuf allocation failed - The number of times sfbuf allocation had to wait and three sysctl's: kern.ipc.nsfbufs, kern.ipc.nsfbufspeak, kern.ipc.nsfbufsused that also can be viewed through netstat -m. Submitted by: Igor Sysoev <is (at) rambler-co.ru> Notes: svn path=/stable/4/; revision=130618
* MFC 1.52: _dns_getaddrinfo() used a dangling pointer "addr" inHajimu UMEMOTO2004-06-161-5/+4
| | | | | | | | | | | the res_target structure. It was not a problem for now. But, It should be fixed for a future. PR: bin/67994 Submitted by: JINMEI Tatuya <jinmei@ocean.jinmei.org> Notes: svn path=/stable/4/; revision=130602
* Merge rev. 1.28:Peter Pentchev2004-06-161-4/+4
| | | | | | | | | Fix the ordering in the description of the dlsym() lookup procedure to reflect src/libexec/rtld-elf/rtld.c rev. 1.68 - the globally-loaded objects (RTLD_GLOBAL) are searched before the local object's DAG's. Notes: svn path=/stable/4/; revision=130595
* Revert previous commit regarding FUNLOCKFILE(fp), it has ill effects.Hiten Pandya2004-06-091-1/+1
| | | | Notes: svn path=/stable/4/; revision=130279
* Move the call to FUNLOCKFILE(fp) after modification of the fp's fields.Hiten Pandya2004-06-081-1/+1
| | | | | | | | Reviewed by: Daniel Eischen <deischen at freebsd.org>, Robert Watson <rwatson at freebsd.org> Notes: svn path=/stable/4/; revision=130247
* MFC accept.2 rev. 1.27: clarification that 'addr' is optional.Peter Pentchev2004-06-041-1/+7
| | | | Notes: svn path=/stable/4/; revision=130058
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2004-06-021-0/+311
| | | | Notes: svn path=/stable/4/; revision=130005
* MFC:Yaroslav Tykhiy2004-05-313-7/+56
| | | | | | | | Clarify the issue of compatibility of different interfaces to advisory locking. Notes: svn path=/stable/4/; revision=129900
* MFC changes 1.29 -> 1.30Diomidis Spinellis2004-05-241-0/+4
| | | | | | | | Remove a trailing newline, to behave as documented in syslog(3): "A trailing newline is added if none is present." Notes: svn path=/stable/4/; revision=129662
* Bring in important changes from HEAD:Hiten Pandya2004-05-201-10/+1
| | | | | | | | | | * Remove a long obsolete paragraph from the BUGS section. * Bump the date. Requested by: alc Notes: svn path=/stable/4/; revision=129520
* MFC: rev 1.28 -- fix unqualified names.Nate Lawson2004-05-131-6/+18
| | | | Notes: svn path=/stable/4/; revision=129169
* MFC v1.15, split_lines() rewriteAndrey A. Chernov2004-05-031-3/+7
| | | | Notes: svn path=/stable/4/; revision=128858
* This is a partial MFC of 1.74. From the CVS log for that:Ken Smith2004-04-201-0/+2
| | | | | | | | | | | | | | revision 1.74 date: 2003/01/30 15:00:17; author: phk; state: Exp; lines: +4 -0 Catch some cases where asking for ridiculously large allocations could result in a segfault. Instead just return NULL. Requested by: JINMEI Tatuya <jinmei (at) isl.rdc.toshiba.co.jp> and so@ Reviewed by: phk (but he's not responsible if this makes 4.10 go boom :-) Approved by: re (scottl) Notes: svn path=/stable/4/; revision=128477
* MFC: 1.16 - 1.19Christian Brueffer2004-04-171-1/+16
| | | | | | | | | | | o List some sysctl variables that influence accounting o Add reference to accton.8 o Bump document date Approved by: re (kensmith) Notes: svn path=/stable/4/; revision=128351
* MFC rev 1.36/1.37: fix _dns_ghbyname() to return NS_TRYAGAIN insteadPierre Beyssac2004-04-121-4/+8
| | | | | | | | | | of NS_NOTFOUND. This gets getipnodebyname(3) to correctly return h_errno=TRY_AGAIN instead of HOST_NOT_FOUND. Approved by: re (scottl) Notes: svn path=/stable/4/; revision=128173
* MFC revision 1.28Diomidis Spinellis2004-03-261-3/+1
| | | | | | | | | Shave-off troff cycles by invoking .Fa only once. Submitted by: ru Notes: svn path=/stable/4/; revision=127446
* MFC 1.27 changes.Diomidis Spinellis2004-03-191-0/+8
| | | | | | | Document missing EFAULT errno value. Notes: svn path=/stable/4/; revision=127200