summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* getaddrinfo(3) should accept numeric when ai_socktype is notume2009-03-241-1/+11
| | | | | | | | specified in hint or hints is NULL. PR: bin/51827 Submitted by: Mark Andrews <marka__at__isc.org> MFC after: 1 week
* Save errno before calling _close(), which may clear it.delphij2009-03-231-2/+4
| | | | Obtained from: OpenBSD
* use more proper format string.delphij2009-03-232-11/+11
| | | | Obtained from: NetBSD via OpenBSD
* 7.2 will be the first release where strndup() appears.kib2009-03-221-1/+1
| | | | | Submitted by: Florian Smeets <flo kasimir com> MFC after: 3 days
* o Spell.maxim2009-03-211-4/+4
|
* - Add Ukranian cataloggabor2009-03-202-0/+250
| | | | Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
* - Fix typogabor2009-03-181-1/+1
| | | | | | PR: kern/132773 Reported by: Alan R. S. Bueno <alan.bsd@gmail.com> Submitted by: Murilo Opsfelder <mopsfelder@gmail.com>
* - Add Brazilian Portuguese catalog [1]gabor2009-03-163-41/+273
| | | | | | | | - Fixes for German catalog [2] PR: kern/132694 [1], conf/80504 [2] Submitted by: Murilo Opsfelder <mopsfelder@gmail.com> [1], brueffer [2]
* - Create the buildworld object directories with mtree instead of variousgabor2009-03-151-6/+0
| | | | | | mkdir calls - Remove the ugly workaroung from libc NLS, which was to create some of these directories
* - Fix object directory creation when running threaded buildworldgabor2009-03-131-1/+1
|
* - Reenable Native Language Support in libc. This feature was disabled duegabor2009-03-1315-0/+3270
| | | | | | | | | | | | | | | | | | | | | | | | | to possible breakages in the catalog handling code. Since then, that code has been replaced by the secure code from NetBSD but NLS in libc remained turned off. Tests have shown that the feature is stable and working so we can now turn it on again. - Add several new catalog files: - ca_ES.ISO8859-1 - de_DE.ISO8859-1 - el_GR.ISO8859-7 (by manolis@ and keramida@) - es_ES.ISO8859-1 (kern/123179, by carvay@) - fi_FI.ISO8859-1 - fr_FR.ISO8859-1 (kern/78756, by thierry@) - hu_HU.ISO8859-2 (by gabor@) - it_IT.ISO8859-15 - nl_NL.ISO8859-1 (corrections by rene@) - no_NO.ISO8859-1 - mn_MN.UTF-8 (by ganbold@) - sk_SK.ISO8859-2 - sv_SE.ISO8859-1 (The catalogs without explicit source has been obtained from NetBSD.) Approved by: attilio
* Reflect license change from NetBSD.delphij2009-03-106-48/+6
| | | | Obtained from: NetBSD
* Hopefully, improve the grammar and wording in the changes to shmctl(2)kib2009-03-051-4/+5
| | | | | | | manpage and UPDATING entry 20090302. UPDATING changes suggested by bf2006a yahoo com. man page corrections by bde.
* Our realloc(3) and reallocf(3) can handle NULL, which turns it into adelphij2009-03-054-21/+8
| | | | | | malloc(3) call, so don't test if a pointer is NULL. Obtained from: OpenBSD (in spirit)
* Add wcpcpy(3) and wcpncpy(3).das2009-03-045-3/+108
|
* Add dprintf() and vdprintf() from POSIX.1-2008. Like getline(),das2009-03-046-32/+198
| | | | | | dprintf() is a simple wrapper around another function, so we may as well implement it. But also like getline(), we can't prototype it by default right now because it would break too many ports.
* Fix a file descriptor leak in fts_child().das2009-03-041-1/+3
| | | | Obtained from: NetBSD
* Considerably improve the wording of this man page.bms2009-03-041-20/+77
|
* Update copyright.bms2009-03-041-16/+13
|
* Explicitly specify bit width for on-disk data structure.delphij2009-03-041-17/+17
| | | | Obtained from: OpenBSD
* Sync license changes.delphij2009-03-042-20/+3
| | | | Obtained from: NetBSD
* Style changes (including additional casts to shut up warnings). Thisdelphij2009-03-0415-36/+35
| | | | commit does not affect MD5 of object file.
* Rename variable 'index' to 'idx' to avoid name collision with index(3),delphij2009-03-037-101/+87
| | | | | | | this commit does not affect any object code. Obtained from: OpenBSD Verified with: md5(1)
* Diff reduction against OpenBSD: ANSI'fy prototypes.delphij2009-03-0228-485/+196
| | | | | | | | (This is part of a larger changeset which is intended to reduce diff only, thus some prototypes were left intact since they will be changed in the future). Verified with: md5(1)
* Correct types of variables used to track amount of allocated SysV sharedkib2009-03-021-0/+9
| | | | | | | | | | | | | | memory from int to size_t. Implement a workaround for current ABI not allowing to properly save size for and report more then 2Gb sized segment of shared memory. This makes it possible to use > 2 Gb shared memory segments on 64bit architectures. Please note the new BUGS section in shmctl(2) and UPDATING note for limitations of this temporal solution. Reviewed by: csjp Tested by: Nikolay Dzham <i levsha org ua> MFC after: 2 weeks
* Rewrite asprintf() as a wrapper around vasprintf(), thus reducing thedas2009-03-021-43/+22
| | | | | number of functions that have an incestuous relationship with the arcane innards of stdio.
* The argument corresponding to %zn is supposed to be an ssize_t *, notdas2009-03-022-6/+6
| | | | a size_t *, although the distinction is moot in practice.
* Use C99-style initializers. No functional change.das2009-03-011-4/+9
| | | | Reviewed by: md5(1)
* Add a missing .El.delphij2009-03-011-0/+1
|
* "-isoC-99" should be spelled without 'c'.delphij2009-03-011-1/+1
|
* Add missing POSIX 1003.1-2008 open(2) flag; O_TTY_INIT.ed2009-02-281-1/+15
| | | | | | | On FreeBSD, this is the default behaviour. According to the spec, we may give this flag a value of zero, but I'd rather not do this. If we define it to a non-zero value, we can always change default behaviour without changing the ABI. This is very unlikely to happen, though.
* Replace a dozen lines of code with a call to strnlen() / wcsnlen().das2009-02-282-33/+2
|
* Add restrict qualifiers.das2009-02-281-1/+1
| | | | I missed this file in my previous commit.
* - Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(),das2009-02-2818-26/+689
| | | | | | | | | | | | wcscasecmp(), and wcsncasecmp(). - Make some previously non-standard extensions visible if POSIX_VISIBLE >= 200809. - Use restrict qualifiers in stpcpy(). - Declare off_t and size_t in stdio.h. - Bump __FreeBSD_version in case the new symbols (particularly getline()) cause issues with ports. Reviewed by: standards@
* Add restrict qualifiers to the parameters to strlcpy() and strlcat().das2009-02-283-4/+4
| | | | | The annotation mainly just serves as a hint that they're not intended for use with overlapping strings.
* Make sure %zd treats negative arguments properly on 32-bit platforms.das2009-02-283-5/+8
| | | | | | | Fix harmless but related bugs in %_$zd and %_$tu. PR: 131880 MFC after: 1 week
* These warnings are only relevant on NetBSD it seems. They don't seemimp2009-02-192-6/+0
| | | | to be relevant to FreeBSD at all.
* These symbols don't belong here. Remove them. Since mips hasn't hadimp2009-02-191-4/+0
| | | | | | a release, I think there's no impact here... Reviewed by: cognet@
* Properly invalidate highest pts number when calling setttyent().ed2009-02-121-5/+4
| | | | | | | | | When calling setttyent() after calling endttyent(), pts_valid will never be set to 1, because the readdir()-loop will likely never vind a pts that has a higher number than before. Simplify the code by removing pts_valid. We'll just set maxpts to -1 when we don't have a valid count yet.
* Make ttyslot(3) work with pts(4) devices.ed2009-02-121-6/+5
| | | | | | | It seems ttyslot() calls rindex(), to strip the device name to the last slash, but this is obviously invalid. /dev/pts/0 should be stripped until pts/0. Because /etc/ttys only supports TTY names in /dev/, just strip this piece of the pathname.
* Add two new routines: fdevname() and fdevname_r().ed2009-02-116-20/+88
| | | | | | | | | | | | | | A more elegant way of obtaining a name of a character device by its file descriptor on FreeBSD, is to use the FIODGNAME ioctl. Because a valid file descriptor implies a file descriptor is visible in /dev, it will always resolve a valid device name. I'm adding a more friendly wrapper for this ioctl, called fdevname(). It is a lot easier to use than devname() and also has better error handling. When a device name cannot be resolved, it will just return NULL instead of a generated device name that makes no sense. Discussed with: kib
* Shutup warning for DNAME RR.ume2009-02-082-2/+3
| | | | | | PR: bin/127591 Submitted by: "Eugene M. Kim" <20080111.freebsd.org__at__ab.ote.we.lv> MFC after: 1 week
* Fix language on atol(3) manpage. Add a COMPATIBILITY sectionkeramida2009-02-081-3/+32
| | | | | | | | | | stating that in FreeBSD the atol() and atoll() functions affect errno in the same way as strtol() and stroll(). PR: docs/126487 Submitted by: edwin Reviewed by: trhodes, gabor MFC after: 1 week
* Make sure the comparison is done with an unsigned char.imp2009-02-071-1/+1
|
* Standardize the various prison_foo_ip[46] functions and prison_if tojamie2009-02-051-2/+2
| | | | | | | | | | | | | | | return zero on success and an error code otherwise. The possible errors are EADDRNOTAVAIL if an address being checked for doesn't match the prison, and EAFNOSUPPORT if the prison doesn't have any addresses in that address family. For most callers of these functions, use the returned error code instead of e.g. a hard-coded EADDRNOTAVAIL or EINVAL. Always include a jailed() check in these functions, where a non-jailed cred always returns success (and makes no changes). Remove the explicit jailed() checks that preceded many of the function calls. Approved by: bz (mentor)
* Fix the functions to match prototypes. The K&R definitions differimp2009-02-033-3/+3
| | | | from the ANSI-C prototype due to the 'int promotion' rule.
* - ANSIfy function definitionsdanger2009-02-0333-110/+41
| | | | | | - use nul when we are looking for a terminating character where appropriate Approved by: imp
* Provide a type for the argument.rdivacky2009-02-021-1/+1
| | | | Approved by: kib (mentor)
* - Remove superfluous commentgabor2009-01-301-2/+0
| | | | | PR: docs/129400 Submitted by: Gavin Atkinson <gavin@freebsd.org>
* Update the description of KERN_PROC.trhodes2009-01-281-5/+3
| | | | | PR: 100242 Reviewed by: jhb
OpenPOWER on IntegriCloud