summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Match the correct variable to the variable description.brueffer2014-02-211-3/+3
| | | | | | PR: 121173 Submitted by: Thomas Mueller <tmueller at sysgo.com> MFC after: 1 week
* document _JAIL as a possible option to set a cpuset for a jail..jmg2014-02-151-1/+2
| | | | MFC after: 3 days
* Set errno on inet_ntop(3) failure.kevlo2014-02-071-2/+4
| | | | Reviewed by: glebius
* fts: Fix double-free with conflicting concurrent modifications.jilles2014-02-071-4/+8
| | | | | | | | | | | If rare conditions such as concurrent conflicting manipulation of the filesystem occur, fts_read() frees the current FTSENT without adjusting the pointers in the FTS accordingly. A later fts_close() then frees the same FTSENT again. Reported by: pho Tested by: pho MFC after: 1 week
* libc/net: fix a portability issueeadler2014-02-051-1/+1
| | | | | | | * POSIX does not require socklen_t to be unsigned Submitted by: bde MFC After: 1 week (with r261454)
* libc/net: Fix some issues in inet6_opt_init() (from RFC 3542):eadler2014-02-041-4/+1
| | | | | | | | | | | | | | * The RFC says (in section 10.1) that only when extbuf is not NULL, extlen shall be checked, so don't perform this check when NULL is passed. * socklen_t is unsigned, so checking extlen for less than zero is not needed. Submitted by: swildner@dragonflybsd.org Reviewed by: Mark Martinec <Mark.Martinec+freebsd@ijs.si> Reviewed by: hrs Obtained by: DragonFlyBSD
* Fix a typo.brueffer2014-02-031-1/+1
| | | | MFC after: 1 week
* The posix_madvise(3) and posix_fadvise(2) should return error onkib2014-01-304-8/+20
| | | | | | | | | failure, same as posix_fallocate(2). Noted by: Bob Bishop <rb@gid.co.uk> Discussed with: bde Sponsored by: The FreeBSD Foundation MFC after: 1 week
* mdoc: fix several uses of the Fx macro to point to actual releases.uqs2014-01-285-5/+5
| | | | Found by: make manlint
* Add MLINK for fdclosedir.3 to directory.3 and sort fdopendir(3) entry.bdrewery2014-01-241-1/+2
| | | | | Reported by: bde Approved by: bapt (mentor)
* The posix_fallocate(2) syscall should return error number on error,kib2014-01-231-2/+2
| | | | | | | | | | without modifying errno. Reported and tested by: Gennady Proskurin <gpr@mail.ru> Reviewed by: mdf PR: standards/186028 Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Update EINVAL description.pluknet2014-01-231-2/+2
| | | | | | This matches current POSIX standards and actual FreeBSD behavior. MFC after: 1 week
* Update jemalloc to version 3.5.0.jasone2014-01-233-13/+31
|
* Add a new flag to /etc/ttys: onifconsole. This is equivalent to "on" if thenwhitehorn2014-01-201-0/+35
| | | | | | | | | device is an active kernel console and "off" otherwise. This is designed to allow serial-booting x86 systems to provide a login prompt on the serial line by default without providing one on all systems by default. Comments and suggestions by: grehan, dteske, jilles MFC after: 1 month
* Replace LIBGCC by LIBCOMPILER_RT.ed2014-01-181-3/+3
| | | | | We now use libcompiler_rt on all platforms now. Instead of referring directly to -lgcc and LIBGCC, use -lcompiler_rt and LIBCOMPILER_RT.
* libc/resolv: Use poll() instead of kqueue().jilles2014-01-142-3/+3
| | | | | | | | The resolver in libc creates a kqueue for watching a single file descriptor. This can be done using poll() which should be lighter on the kernel and reduce possible problems with rlimits (file descriptors, kqueues). Reviewed by: jhb
* ANSI-fy prototype.delphij2014-01-141-3/+1
| | | | MFC after: 2 weeks
* fts(3): Remove stray mentions of the obsolete fts_bignum.jilles2014-01-121-9/+1
|
* fts: Stat things relative to the directory fd, if possible.jilles2014-01-121-12/+19
| | | | | | | | | As a result, the kernel needs to process shorter pathnames if fts is not changing directories (if fts follows symlinks (-L option to utilities), fts cannot open "." or FTS_NOCHDIR was specified). Side effect: If pathnames exceed PATH_MAX, [ENAMETOOLONG] is not hit at the stat stage but later (opendir or application fts_accpath) or not at all.
* Add some missing .Nm for newer syscalls in existing man pages.jilles2014-01-113-3/+6
| | | | MFC after: 1 week
* Fix several bugs in sctp_bindx():tuexen2014-01-041-9/+18
| | | | | | | | | | | * Set errno to EAFNOSUPPORT if an address is provided which is neither AF_INET nor AF_INET6. * Don't modify the arguments. * Don't smash the stack when provided with a non-zero port. * Handle the case correctly where the first address provided is an IPv6 address. MFC after: 3 days
* - Fix EBADF description, in following the future POSIX tc and what FreeBSDpluknet2013-12-271-3/+4
| | | | | | | actually implements. - Improve grammar: use more preferred "can", not "could". Submitted by: jilles
* Fix an apparent typo.pluknet2013-12-261-1/+1
| | | | MFC after: 3 days
* Provide the manual page for aio_fsync(2).pluknet2013-12-262-0/+153
| | | | | Reviewed by: davidxu MFC after: 1 week
* The compile time constant limit on number of swap devices was removed in 5.2.pluknet2013-12-251-5/+1
| | | | | | | As such, remove the EINVAL error saying so. Currently the vm.nswapdev sysctl just represents the number of added swap devices. MFC after: 1 week
* shm_open(2): Fixed the history information.ru2013-12-181-3/+3
| | | | | | While here, sort xrefs. Reviewed by: jhb
* getopt_long.3: wording quibbleseadler2013-12-131-2/+2
| | | | | | | - Make wording more clear: "is expect" vs "is expected" [1] - Remove extraneous trailing period.. Reported by: dim [1]
* Replace Sun RPC license with a 3-clause BSD license. This license changehrs2013-12-098-211/+211
| | | | | was approved in 2010 by Wim Coekaerts, Senior Vice President, Linux and Virtualization at Oracle Corporation.
* Do not force to run atexit handlers, which text comes from a dsokib2013-12-061-5/+10
| | | | | | | | | | | | | | | | | owning the handle passed to __cxa_finalize() but which are registered by other dso, when the process is inside exit(3). Running them makes the destruction order wrong, and there is hope that such destructors would not call dlclose(3), since it is pointless at this stage of the process existence. The change effectively disables the r211706 after the exit(3) is called. Reported and tested by: Michael Gmelin <freebsd@grem.de> Analyzed by: dim Sponsored by: The FreeBSD Foundation MFC after: 1 week
* mdoc: remove EOL whitespace.joel2013-12-061-2/+2
|
* Various updates and tweaks to the wait(2) manpage.jhb2013-12-031-132/+174
| | | | | | PR: docs/183904 Submitted by: Michael Galassi <michaelgalassi@gmail.com> Reviewed by: kib, wblock (earlier version)
* chmod(2): Document S_ISVTX following SUSv3/SUSv4.jilles2013-12-011-10/+16
| | | | | | S_ISTXT is non-standard. While here, also update fchmodat() standards entry to POSIX.1-2008.
* waitid(2): Do not tell userland programmers to include <sys/signal.h>.jilles2013-12-011-1/+1
| | | | Userland should get these definitions by including <signal.h>.
* Fix undefined behavior: (1 << 31) is not defined as 1 is an int and thiseadler2013-11-303-5/+5
| | | | | | | | | | | | | shifts into the sign bit. Instead use (1U << 31) which gets the expected result. This fix is not ideal as it assumes a 32 bit int, but does fix the issue for most cases. A similar change was made in OpenBSD. Discussed with: -arch, rdivacky Reviewed by: cperciva
* Make process descriptors standard part of the kernel. rwhod(8) alreadypjd2013-11-301-6/+0
| | | | | | | | requires process descriptors to work and having PROCDESC in GENERIC seems not enough, especially that we hope to have more and more consumers in the base. MFC after: 3 days
* Move the iconv wrapper source from libc_nonshared to libc/iconv so thatpeter2013-11-2514-287/+706
| | | | | | | | it is all in the one place again. Rename libc/iconv/iconv.c to bsd_iconv.c. Compile the wrappers into libc.a so that WITHOUT_DYNAMICROOT works again. Discussed with: kib (and partly stolen from his patch)
* There is no file under SISSL after license replacement in r258581.hrs2013-11-251-335/+0
|
* Replace Sun Industry Standards Source License for Sun RPC code with ahrs2013-11-252-89/+48
| | | | | | 3-clause BSD license as specified by Oracle America, Inc. in 2010. This license change was approved by Wim Coekaerts, Senior Vice President, Linux and Virtualization at Oracle Corporation.
* Replace Sun RPC license in TI-RPC library with a 3-clause BSD license,hrs2013-11-2551-1333/+1305
| | | | with the explicit permission of Sun Microsystems in 2009.
* Add ICONV_{GET,SET}_ILSEQ_INVALID iconvctl. GNU iconv returns EILSEQhrs2013-11-253-1/+33
| | | | | | | | | | | | when there is an invalid character in the output codeset while it is valid in the input. However, POSIX requires iconv() to perform an implementation-defined conversion on the character. So, Citrus iconv converts such a character to a special character which means it is invalid in the output codeset. This is not a problem in most cases but some software like libxml2 depends on GNU's behavior to determine if a character is output as-is or another form such as a character entity (&#NNN;).
* Get rid of the CONCAT macro.andreast2013-11-232-19/+19
|
* Replace the WEAK_ALIAS() alias with the WEAK_REFERENCE() alias. Use it andandreast2013-11-218-30/+20
| | | | | | get rid of the __CONCAT and CNAME macros. Reviewed by: bde, kib
* Introduce a WEAK_REFERENCE() alias and use it. Get rid of the CNAME and theandreast2013-11-219-39/+23
| | | | | | CONCAT macros in SYS.h. Reviewed by: bde, kib
* Attempt to move the POSIX iconv* symbols out of runtime linker space.peter2013-11-176-42/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD systems usually implemented this as a third party module and our implementation hasn't played as nicely with the old way as it could have. To that end: * Rename the iconv* symbols in libc.so.7 to have a __bsd_ prefix. * Provide .symver compatability with existing 10.x+ binaries that referenced the iconv symbols. All existing binaries should work. * Like on Linux/glibc systems, add a libc_nonshared.a to the ldscript at /usr/lib/libc.so. * Move the "iconv*" wrapper symbols to libc_nonshared.a This should solve the runtime ambiguity about which symbols resolve to where. If you compile against the iconv in libc, your runtime dependencies will be unambiguous. Old 9.x libraries and binaries will always resolve against their libiconv.so.3 like they did on 9.x. They won't resolve against libc. Old 10.x binaries will be satisified by the .symver helpers. This should allow ports to selectively compile against the libiconv port if needed and it should behave without ambiguity now. Discussed with: kib
* Add missing include files for the printf_l and scanf_l man pages.eadler2013-11-172-0/+2
| | | | Reported by: swildner@dragonflybsd.org
* Fix typo.trasz2013-11-121-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* Fix description to actually make sense.trasz2013-11-121-4/+3
| | | | Sponsored by: The FreeBSD Foundation
* Mention acl_get_brand_np(3).trasz2013-11-121-1/+6
| | | | | MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Fix typo: site_t -> size_teadler2013-11-101-1/+1
| | | | Obtained From: DragonflyBSD (1ac92c8c857a15dc010924c5f066da404e568640)
* Fix extattr(2) MLINKS.pluknet2013-11-091-2/+2
| | | | MFC after: 1 week
OpenPOWER on IntegriCloud