summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix whitespace inconsistencies in libc in files copyrighted by me.ed2011-06-265-8/+8
|
* Change sparc64 to use the initial exec TLS model, too. This avoids randommarius2011-06-211-1/+1
| | | | assertion failures in _malloc_thread_cleanup().
* Put a quick bandaid on internal citrus locking.kan2011-06-192-1/+3
| | | | | The code is not quite right still, but it programs from deadlocking on themselves if one enables new citrus code by mistake.
* Fix clang warnings.benl2011-06-181-3/+4
| | | | Approved by: philip (mentor)
* Document the latest changes to sctp_opt_info() in the code.tuexen2011-06-181-4/+31
| | | | | This makes sctp_opt_info() compiliant with the latest version of the socket API ID.
* Note how wait(3) is implemented.obrien2011-06-181-0/+13
|
* Sync with OpenBSD, primarily make the code easier to read, and a licensedelphij2011-06-182-68/+54
| | | | | | | change to standard OpenBSD ISC license. Obtained from: OpenBSD MFC after: 2 weeks
* Sync with OpenBSD (zap rcsid).delphij2011-06-181-7/+1
| | | | MFC after: 2 weeks
* The flags argument of mpool_get() is meaningful, document it.delphij2011-06-181-2/+9
| | | | MFC after: 2 weeks
* posix_spawn(3): Document r222511 (trying to close already closed fd).jilles2011-06-171-9/+14
| | | | MFC after: 1 week
* Add SCTP_MAX_BURST support to sctp_opt_info().tuexen2011-06-171-0/+3
| | | | | | This only applies to 9.0 and higher, since the type of the values has changed since we introduced it. So it can't be MFCed.
* Update the list of supported socket options for sctp_opt_info().tuexen2011-06-171-3/+6
| | | | MFC after: 1 month.
* Fix two typos and remove redundant code.tuexen2011-06-161-5/+2
| | | | MFC after: 1 month.
* * Fix the handling of addresses in sctp_sendv().tuexen2011-06-161-42/+83
| | | | | | | * Add support for SCTP_SENDV_NOINFO. * Improve the error handling of sctp_sendv() and sctp_recv(). MFC after: 1 month
* Use size of int to fetch sysctl kern.sched.cpusetsize because it haddavidxu2011-06-161-3/+3
| | | | | | switched from long to int type in kernel. Fixed by: pluknet
* Add support for the newly added SCTP API.tuexen2011-06-151-21/+253
| | | | | | | | | | | | | In particular add support for: * SCTP_SNDINFO, SCTP_PRINFO, SCTP_AUTHINFO, SCTP_DSTADDRV4, and SCTP_DSTADDRV6 cmsgs. * SCTP_NXTINFO and SCTP_RCVINFO cmgs. * SCTP_EVENT, SCTP_RECVRCVINFO, SCTP_RECVNXTINFO and SCTP_DEFAULT_SNDINFO socket option. * Special association ids (SCTP_FUTURE_ASSOC, ...) * sctp_recvv() and sctp_sendv() functions. MFC after: 1 month.
* mdoc: reorder sections consistentlyuqs2011-06-021-3/+3
|
* posix_spawn(): Do not fail when trying to close an fd that is not open.jilles2011-05-301-5/+2
| | | | | | | | | | | As noted in Austin Group issue #370 (an interpretation has been issued), failing posix_spawn() because an fd specified with posix_spawn_file_actions_addclose() is not open is unnecessarily harsh, and there are existing implementations that do not fail posix_spawn() for this reason. Reviewed by: ed MFC after: 10 days
* - Move some internal functions to the private namespacegabor2011-05-271-9/+12
| | | | | Submitted by: kan Approved by: delphij (mentor)
* [mdoc] Fixed .Dt call.ru2011-05-251-1/+1
|
* mq_setattr(2): Add missing const to man page.jilles2011-05-171-2/+2
| | | | | | The declaration in the header file is correct. MFC after: 1 week
* Disconnect sun4v architecture from the three.attilio2011-05-142-7/+0
| | | | | | | | | Some files keep the SUN4V tags as a code reference, for the future, if any rewamped sun4v support wants to be added again. Reviewed by: marius Tested by: sbruno Approved by: re
* Update sticky(7) cross references.pluknet2011-05-132-4/+4
| | | | | PR: docs/124468 X-MFC with: r218998
* * Update copyright notice.tuexen2011-05-051-78/+63
| | | | | | | * Cleanup usage of iov's. * Add support for SCTP_TIMEOUTS socketoption. * Fix a bug in sctp_recvmsg(): return the msg_flags in case of an error. * Fix a bug in the error handling of sctp_peeloff(): return the -1.
* Fix prototype for ffsll(3) and fls(3).delphij2011-05-031-2/+2
| | | | | | PR: docs/156796 Submitted by: Jean-Yves Migeon <jeanyves.migeon free.fr> MFC after: 3 days
* - Clarification on kld_file_stat.sizegjb2011-04-231-4/+4
| | | | | | | | | - While here, remove a few C comments that don't seem to contribute anything additional to the man page. PR: 146047 Submitted by: arundel MFC after: 3 days
* Add the posix_fallocate(2) syscall. The default implementation inmdf2011-04-183-1/+148
| | | | | | | | | | | | | | vop_stdallocate() is filesystem agnostic and will run as slow as a read/write loop in userspace; however, it serves to correctly implement the functionality for filesystems that do not implement a VOP_ALLOCATE. Note that __FreeBSD_version was already bumped today to 900036 for any ports which would like to use this function. Also reserve space in the syscall table for posix_fadvise(2). Reviewed by: -arch (previous version)
* getfh(2): Add xrefs for fhopen(2), open(2), stat(2).jilles2011-04-141-1/+5
| | | | MFC after: 1 week
* Remove vestiges of disklabel(5).pluknet2011-04-141-1/+0
| | | | | Reviewed by: uqs MFC after: 5 days
* Fix a bug in the userland rpc library, where it would use armacklem2011-04-101-1/+2
| | | | | | | | | | | | negative return value from write to update its position in a buffer. The patch, courtesy of Andrey Simonenko, also simplifies a conditional by removing the "i != cnt" clause, since it is always true at this point in the code. The bug caused problems for mountd, when it generated a large reply to an exports RPC request. Submitted by: simon at comsys.ntu-kpi.kiev.ua MFC after: 2 weeks
* Make it possible to use permission sets (full_set, modify_set, read_settrasz2011-04-091-1/+5
| | | | | | | | and write_set) with setfacl(1). PR: kern/154113 Submitted by: Shawn Webb <lattera at gmail dot com> (earlier version) MFC after: 1 month
* Allow strerror(0) and strerror_r(0, ...).jilles2011-04-053-3/+6
| | | | | | | | | | | | | Of course, strerror_r() may still fail with ERANGE. Although the POSIX specification said this could fail with EINVAL and doing this likely indicates invalid use of errno, most other implementations permitted it, various POSIX testsuites require it to work (matching the older sys_errlist array) and apparently some applications depend on it. PR: standards/151316 MFC after: 1 week
* Fix mdoc errors.kib2011-04-011-3/+2
| | | | | Submitted by: ru MFC after: 3 days
* Expose the rctl(2) API in libc.trasz2011-03-301-0/+5
|
* Use FD_CLOEXEC explicitly.pluknet2011-03-301-1/+1
| | | | MFC after: 3 days
* Don't calculate len too early.pjd2011-03-261-1/+1
|
* Follow style(9) in example code and handle opendir(3) error.pjd2011-03-261-4/+7
|
* Document O_CLOEXEC.kib2011-03-251-4/+16
| | | | | Reviewed by: jhb MFC after: 1 week
* Move the code around so that libc behaviour does not depend on a variabletrasz2011-03-221-8/+4
| | | | that was supposed to be kernel-only. There should be no functional changes.
* index(3): Mention that index/rindex are deprecated and not specified byjilles2011-03-201-1/+14
| | | | | | POSIX.1-2008. MFC after: 1 week
* When building libc with the syscall compatibility, don't also generate themarcel2011-03-171-1/+4
| | | | | | | | | syscall assembly files. This results in conflicting dependencies and can cause unexpected results for parallel builds. This is because the .c file and the .S file both generate the same .o file. Submitted by: Simon Gerraty <sjg@juniper.net> Sponsored by: Juniper Networks
* Don't add sigwait.c to MISRCS here when sigwait.c lives under ../sys andmarcel2011-03-171-1/+1
| | | | it's already added to SRCS there.
* From fts.c comment:pjd2011-03-162-0/+2
| | | | | | | | | | | | | | The "FTS_NOSTAT" option can avoid a lot of calls to stat(2) if it knows that a directory could not possibly have subdirectories. This is decided by looking at the link count: a subdirectory would increment its parent's link count by virtue of its own ".." entry. This assumption only holds for UFS-like filesystems that implement links and directories this way, so we must punt for others. It looks like ZFS is a UFS-like file system, as the above also holds for ZFS. Add ZFS to the list of file systems that allow for such optimization. MFC after: 1 month
* rfork(2): Discourage rfork_thread-like approaches.jilles2011-03-151-17/+3
| | | | | | | | | Calling rfork_thread(3) does not interoperate with pthreads and global state is not properly protected. Remove the BUGS section suggesting LinuxThreads entirely. With the current pthread library libthr, all threads are kernel-level entities so there seems little reason to use LinuxThreads.
* Move cap_enter(2) and cap_getmode(2) symbols from FBSD_1.1 to FBSD_1.2.rwatson2011-03-121-2/+2
| | | | | | | Suggested by: kib Obtained from: Capsicum Project Sponsored by: Google MFC after: 3 months
* Now that TLS generally is available on sparc64 since r219534 turn onmarius2011-03-111-1/+1
| | | | | | support for it. Note that while sparc64 also supports the static TLS model and thus tls_model("initial-exec"), using the default model turned out to yield slightly better buildstone performance.
* Correct a typo in the malloc(3) manpage. Malloc options are set in therstone2011-03-071-2/+2
| | | | | | | MALLOC_OPTIONS environment variable, not JEMALLOC_OPTIONS. Reviewed by: jasone Approved by: emaste (mentor)
* Because we call __printf_out() with a on-stack buffer, also callpjd2011-03-061-2/+4
| | | | | | __printf_flush() so we are sure it won't be referenced after we return. MFC after: 2 weeks
* Fix various issues in how %#T is handled:pjd2011-03-061-7/+11
| | | | | | | | | | - If precision is 0, don't print period followed by no digits. - If precision is 0 stop printing units as soon as possible (eg. if we have three years and five days and precision is 0 print only 3y5d). - If precision is not 0, print all units (eg. 3y0d0h0m0s.00). MFC after: 2 weeks
* Move getloginclass(2) and setloginclass(2) to FBSD_1.2, where they should'vetrasz2011-03-061-2/+2
| | | | been added in the first place.
OpenPOWER on IntegriCloud