summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use calloc().delphij2012-08-011-2/+1
|
* ieeefp.h is only needed on i386 class hardware.kargl2012-07-301-0/+2
| | | | | Submitted by: bde Approved by: das (pre-approved)
* Whitespace.kargl2012-07-303-4/+3
| | | | | Submitted by: bde Approved by: das (pre-approved)
* Remove trailing whitespace.joel2012-07-301-1/+1
|
* Add more locale-specific functions to the relevant man pages and Makefile:issyl02012-07-306-14/+86
| | | | | | | | | | | | - lib/libc/locale/islower.3 - lib/libc/locale/ispunct.3 - lib/libc/locale/nl_langinfo.3 - lib/libc/locale/isgraph.3 - lib/libc/locale/isspace.3 Reviewed by: bz Approved by: theraven MFC after: 5 days
* Backport NFSv4 ACL fix from libarchive master branch.mm2012-07-303-1/+5
| | | | | | | Source: https://github.com/libarchive/libarchive/commit/f67370d5 Obtained from: libarchive (master branch)
* Catch up config_freebsd.h with libarchive 3.0.4mm2012-07-291-2/+0
|
* Update libarchive to 3.0.4mm2012-07-282-0/+9
|
* Correct BUGS description of static buffer useemaste2012-07-271-3/+3
| | | | | | | Since r142667 strerror has unconditionally returned a pointer to a static buffer. MFC after: 1 week
* Document F_DUP2FD_CLOEXEC.kib2012-07-271-4/+14
| | | | MFC after: 1 week
* Drop non-portable libedit's el_data_set() and el_data_get() forpfg2012-07-263-32/+1
| | | | | | | | | | | | | | | private data. We can set/get private data with the documented el_get() and el_set() so there's no need for our local extensions, which never received much use anyway. While here, also re-arrange the call to term_init_arrow. This was left over from r89735 but is not required anymore. This changes reduce differences against NetBSD's libedit. MFC after: 2 months
* Start manpage with Dd macro and also remove a trailing whitespacejoel2012-07-261-2/+2
| | | | while here.
* Update the 'C1x draft' reference to '.St -isoC-2011' mdoc macro.pluknet2012-07-262-2/+4
| | | | | Reviewed by: theraven MFC after: 1 week
* Replace the macro name NUM with INTERVALS. This change provideskargl2012-07-262-15/+16
| | | | | | | | | | | compatibility with the INTERVALS macro used in the soon-to-be-commmitted expm1l() and someday-to-be-committed log*l() functions. Add a comment into ld128/s_expl.c noting at gcc issue that was deleted when rewriting ld80/e_expl.c as ld128/s_expl.c. Requested by: bde Approved by: das (mentor)
* * ld80/expl.c:kargl2012-07-262-8/+3
| | | | | | | | | | | | | . Remove a few #ifdefs that should have been removed in the initial commit. . Sort fpmath.h to its rightful place. * ld128/s_expl.c: . Replace EXPMASK with its actual value. . Sort fpmath.h to its rightful place. Requested by: bde Approved by: das (mentor)
* Replace code that toggles between 53 and 64 bits on i386kargl2012-07-261-19/+4
| | | | | | | | class hardware with the ENTERI and RETURNI macros, which are now available in math_private.h. Suggested by: bde Approved by: das (mentor)
* Add a new man page containing details of new locale-specific functions forissyl02012-07-252-1/+182
| | | | | | | | wctype.h, iswalnum_l(3). Add it and its functions to the Makefile. Reviewed by: gavin, jilles Approved by: theraven MFC after: 5 days
* Don't ever build files depending on the directory where they are placed in.ache2012-07-241-4/+2
| | | | | | | It is obvious that its modification time will change with each such file builded. This bug cause whole libelf to rebuild itself each second make run (and relink that files on each first make run) in the loop.
* Hook ld80/s_expl.c or ld128/s_expl.c into the building of libm.kargl2012-07-231-1/+1
| | | | | PR: standards/152415 Approved by: das (mentor)
* Compute the exponential of x for Intel 80-bit format and IEEE 128-bitkargl2012-07-237-6/+620
| | | | | | | | | | | | | format. These implementations are based on PTP Tang, "Table-driven implementation of the exponential function in IEEE floating-point arithmetic," ACM Trans. Math. Soft., 15, 144-157 (1989). PR: standards/152415 Submitted by: kargl Reviewed by: bde, das Approved by: das (mentor)
* (Incomplete) fixes for symbols visibility issues and style in fcntl.h.kib2012-07-211-1/+1
| | | | | | | | | | | | | | | | | Append '__' prefix to the tag of struct oflock, and put it under BSD namespace. Structure is needed both by libc and kernel, thus cannot be hidden under #ifdef _KERNEL. Move a set of non-standard F_* and O_* constants into BSD namespace. SUSv4 explicitely allows implemenation to pollute F_* and O_* names after fcntl.h is included, but it costs us nothing to adhere to the specification if exact POSIX compliance level is requested by user code. Change some spaces after #define to tabs. Noted by and discussed with: bde MFC after: 1 week
* Don't forget to initialize return value.davidxu2012-07-201-1/+1
|
* Simplify code by replacing _thr_ref_add() with _thr_find_thread().davidxu2012-07-201-5/+1
|
* Eliminate duplicated code.davidxu2012-07-201-19/+10
|
* Don't assign same value.davidxu2012-07-202-6/+4
|
* Eliminate duplicated code.davidxu2012-07-201-29/+14
|
* Eliminate duplicated code.davidxu2012-07-201-30/+16
|
* Don't forget to release a thread reference count,davidxu2012-07-201-4/+2
| | | | | | | replace _thr_ref_add() with _thr_find_thread(), so reference count is no longer needed. MFC after: 3 days
* Merge more cosmetical changes from NetBSD's libedit.pfg2012-07-192-5/+5
| | | | | | | | | | | | makelist: change tr '[a-z]' '[A-Z]' to tr '[:lower:]' '[:upper:]' so that POSIX systems work proerly regardsless of environment variable settings. tokenizer.c: pass lint on _LP64 Obtained from: NetBSD MFC after: 2 weeks
* Document F_DUPFD_CLOEXEC. Also provide some wording changes forkib2012-07-191-4/+15
| | | | | | F_DUPFD to make it less confusing, at least for me. MFC after: 1 week
* Return zero from get_addrselectpolicy() when no source-address-selectionemax2012-07-181-0/+2
| | | | | | policy is installed. MFC after: 1 week
* libc: Remove some unused strings from getaddrinfo().jilles2012-07-151-13/+12
|
* Jump to the failed label instead of doing cleanup ourselves.brueffer2012-07-151-2/+1
| | | | | Obtained from: DragonFly BSD MFC after: 2 weeks
* Merge OpenSSL 1.0.1c.jkim2012-07-121-1/+1
| | | | Approved by: benl (maintainer)
* Re-merge a couple of changes from NetBSD's libedit.pfg2012-07-115-20/+51
| | | | | | | | | | | | bin/sh has been taught about el_gets setting the count to -1 on error, so now we can partially revert r238173 to reduce differences with NetBSD's implementation. Unfortunately NetBSD's libedit handling of EINTR (Revision 1.44 in read.c + SIGWINCH fixes) still causes trouble in bin/sh and other utilities and has to be avoided. MFC after: 1 month
* Move the ffclock symbols from FBSD_1.2 to FBSD_1.3 where they should have beenlstewart2012-07-101-3/+3
| | | | | | | | put initially. They were added to head during development of 10-CURRENT, not 9-CURRENT. Submitted by: glebius Reviewed by: kib
* Executing CPUID with EAX set to 1 to actually get feature flags.davidxu2012-07-101-1/+1
| | | | PR: 169730
* Restore the __collate_load_error global that was accidentally removed in thetheraven2012-07-062-5/+6
| | | | | | xlocale refactoring. MFC after: 1 week
* Merge a small update from NetBSD.pfg2012-07-062-20/+17
| | | | | | | Feb 15 21:55:23 2009 - chared.c chared.h pass lint on _LP64. MFC after: 1 week
* Fix issue resizing bin/shpfg2012-07-065-66/+24
| | | | | | | | | | | | | | | | | | | | | This partially reverts some changes from r237448 that are causing breakage when resizing under bin/sh . Reverted changes from NetBSD are: Mar 10 20:46:15 2009 - editline.3 read.c make el_gets set the count to -1 on error to distinguish between EOF and error. Feb 19 15:20:22 2009 - read.c sig.c sig.h reset and redraw on sigcont. From Anon Ymous. Feb 15 21:24:13 2009 don't restart on EINTR, instead return NULL immediately. From Anon Ymous PR: 169603 Reported by: Peter Jeremy, David Shao MFC after: 3 days
* Document the behavior (from 4.4-lite) that tokens returned by telldir() arebrooks2012-07-051-2/+15
| | | | | | | single use. Sponsored by: DARPA, AFRL MFC after: 3 days
* Prefer sysctl to open/read/close for obtaining random data.pjd2012-07-041-5/+35
| | | | | | | | | This method is more sandbox-friendly and also should be faster as only one syscall is needed instead of three. In case of an error fall back to the old method. Reviewed by: simon, gleb MFC after: 2 weeks
* The register_printf_render_std() function expects regular string.pjd2012-07-041-1/+1
| | | | | | Change argument type from 'const unsigned char *' to 'const char *'. MFC after: 2 weeks
* ctype_l(3): Note that not all these functions are specified by POSIX.1-2008.jilles2012-07-011-1/+14
| | | | | | | The function isascii_l() is not in POSIX even though isascii() is, probably because isascii() is marked as obsolete. The other functions, like digittoint_l() and ishexnumber_l(), are FreeBSD-specific just like their non-_l versions.
* Optimize the handling of SC_NPROCESSORS_CONF, by using auxv AT_NCPUkib2012-06-271-0/+4
| | | | | | value if present. MFC after: 1 week
* Remove end of line whitespace.joel2012-06-261-1/+1
|
* Add more locale-specific functions to the relevant man pages andissyl02012-06-255-3/+46
| | | | | | | | | | Makefiles: - libc/stdtime/strftime.3 - libc/stdtime/strptime.3 - libc/stdlib/strfmon.3 Reviewed by: theraven Approved by: gabor (mentor)
* Add the sys directory we create to the list of items to clean.andrew2012-06-241-0/+1
|
* Create a symlink to sys/elf32.h, sys/elf64.h, and sys/elf_common.h.andrew2012-06-241-1/+15
| | | | | | | | | | | | | | | | When building libelf in the bootstrap stage this would include the tree versions of, for example, sys/_types.h. This would work as long as the tree's version of this file was close enough to the system's version of the file. If, however, there was a change in the tree such that the location of a typedef was moved this would cause problems. In this case the version of sys/_types.h in the tree no longer defines __wchar_t and expects it to to be defined in machine/_types.h, however we pick up machine/_types.h from the system and find it is not defined there. The solution is to restrict the parts of sys er include from the tree to those that are needed. This fixes the recent Tinderbox failure. Pointy Hat to: andrew
* Fix mandoc "Oc breaks Op" warning.joel2012-06-241-1/+1
|
OpenPOWER on IntegriCloud