summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
Commit message (Collapse)AuthorAgeFilesLines
* More accurately document the implementation details of internal storage.ru2006-10-122-21/+23
| | | | PR: docs/82508
* Document what "msgsz" argument really denotes. [1]ru2006-10-121-4/+9
| | | | | | | | Don't say that "msgsz" can be less than 0, it cannot as it's unsigned (POSIX has the same bug). PR: docs/101145 [1] MFC after: 3 days
* Fix TLS on sparc64 for statically and dynamically linked binarieskmacy2006-10-081-1/+10
| | | | | Approved by: rwatson (mentor) Reviewed by: jmg and marcel
* getenv.3: Put "is" on a line with other wordstrhodes2006-10-071-1/+2
| | | | | | | | getobjformat.3: "takes precedence over" is not an envrionment variable. PR: 75545 Submitted by: n-kogane@syd.odn.ne.jp MFC after: 3 days
* Automatically re-stir every 400000 callsache2006-10-041-2/+4
| | | | Obtained from: OpenBSD
* Markup nit.ru2006-09-291-1/+1
|
* o Don't fseek() on closed file.maxim2006-09-181-2/+2
| | | | | Submitted by: pgollucci@p6m7g8.com, Mark Costlow MFC after: 3 weeks
* Markup fixes.ru2006-09-172-2/+2
|
* Fix style(9) in code copied from rtld.marcel2006-09-011-3/+3
|
* Fix the variant I allocation for KSE: Allow a larger TCB and assumemarcel2006-09-011-46/+37
| | | | | that the documented TCB is at the tail of the extended TCB. In other words, the base of the TCB has a negative offset from the TLS.
* o It speaks about struct msqid_ds not struct shmid_ds.maxim2006-08-091-1/+1
| | | | | | PR: docs/101314 Submitted by: Vasil Dimov MFC after: 1 week
* Return length from fwopen() file callback instead of zero.phk2006-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | The symptom is that syslog() fails to log anything but the "ident" string if LOG_PERROR is specified to openlog(3) and the extensible printf is in action. For unclear, likely quaint historical reasons, syslog uses fwopen() on a stack buffer, rather than using the more straightforward and faster snprintf(). Along the way, fflush(3) is called, and since the callback writer function returns zero instead of the length "written", __SERR naturally gets set on the filedescriptor. The extensible printf, in difference from the normal printf refuses to output anything to an __SERR marked filedescriptor, and thus the actual syslog message is supressed. MFC: after 2 weeks
* Remove stale comment about armimp2006-07-261-2/+0
|
* o compat_group() and files_group() are more complicated than I thoughtmaxim2006-07-141-4/+6
| | | | | | | | | | | | | | | | in rev. 1.34. Mainly I missed the fact that the buffer is used for two purposes: 1) storing a group line from the group file; 2) __gr_parse_entry() parses the buffer and tries to put the group members to the remaining part of the buffer and can fail if there is no enough room for them. Re-arrange the buffer size checks to account the latter case. Submitted by: Kirk R Webb MFC after: 2 weeks
* - ANSIfy.delphij2006-06-051-69/+26
| | | | | | - Remove two unnecessary casts. These changes would help gcc4 compile.
* o Record a file offset for a last successfully parsed group file line.maxim2006-06-011-0/+8
| | | | | | | | | | | If the initial buffer size (1KB) for the given group line is not big enough, reset the offset. It helps to do not miss this line when getrg() reallocates the larger buffer and tries to parse the line again. PR: bin/52433, kern/55031, bin/83696, misc/97640, misc/98111 Submitted by: bsw71@mail.ru, Philip M. Gollucci, Justin Erenkrantz Glanced at: nectar MFC after: 1 month
* Fix the output.ru2006-05-271-0/+1
| | | | Noticed by: rodrigc
* Reflect int -> size_t changes in glob.hache2006-05-221-3/+3
|
* Reflect size_t changes in glob.hache2006-05-221-22/+23
| | | | Obtained from: NetBSD (mostly)
* Remove the kludge, as asked in the Makefile:ache2006-05-221-3/+0
| | | | | | # If you bump SHLIB_MAJOR, remove the kluge from gen/gethostname.c. Reviewed by: ume
* Save errno before calling pthread_mutex_lock because pthread_mutex_lockdavidxu2006-05-111-2/+2
| | | | may change errno unexpectly.
* - Extend the nsswitch to support Services, Protocols and Rpcume2006-04-282-1/+554
| | | | | | | | databases. - Make nsswitch support caching. Submitted by: Michael Bushkov <bushman__at__rsu.ru> Sponsored by: Google Summer of Code 2005
* Correct usage example.ceri2006-04-181-1/+1
| | | | | | PR: docs/95059 Submitted by: Jos Backus MFC after: 4 days
* Document that VIS_CSTYLE encodes space (040) as '\s'.brueffer2006-04-091-1/+3
| | | | | | PR: 95546 Submitted by: Jan Schaumann <jschauma@netmeister.org> MFC after: 3 days
* Allocate space for thread pointer, this allows thread library to accessdavidxu2006-03-281-3/+3
| | | | its pointer from begin, and simplifies _get_curthread() in libthr.
* Make _spinunlock() point to the spinunlock stub, not thedeischen2006-03-131-1/+1
| | | | spinlock stub.
* Add each directory's symbol map file to SYM_MAPS.deischen2006-03-131-0/+2
|
* Add symbol maps and initial symbol version definitions to libc.deischen2006-03-131-0/+446
| | | | Reviewed by: davidxu
* Add some more pthread stubs so that librt can use them.deischen2006-03-051-28/+105
| | | | | | | The thread jump table has been resorted, so you need to keep libc, libpthread, and libthr in sync. Submitted by: xu
* Remove debug printf.pjd2006-01-261-1/+0
|
* Make getttyent() report what the pts ptys as well.cognet2006-01-261-1/+38
|
* Use posix_memalign() in valloc() rather than making assumptions aboutjasone2006-01-122-20/+20
| | | | | | the alignment of malloc()ed memory. Approved by: markm (mentor)
* Implement ELF symbol versioning using GNU semantics. This code aimskan2005-12-181-0/+9
| | | | | | | | | to be compatible with symbol versioning support as implemented by GNU libc and documented by http://people.redhat.com/~drepper/symbol-versioning and LSB 3.0. Implement dlvsym() function to allow lookups for a specific version of a given symbol.
* Make our ELF64 type definitions match standards. In particular thismarcel2005-12-181-3/+3
| | | | | | | | | | | | | means: o Remove Elf64_Quarter, o Redefine Elf64_Half to be 16-bit, o Redefine Elf64_Word to be 32-bit, o Add Elf64_Xword and Elf64_Sxword for 64-bit entities, o Use Elf_Size in MI code to abstract the difference between Elf32_Word and Elf64_Word. o Add Elf_Ssize as the signed counterpart of Elf_Size. MFC after: 2 weeks
* Switch BUILD_ARCH in Makefile to use uname -p suggested by ru.ambrisko2005-12-033-6/+42
| | | | | | | | | | | | | | Switch strncpy to strlcpy suggested by gad and issue found by pjd. Add to uname(3) man page describing: UNAME_s UNAME_r UNAME_v UNAME_m Add to getosreldate(3) man page describing: OSVERSION Submitted by: ru, pjd/gad Reviewed by: ru (man pages)
* Unbreak build when I fluff the clean-up of __FBSDID diff reductionambrisko2005-12-021-0/+2
| | | | | | before commit. pointyhat++
* Add support to easily build FreeBSD unpacked in a chroot of anotherambrisko2005-12-022-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | FreeBSD machine. To do this add the man 1 uname changes to __xuname.c so we can override the settings it reports. Add OSVERSION override to getosreldate. Finally which Makefile.inc1 to use uname -m instead of sysctl -n hw.machine_arch to get the arch. type. With these change you can put a complete FreeBSD OS image into a chroot set: UNAME_s=FreeBSD UNAME_r=4.7-RELEASE UNAME_v="FreeBSD $UNAME_r #1: Fri Jul 22 20:32:52 PDT 2005 fake@fake:/usr/obj/usr/src/sys/FAKE" UNAME_m=i386 UNAME_p=i386 OSVERSION=470000 on an amd64 or i386 and it just work including building ports and using pkg_add -r etc. The caveat for this example is that these patches have to be applied to FreeBSD 4.7 and the uname(1) changes need to be merged. This also addresses issue with libtool. This is usefull for when a build machine has been trashed for an old release and we want to do a build on a new machine that FreeBSD 4.7 won't run on ...
* Add MLINK for execvP(3).jhb2005-12-011-1/+1
| | | | | | PR: docs/89783 Submitted by: Andreas Kohn andreas at syndrom23 dot de MFC after: 3 days
* Make SYNOPSIS compile after imp@'s changes.ru2005-11-232-11/+11
|
* Make SYNOPSIS compile.ru2005-11-231-1/+1
|
* Fix a stub function so that is has the correct number ofdeischen2005-11-121-3/+3
| | | | | | arguments. While I'm here, correct a couple of [tab] alignments. Submitted by: bland
* Make __sem_timedwait() consistent with the sem_timedwait() prototype.stefanf2005-10-181-1/+1
|
* Just by allocating size*2 bytes we can't be sure that new size will be enough,ache2005-09-181-2/+2
| | | | | | | | | | | so change two if (size not enough) { reallocf(size*2); } into while (size not enough) { reallocf(size*2); }
* Cosmetic fixes to prev. commit.ache2005-09-151-4/+4
| | | | | | | | Change first MAXPATHLEN to more standard PATH_MAX Change second MAXPATHLEN to 1024 (it is temp buffer not related) Change comment to reflect that. Suggested by: bde
* Remove any hardcoded assumptions about malloc's way of allocating,ache2005-09-141-4/+4
| | | | | | | | | just use MAXPATHLEN. It prevents potential buffer overflow with other malloc implementations. (this change based on submitted patch) PR: 86135 Submitted by: Trevor Blackwell <tlb@tlb.org>
* Don't reuse *pl to skip [], it is already used for {} parts in the loop aboveache2005-09-141-3/+3
| | | | | | | (submitted patch slightly modified) PR: 86038 Submitted by: Gerd Rausch <gerd@juniper.net>
* Include a couple of headers to ensure consistency between the prototype andstefanf2005-09-128-0/+11
| | | | the function definition.
* Add an MLINK for devname_r().stefanf2005-09-101-0/+1
|
* Include <sys/types.h> and <limits.h> ourselves, don't assume they are includedstefanf2005-08-201-0/+1
| | | | | | | | | | through <pthread.h>. gen/sem.c: Prerequisite for <_semaphore.h> net/getprotoent.c: USHRT_MAX net/getservent.c: USHRT_MAX stdio/ungetwc.c: MB_LEN_MAX stdio/vfwscanf.c: MB_LEN_MAX
* Add missing links from getgrent_r.3, getgrnam_r.3, and getgrgid_r.3 tosimon2005-08-121-1/+2
| | | | | | | getgrent.3. Submitted by: Ulf Lilleengen <lulf@kerneled.org> MFC after: 3 days
OpenPOWER on IntegriCloud