summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* To avoid missing a chance to cancel thread, call _pthread_testcancel at thedavidxu2014-03-131-0/+1
| | | | | | | beginning of _sem_timedwait. Submitted by: Eric van Gyzen < eric at vangyzen dot net > MFC after: 3 days
* Make ether_line really report an error when all input is invalid.jmmv2014-03-121-5/+7
| | | | | | | | | | | | The previous code failed to return an error condition when the whole input was invalid due to improper handling of the sscanf return value. Actually, this failure was properly being caught by a test in tools/regression/lib/libc/net/test-ether.t but was not noticed because these tests are never run. (On my way to fixing that ;-) The fix applied here resembles the implementation of ether_line in NetBSD modulo the setting of an errno value (which is not documented as an expectation in the manpage anyway).
* Export _libc_arm_fpu_present as a private symbol to be used by otherandrew2014-03-111-0/+2
| | | | system libraries, for example libm.
* libc man pages: Remove reference to non-existent FreeBSD Securityeadler2014-03-073-8/+0
| | | | | | Architecture MFC After: 3 days
* fts: Don't abort if an empty pathname is given.jilles2014-03-061-5/+1
| | | | | | | | | | | Make fts_open(3) treat an empty pathname like any other pathname that cannot be lstatted because of [ENOENT]. It is rather confusing if rm -rf file1 "" file2 does not remove file1 and file2. PR: bin/187264 MFC after: 2 weeks
* Let __bt_put() accept the R_SETCURSOR flag, as stated in the dbopen(3) manpage.jlh2014-03-061-1/+2
| | | | | | | While here, update the comment above with all the accepted flags. Reviewed by: silence on hackers@ MFC after: 2 weeks
* Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}marcel2014-03-0446-138/+142
| | | | | | | | | | | if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc.
* Merge from head up to r262611.dim2014-02-281-1/+1
|\
| * syncer(4) is a kernel process, not a user processbjk2014-02-271-1/+1
| | | | | | | | | | Noticed by: Geoffrey Thomas <gthomas@mokafive.com> Approved by: hrs (mentor)
* | Merge from head up to r262472.dim2014-02-252-5/+4
|\ \ | |/
| * Consistently pass around context information using a simple pointer. Thistijl2014-02-242-5/+4
| | | | | | | | | | | | | | fixes some dereferencing bugs in Chinese character set conversions. PR: 185964 MFC after: 5 days
* | Merge from head up to r262311.dim2014-02-211-3/+3
|\ \ | |/
| * 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
* | In lib/libc/sparc64/sys/__sparc_utrap_setup.c, avoid an error aboutdim2014-02-201-1/+1
|/ | | | passing a pointer to a const object to sysarch().
* 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
|
OpenPOWER on IntegriCloud