summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Change the utrace log entry for malloc_init from (0, 0, 0) to (-1, 0, 0)cperciva2009-11-141-1/+1
| | | | | | in order to distinguish it from free(NULL), which is logged as (0, 0, 0). Reviewed by: jhb
* Remove a note about vfork(4) going to be eliminated, it's here to stay.brueffer2009-11-131-8/+0
| | | | | Submitted by: kib MFC after: 1 week
* Improved the manpage description. The committed wordingbrueffer2009-11-131-2/+2
| | | | | | | | | was provided by jhb. PR: 140528 Submitted by: Chris Petrik <chris@officialunix.com> Discussed with: remko, jhb and the submitter MFC after: 1 week
* Note that nullok should not be used by processes that can't access thedes2009-11-131-0/+11
| | | | | | | password database. PR: bin/126650, misc/140514 MFC after: 1 week
* Fix the grammar in the isprint(3) description.roam2009-11-131-1/+1
| | | | | PR: 140456 Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
* Fix the grammar in the isgraph(3) description, almost as per the PR.roam2009-11-131-1/+1
| | | | | | PR: 140455 Submitted by: Jeremy Huddleston <jeremyhu@apple.com> MFC after: 2 weeks
* Add missing IEEE1394 support dropped during merge from NetBSD.ume2009-11-121-0/+11
|
* Synchronize with C.msg revision 199083 and improve some existing messages.rene2009-11-111-30/+57
| | | | | Reviewed by: remko Approved by: remko
* ANSIfy.ume2009-11-111-25/+8
| | | | MFC after: 1 week
* Fix the grammar as in the PR, and then some.roam2009-11-111-2/+2
| | | | | | PR: 140454 Submitted by: Jeremy Huddleston <jeremyhu@apple.com> MFC after: 2 weeks
* Add Japanese catalogue entries for newer errnos: EBADMSG, EMULTIHOP,ume2009-11-102-0/+20
| | | | ENOLINK, EPROTO, ENOTCAPABLE.
* Add gai_strerror() catalog for ja_JP.UTF-8 and ja_JP.eucJP.ume2009-11-092-0/+72
|
* Add NLS catalogs support to gai_strerror(3).ume2009-11-092-0/+94
| | | | Controlled by NLS define.
* Fix comment.ume2009-11-092-2/+2
| | | | | Pointed out by: nyan MFC after: 1 week
* Add ja_JP.eucJP catalog.ume2009-11-092-0/+250
| | | | | Reviewed by: hrs, nork, takawata MFC after: 1 week
* Add ja_JP.UTF-8 catalog.ume2009-11-092-0/+250
| | | | | Reviewed by: hrs, nork, takawata MFC after: 1 week
* - fix refcounting error during data transferthompsa2009-11-087-35/+251
| | | | | | | | | | | | | - fix a memory leak on the USB backend - fix invalid pointer computations (in one case memory outside the allocated area was written in LibUSB v1.0) - make sure memory is always initialised, also in failing cases - add missing functions from v1.0.4 PR: usb/140325 Reported by: Robert Jenssen Submitted by: Hans Petter Selasky MFC After: 3 days
* Fix a copy+paste error by checking the correct variable against MM_NULLACT.brueffer2009-11-081-1/+1
| | | | | | PR: 140386 Submitted by: soulcatcher <soulcatcher13@gmail.com MFC after: 1 week
* - Strip trailing CRsgabor2009-11-081-259/+259
| | | | Requested by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
* - Update Ukranian cataloggabor2009-11-081-0/+10
| | | | Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
* Fix a copy-paste bug when reading data from the last 3 (7 for PAE) bytes ofjhb2009-11-061-6/+6
| | | | | | | a page mapped by a large page in the kernel. Submitted by: Dorr H. Clark dclark of engr.scu.edu MFC after: 1 week
* Add MAP_ANONYMOUS.ed2009-11-061-1/+5
| | | | | | | | Many operating systems also provide MAP_ANONYMOUS. It's not hard to support this ourselves, we'd better add it to make it more likely for applications to work out of the box. Reviewed by: alc (mman.h)
* IP_TTL is an IP socket option, not a TTL value. Use IPDEFTTLmarcel2009-11-051-1/+1
| | | | instead.
* Use our canonical .Dd format.brueffer2009-11-0211-11/+11
| | | | Submitted by: Ulrich Spoerlein
* Attempt to reduce accidental foot-shooting by pointing out thatcperciva2009-11-021-0/+4
| | | | | | | | accept(2)ed sockets do not necessarily inherit O_NONBLOCK from listening sockets on non-FreeBSD platforms. Feet shot: cperciva MFC after: 1 month
* Initialize f_rabuf in the raw device case. A subsequent close()brueffer2009-10-281-0/+1
| | | | | | | | later on would try to free it, leading to a crash. PR: 93998 Submitted by: neel MFC after: 1 week
* Move pselect(3) man page to section 2.kib2009-10-283-5/+6
| | | | | Noted by: jhb MFC after: 1 month
* Commit libc files missed in r198508kib2009-10-273-8/+1
|
* Current pselect(3) is implemented in usermode and thus vulnerable tokib2009-10-273-79/+6
| | | | | | | | | | | | | | | | | well-known race condition, which elimination was the reason for the function appearance in first place. If sigmask supplied as argument to pselect() enables a signal, the signal might be delivered before thread called select(2), causing lost wakeup. Reimplement pselect() in kernel, making change of sigmask and sleep atomic. Since signal shall be delivered to the usermode, but sigmask restored, set TDP_OLDMASK and save old mask in td_oldsigmask. The TDP_OLDMASK should be cleared by ast() in case signal was not gelivered during syscall execution. Reviewed by: davidxu Tested by: pho MFC after: 1 month
* Fix typo in bluetooth.3emax2009-10-262-3/+3
| | | | | | Do not use reserved C++ keyword "new" MFC after: 1 month
* Implement _umtx_op_err() for ia64.marcel2009-10-243-1/+38
|
* Not all Intel Core (TM) CPUs implement PMC_CLASS_IAF fixed-functionjkoshy2009-10-241-12/+47
| | | | | | | counters. For such CPUs, use an alternate mapping of convenience names to events supported by PMC_CLASS_IAP programmable counters. Testing and review by: fabient
* wordexp(3): fix some bugs with signals and long outputsjilles2009-10-231-19/+57
| | | | | | | | | | | | * retry various system calls on EINTR * retry the rest after a short read (common if there is more than about 1K of output) * block SIGCHLD like system(3) does (note that this does not and cannot work fully in threaded programs, they will need to be careful with wait functions) PR: 90580 MFC after: 1 month
* Prevent wraparound of the timeout variable.thompsa2009-10-221-1/+5
| | | | Submitted by: HPS
* PR: 139751fabient2009-10-211-1/+1
| | | | | | Approved by: des Obtained from: Xavier Heiny <xavier.heiny@netasq.com> MFC after: 3 weeks
* Make getcwd(3) faster, simpler and more compliant using *at syscalls.jilles2009-10-131-45/+18
| | | | | It is no longer necessary to construct long paths consisting of repeated "../" which may be slow to process and may exceed PATH_MAX.
* Add C message catalogue entries for newer errnos: EBADMSG, EMULTIHOP,rwatson2009-10-131-0/+10
| | | | | | | ENOLINK, EPROTO, ENOTCAPABLE. Submitted by: Alan R. S. Bueno <alan.bsd at gmail.com> MFC after: 3 days (most)
* Make openat(2) a cancellation point.jilles2009-10-116-0/+38
| | | | | | | This is required by POSIX and matches open(2). Reviewed by: kib, jhb MFC after: 1 month
* In nanosleep(2), note that the calling thread is put to sleep, not thekib2009-10-111-1/+3
| | | | | whole process. Also explicitely name the parameter that specifies sleep interval.
* Document errno codes added in r144530.das2009-10-111-0/+8
|
* Add a new errno, ENOTCAPABLE, to be returned when a process requests anrwatson2009-10-072-0/+4
| | | | | | | | operation on a file descriptor that is not authorized by the descriptor's capability flags. MFC after: 1 month Sponsored by: Google
* Add basename_r(3) to complement basename(3). basename_r(3) which acceptsrwatson2009-10-064-13/+33
| | | | | | | | a caller-allocated buffer of at least MAXPATHLEN, rather than using a global buffer. MFC after: 1 month Sponsored by: Google
* fts_open() requires that the list passed as argument to contain at leastdelphij2009-10-052-2/+8
| | | | | | | | | one path. When the list is empty (contain only a NULL pointer), return EINVAL instead of pretending to succeed, which will cause a NULL pointer deference in a later fts_read() call. Noticed by: Christoph Mallon (via rdivacky@) MFC after: 2 weeks
* pam_ssh needs roaming_dummy to link correctly against libssh.des2009-10-051-0/+3
|
* Modified locale(1) to be able to show the altmon_X fields and the [cxX]_fmt's.edwin2009-10-051-0/+6
| | | | | | Also modify the "-k list" option to display only fields with a certain prefix. MFC after: 1 week
* Better glibc compatibility for getline/getdelim:das2009-10-041-2/+2
| | | | | | | | | | | | | | - Tolerate applications that pass a NULL pointer for the buffer and claim that the capacity of the buffer is nonzero. - If an application passes in a non-NULL buffer pointer and claims the buffer has zero capacity, we should free (well, realloc) it anyway. It could have been obtained from malloc(0), so failing to free it would be a small memory leak. MFC After: 2 weeks Reported by: naddy PR: ports/138320
* Install x86 related man pages on x86 systems only.rpaulo2009-10-041-0/+2
| | | | Reviewed by: jkoshy
* Correct the pthread stub prototype for pthread_mutexattr_settype to allow formarcus2009-10-011-1/+1
| | | | | | | | | the type argument. This is known to fix some pthread_mutexattr_settype() invocations, especially when it comes to pulseaudio. Approved by: kib deischen (threads) MFC after: 3 days
* Fix bug, when RADIUS client gave up after single sendto() error, do notmav2009-09-291-9/+4
| | | | | | trying backup servers. PR: kern/103764, misc/139214
* Add two new fcntls to enable/disable read-ahead:delphij2009-09-281-1/+17
| | | | | | | | | | | | | | | | | | | | - F_READAHEAD: specify the amount for sequential access. The amount is specified in bytes and is rounded up to nearest block size. - F_RDAHEAD: Darwin compatible version that use 128KB as the sequential access size. A third argument of zero disables the read-ahead behavior. Please note that the read-ahead amount is also constrainted by sysctl variable, vfs.read_max, which may need to be raised in order to better utilize this feature. Thanks Igor Sysoev for proposing the feature and submitting the original version, and kib@ for his valuable comments. Submitted by: Igor Sysoev <is rambler-co ru> Reviewed by: kib@ MFC after: 1 month
OpenPOWER on IntegriCloud