summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* - Update the Spanish NLS cataloggabor2009-12-031-5/+51
| | | | | | | | | | | Reviewed by: carvay, the.infamous.paul@gmail.com, Joan Picanyol i Puig <lists-freebsd-es@biaix.org>, Ing . Marcos Luis Ortiz Valmaseda <mlortiz@uci.cu>, eskanete@gmail.com, Jose M Rodriguez <josemi@freebsd.jazztel.es>, Guillermo Hernandez <guillermo@QuerySoft.es>, dani.doni@gmail.com
* The fd_mask type is an unsigned long, not an int, so treat the mask as ajhb2009-12-031-2/+2
| | | | | | | | | | long instead of an int when examining the results of select() to look for RPC requests. Previously this routine would ignore RPC requests to sockets whose file descriptor mod 64 was greater than 31 on a 64-bit platform. PR: amd64/141130 Submitted by: liujb of array networks MFC after: 3 days
* Fix the dprintf() prototype.brueffer2009-12-021-2/+2
| | | | | | PR: 141087 Submitted by: Jeremy Huddleston <jeremyhu@apple.com> MFC after: 3 days
* Add an .Nm for strncat.brueffer2009-12-011-2/+3
| | | | | | PR: 141037 Submitted by: Jeremy Huddleston <jeremyhu@apple.com> MFC after: 3 days
* Temporarily revert the previous change because the linker has beengreen2009-12-011-36/+28
| | | | modified so that it will abort when the environment is bad.
* Describe what setpgid(2) does when pgid=0. The text has beenkeramida2009-12-011-0/+5
| | | | | | | | | | copied from NetBSD's manpage, and it also matches the behavior described by the Open Group's online copy of setpgid.2 at http://www.opengroup.org/onlinepubs/009695399/functions/setpgid.html Obtained from: NetBSD Submitted by: Petros Barbayiannis <petrosbarbayiannis@yahoo.gr> MFC after: 1 week
* Do not gratuitously fail *env(3) operations due to corrupt ('='-less)green2009-12-011-28/+36
| | | | | | | | | | | | | **environ entries. This puts non-getenv(3) operations in line with getenv(3) in that bad environ entries do not cause all operations to fail. There is still some inconsistency in that getenv(3) in the absence of any environment-modifying operation does not emit corrupt environ entry warnings. I also fixed another inconsistency in getenv(3) where updating the global environ pointer would not be reflected in the return values. It would have taken an intermediary setenv(3)/putenv(3)/unsetenv(3) in order to see the change.
* - correct xref sectionsdanger2009-11-282-4/+4
| | | | | | PR: docs/140940 Submitted by: Bruce Cran <bruce@cran.org.uk> MFC after: 1 week
* Properly use the envp argument in execvPe().ed2009-11-271-2/+2
| | | | | | | | | | | | | | | execvPe() is called by _execvpe(), which we added to implement posix_spawnp(). We just took execvP() and added the envp argument. Unfortunately we forgot to change the implementation to use envp over environ. This fixes the following piece of code: | char * const arg[2] = { "env", NULL }; | char * const env[2] = { "FOO=BAR", NULL }; | posix_spawnp(NULL, "/usr/bin/env", NULL, NULL, arg, env); MFC after: 2 weeks
* Reset path name back to original correctly in fts_build() whenjh2009-11-261-5/+2
| | | | | | | | | | | FTS_NOCHDIR option is used. fts_build() could strip a trailing slash from path name in post-order visit if a path pointing to an empty directory was given for fts_open(). PR: bin/133907, kern/134513 Reviewed by: das Approved by: trasz (mentor) MFC after: 1 month
* Clarify that the value of the fts_info field is different in post-order.jh2009-11-261-4/+3
| | | | | | Discussed with: das Approved by: trasz (mentor) MFC after: 1 week
* Implement sighold, sigignore, sigpause, sigrelse, sigset functionskib2009-11-264-8/+250
| | | | | | | | | | from SUSv4 XSI. Note that the functions are obsoleted, and only provided to ease porting from System V-like systems. Since sigpause already exists in compat with different interface, XSI sigpause is named xsi_sigpause. Reviewed by: davidxu MFC after: 3 weeks
* Style: use structure assignment rather than memcpy() to copy awollman2009-11-251-1/+1
| | | | structure.
* In clnt_raw_create(), avoid minor race condition initializing thewollman2009-11-251-4/+7
| | | | | | | file-scope variable clntraw_private. Found by: Clang static analyzer MFC after: 7 days
* In svc_raw_reply(), don't leave stat uninitialized if the MSG_ACCEPTEDwollman2009-11-251-3/+2
| | | | | | | && SUCCESS case succeeds. The stack garbage might be zero. Found by: Clang static analyzer MFC after: 7 days
* Eliminate more dead stores.wollman2009-11-257-10/+9
| | | | | Found by: Clang static analyzer MFC after: 7 days
* Make all three if conditions look similar by always initializing nsecwollman2009-11-251-1/+2
| | | | | | | | and moving the default initialization of prec into the else clause. The clang static analyzer erroneously thought that nsec can be used uninitialized here; it was not actually possible, but better to make the code clearer. (Clang can't know that sprintf() won't modify *pi behind the scenes.)
* In __mbsconv(), if prec was zero, nconv could have been usedwollman2009-11-251-1/+1
| | | | | | | | | uninitialized. Initialize it to a safe value so that there's no chance of returning an error if stack garbage happens to be equal to (size_t)-1 or (size_t)-2. Found by: Clang static analyzer MFC after: 7 days
* Eliminate dead store.wollman2009-11-251-1/+1
| | | | | Found by: Clang static analyzer MFC after: 7 days
* Revert the previous change to pthread_once() stub in libc. It is actuallyjhb2009-11-203-7/+3
| | | | | | | | a feature that libstdc++ depends on to simulate the behavior of libc's internal '__isthreaded' variable. One benefit of this is that _libc_once() is now private to _once_stub.c. Requested by: kan
* Replace gmt_is_set and the gmt_mutex lock with a pthread_once_t variable andjhb2009-11-201-12/+13
| | | | | | an init routine run on the first invocation via _once(). MFC after: 1 week
* Add an internal _once() method. This works identical to pthread_once(3)jhb2009-11-204-2/+78
| | | | | | | | | | | | | with the additional property that it is safe for routines in libc to use in both single-threaded and multi-threaded processes. Multi-threaded processes use the pthread_once() implementation from the threading library while single-threaded processes use a simplified "stub" version internal to libc. The libc stub-version of pthread_once() now also uses the simplified "stub" version as well instead of being a nop. Reviewed by: deischen, Matthew Fleming @ Isilon Suggested by: alc MFC after: 1 week
* - Update Hungarian libc cataloggabor2009-11-171-0/+46
|
* Catch up with r130332 which changed the default timezone from GMT to UTC.obrien2009-11-171-2/+2
| | | | | Otherwise the tzload() (when called by gmtload()) fails to locate the UTC file and loads the posixrules.
* Sync with C.msg r199083.jkim2009-11-162-2/+94
|
* Fix grammar.brueffer2009-11-161-1/+1
| | | | | | PR: 140459 Submitted by: Jeremy Huddleston <Jeremyhu@apple.com> MFC after: 1 week
* Fix a memory leak in acl_from_text() in case the conversion succeeded.brueffer2009-11-161-0/+1
| | | | | Submitted by: Jim Wilcoxson <prirun@gmail.com> MFC after: 1 week
* Change the utrace log entry for malloc_init from (0, 0, 0) to (-1, 0, 0)cperciva2009-11-141-1/+1
| | | | | | in order to distinguish it from free(NULL), which is logged as (0, 0, 0). Reviewed by: jhb
* Remove a note about vfork(4) going to be eliminated, it's here to stay.brueffer2009-11-131-8/+0
| | | | | Submitted by: kib MFC after: 1 week
* Improved the manpage description. The committed wordingbrueffer2009-11-131-2/+2
| | | | | | | | | was provided by jhb. PR: 140528 Submitted by: Chris Petrik <chris@officialunix.com> Discussed with: remko, jhb and the submitter MFC after: 1 week
* Fix the grammar in the isprint(3) description.roam2009-11-131-1/+1
| | | | | PR: 140456 Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
* Fix the grammar in the isgraph(3) description, almost as per the PR.roam2009-11-131-1/+1
| | | | | | PR: 140455 Submitted by: Jeremy Huddleston <jeremyhu@apple.com> MFC after: 2 weeks
* Add missing IEEE1394 support dropped during merge from NetBSD.ume2009-11-121-0/+11
|
* Synchronize with C.msg revision 199083 and improve some existing messages.rene2009-11-111-30/+57
| | | | | Reviewed by: remko Approved by: remko
* ANSIfy.ume2009-11-111-25/+8
| | | | MFC after: 1 week
* Fix the grammar as in the PR, and then some.roam2009-11-111-2/+2
| | | | | | PR: 140454 Submitted by: Jeremy Huddleston <jeremyhu@apple.com> MFC after: 2 weeks
* Add Japanese catalogue entries for newer errnos: EBADMSG, EMULTIHOP,ume2009-11-102-0/+20
| | | | ENOLINK, EPROTO, ENOTCAPABLE.
* Add gai_strerror() catalog for ja_JP.UTF-8 and ja_JP.eucJP.ume2009-11-092-0/+72
|
* Add NLS catalogs support to gai_strerror(3).ume2009-11-092-0/+94
| | | | Controlled by NLS define.
* Fix comment.ume2009-11-092-2/+2
| | | | | Pointed out by: nyan MFC after: 1 week
* Add ja_JP.eucJP catalog.ume2009-11-092-0/+250
| | | | | Reviewed by: hrs, nork, takawata MFC after: 1 week
* Add ja_JP.UTF-8 catalog.ume2009-11-092-0/+250
| | | | | Reviewed by: hrs, nork, takawata MFC after: 1 week
* Fix a copy+paste error by checking the correct variable against MM_NULLACT.brueffer2009-11-081-1/+1
| | | | | | PR: 140386 Submitted by: soulcatcher <soulcatcher13@gmail.com MFC after: 1 week
* - Strip trailing CRsgabor2009-11-081-259/+259
| | | | Requested by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
* - Update Ukranian cataloggabor2009-11-081-0/+10
| | | | Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
* Add MAP_ANONYMOUS.ed2009-11-061-1/+5
| | | | | | | | Many operating systems also provide MAP_ANONYMOUS. It's not hard to support this ourselves, we'd better add it to make it more likely for applications to work out of the box. Reviewed by: alc (mman.h)
* Use our canonical .Dd format.brueffer2009-11-0210-10/+10
| | | | Submitted by: Ulrich Spoerlein
* Attempt to reduce accidental foot-shooting by pointing out thatcperciva2009-11-021-0/+4
| | | | | | | | accept(2)ed sockets do not necessarily inherit O_NONBLOCK from listening sockets on non-FreeBSD platforms. Feet shot: cperciva MFC after: 1 month
* Move pselect(3) man page to section 2.kib2009-10-283-5/+6
| | | | | Noted by: jhb MFC after: 1 month
* Commit libc files missed in r198508kib2009-10-273-8/+1
|
OpenPOWER on IntegriCloud