summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix a cut 'n paste mistake.Luoqi Chen1998-09-132-8/+8
| | | | Notes: svn path=/head/; revision=39140
* In libc_r, rename vfork syscall to _thread_sys_vfork and make vfork an aliasDmitrij Tejblum1998-09-123-6/+14
| | | | | | | | | | to fork. It is difficult to do real vfork in libc_r, since almost every operation with file descriptsor changes _thread_fd_table and friends. popen(3) works much better with this change. Notes: svn path=/head/; revision=39118
* Document the fact that shutdown(2) is expected to comply with Posix.1g,Garrett Wollman1998-09-121-3/+20
| | | | | | | when it happens. Notes: svn path=/head/; revision=39117
* Change return type of strptime from const char* to char*.Dmitrij Tejblum1998-09-122-5/+5
| | | | | | | const char* was wrong and nonstandard. Notes: svn path=/head/; revision=39113
* A small last-minute iitem for 3.0:Garrett Wollman1998-09-122-84/+124
| | | | | | | | | | | | - Fix some style errors I made back in 1995. - Add a new flavor of the err(3) family, which takes an explicit errno argument rather than implicitly examining errno. This will make it easier to use these functions in conjunction with modern library interfaces that return an errno value explicitly. Notes: svn path=/head/; revision=39112
* Use ellipsis in synopsis.Joseph Koshy1998-09-121-2/+6
| | | | | | | Requested by: bde Notes: svn path=/head/; revision=39086
* $@ -> ${.TARGET}Warner Losh1998-09-111-2/+2
| | | | Notes: svn path=/head/; revision=39060
* Change obsolete $@ to ${.TARGET}.Warner Losh1998-09-111-1/+1
| | | | Notes: svn path=/head/; revision=39059
* Don't trust TMPDIR if we're setuid root. This is used only for theWarner Losh1998-09-111-2/+3
| | | | | | | | | | | | | backing file for an anonymous (memory based) btree, and I don't think that any setuid programs actually use it, but it is better to be safe than sorry. This has been in my tree for a long time, maybe a year or more... Inspired by: Similar changes in OpenBSD, if memory serves (like nearly a year ago) Notes: svn path=/head/; revision=39058
* Mention which system interface functions are signal-safe.Brian Somers1998-09-091-1/+103
| | | | | | | Suggested on -current by: Terry Lambert <tlambert@primenet.com> Notes: svn path=/head/; revision=39029
* Document a number of VM sysctl variables with help from old emailsGuy Helmer1998-09-091-1/+38
| | | | | | | written by John Dyson. Notes: svn path=/head/; revision=39022
* Change i386 in a few paths to ${MACHINE} to support MACHINE=pc98.KATO Takenori1998-09-091-5/+5
| | | | Notes: svn path=/head/; revision=38995
* Add $Id$, remove quoting for `...'.Joseph Koshy1998-09-091-1/+3
| | | | | | | Requested by: bde Notes: svn path=/head/; revision=38961
* Add a new library function getobjformat(). It checks all theJohn Polstra1998-09-093-3/+238
| | | | | | | | | | | | | | | | standard places ("/etc/objformat", ${OBJFORMAT}, argv) for an indication of the user's preferred object file format. This consolidates some code that was starting to be duplicated in more and more places. Use the new function in ldconfig. Note: I don't think that gcc should use getobjformat(), even though it could. The compiler should limit itself to functions that are widespread, to ease porting and cross-compilation. Notes: svn path=/head/; revision=38960
* Add support for the RPC 64-bit integer type ``hyper''.David E. O'Brien1998-09-081-1/+57
| | | | Notes: svn path=/head/; revision=38952
* restore rev 1.23 to give clear SIGALRM handling example, 68 yearsAndrey A. Chernov1998-09-081-28/+16
| | | | | | | are too long to affect real code Notes: svn path=/head/; revision=38938
* Use ellipsis in the synopsis, and an appropriate explanation inJoseph Koshy1998-09-082-4/+12
| | | | | | | | | the text of the manual page. Suggested by: bde Notes: svn path=/head/; revision=38930
* Reviewed by: Andrey A. Chernov <ache@nagual.pp.ru>, Doug Rabson ↵Matthew Dillon1998-09-061-17/+29
| | | | | | | | | | <dfr@nlsystems.com> Rewrote sleep() to remove int/long typing assumptions between the argument to the function and the timespec structure. Notes: svn path=/head/; revision=38878
* Use a varargs style prototype in the manual page, with accompanyingJoseph Koshy1998-09-061-1/+14
| | | | | | | explanation in the text. Notes: svn path=/head/; revision=38877
* Use INT_MAX instead of LONG_MAX since the variable being comparedJohn Birrell1998-09-051-4/+4
| | | | | | | is an int, not a long. Notes: svn path=/head/; revision=38847
* Change a test for NETBSD_SYSCALLS to __alpha__. We're not ready toJohn Birrell1998-09-051-2/+2
| | | | | | | do profiling on alpha yet. Notes: svn path=/head/; revision=38846
* Change the profile data file name from gmon.out to progname.gmonJohn Birrell1998-09-052-7/+14
| | | | | | | where progname comes from __progname in crt0 or crt1. Notes: svn path=/head/; revision=38845
* Implement the weak aliases for private entry points in the inet_*John Polstra1998-09-0220-90/+167
| | | | | | | | | | | | | | and res_* modules in a way that works for ELF. I moved the aliases out of res_stubs.c and into the individual modules where the entry points are defined. Weak aliases don't work in ELF unless that is the case. (Actually, I'm surprised it worked for a.out.) This should fix the undefined "inet_addr" and related symbols in various applications that fail to include <arpa/inet.h> or <resolv.h> as they are supposed to do. Notes: svn path=/head/; revision=38736
* Sort cross references.Wolfram Schneider1998-08-315-14/+14
| | | | Notes: svn path=/head/; revision=38702
* Typo fix.Joseph Koshy1998-08-281-1/+1
| | | | Notes: svn path=/head/; revision=38596
* Describe what constitues an exceptional condition.Steve Price1998-08-241-0/+2
| | | | | | | | PR: 7666 Submitted by: Archie Cobbs <archie@whistle.com> Notes: svn path=/head/; revision=38503
* Update to use the new elf headers.Doug Rabson1998-08-171-15/+28
| | | | Notes: svn path=/head/; revision=38391
* Remove support for NetBSD syscalls.John Birrell1998-08-179-378/+3
| | | | Notes: svn path=/head/; revision=38376
* Remove the comment about how to get NetBSD syscalls since there areJohn Birrell1998-08-171-8/+1
| | | | | | | now programs built on alpha that _must_ use FreeBSD syscalls to work. Notes: svn path=/head/; revision=38375
* Add missing #include of <sys.types.h>Poul-Henning Kamp1998-08-151-0/+1
| | | | Notes: svn path=/head/; revision=38340
* I have added the support for BIG5 encoding into libc/libxpg4/mklocale.Poul-Henning Kamp1998-08-153-5/+127
| | | | | | | | | | | | | | the diff is attached below. This is done on the 3.0 source-tree. I have test this on 2.2-stable before, but I don't have a 3.0 machine right now. This patch is mainly to make libc support BIG5 encoding, thus add zh_TW.BIG5 locale to 3.0. Submitted by: Chen Hsiung Chan <frankch@waru.life.nthu.edu.tw> Notes: svn path=/head/; revision=38333
* If using FreeBSD syscalls, handle the syscalls that don't requireJohn Birrell1998-08-081-1/+11
| | | | | | | default asm code the same way as on i386. Notes: svn path=/head/; revision=38182
* Include FreeBSD's syscall.h if not using NetBSD syscalls.John Birrell1998-08-081-2/+5
| | | | Notes: svn path=/head/; revision=38181
* Allow for the fact that NetBSD syscalls are no longer the default. CallJohn Birrell1998-08-081-0/+4
| | | | | | | sigaltstack by default if using FreeBSD syscalls. Notes: svn path=/head/; revision=38180
* Make NetBSD compatibility conditional on NETBSD_SYSCALLS being defined.John Birrell1998-08-081-1/+3
| | | | | | | This is no longer the default. Notes: svn path=/head/; revision=38179
* References to NetBSD syscalls changed to just a comment about what toJohn Birrell1998-08-081-6/+7
| | | | | | | | | add to /etc/make.conf to use FreeBSD's libc with a NetBSD/Alpha kernel. From now on, FreeBSD/Alpha is just FreeBSD. Notes: svn path=/head/; revision=38178
* Fixed bitrot in prototypes in synopsis.Bruce Evans1998-08-031-5/+5
| | | | Notes: svn path=/head/; revision=38060
* Fixed missing header in synopsis.Bruce Evans1998-08-031-1/+2
| | | | Notes: svn path=/head/; revision=38055
* isnetworktty -> isnettty. ttyent.h has already gone through 3Bruce Evans1998-08-032-6/+6
| | | | | | | | | revisions to match the confusing spelling in getttyent.c (1 to break it to match the man page and 1 in each of 2 branches to fix it). This function seems to be orphaned and unused. Notes: svn path=/head/; revision=38054
* Fixed printf format errors.Bruce Evans1998-08-021-1/+1
| | | | Notes: svn path=/head/; revision=38020
* Fixed disordering in previous commit.Bruce Evans1998-07-292-8/+8
| | | | Notes: svn path=/head/; revision=37946
* Add missing period. We don't allow maternity leaves.Tim Vanderhoek1998-07-291-2/+2
| | | | Notes: svn path=/head/; revision=37937
* u_int --> unsigned int, remove (now unneeded) <sys/types.h>Jonathan Lemon1998-07-283-15/+13
| | | | Notes: svn path=/head/; revision=37917
* oops, forgot to do ``cvs add'' first.Jonathan Lemon1998-07-286-0/+417
| | | | Notes: svn path=/head/; revision=37904
* Add wrappers for i386_*_ioperm, i386_vm86 so userland code doesJonathan Lemon1998-07-283-8/+13
| | | | | | | | not have to call sysarch() directly. Added man pages for above, as well as sysarch() Notes: svn path=/head/; revision=37903
* Provide meaningful errno value on error returnAndrey A. Chernov1998-07-141-5/+17
| | | | Notes: svn path=/head/; revision=37643
* Changed to the C9x draft spelling of the (unsigned) integral typeBruce Evans1998-07-141-12/+12
| | | | | | | | | | | suitable for holding object pointers (ptrint_t -> uintptr_t). Added corresponding signed type (intptr_t). Changed/added corresponding non-C9x types for function pointers to match. Don't use nonstandard types to implement these types, and don't comment on them in <machine/types.h>. Notes: svn path=/head/; revision=37629
* Oops, fptrint_t still needs to be declared in <machine/profile.h> in theBruce Evans1998-07-101-9/+1
| | | | | | | | !KERNEL case. The kludge to get it declared in libc/gmon/mcount.c wasn't sufficient because fptrint_t is used in <sys/gmon.h>. Notes: svn path=/head/; revision=37542
* Added a kernel-only typedef (ptrint_t) giving an integral type that isBruce Evans1998-07-101-2/+11
| | | | | | | | | | | | | least unsuitable for holding an object pointer. This should have been used to fix warnings about casts between pointers and ints on alphas. Moved corresponding existing general typedef (fptrint_t) for function pointers from the i386 <machine/profile.h> to a kernel-only typedef in <machine/types.h>. Kludged libc/gmon/mcount.c so that it can still see this typedef. Notes: svn path=/head/; revision=37540
* Correct wording on range of addresses examined by `msync(2)'.Joseph Koshy1998-07-091-2/+2
| | | | | | | PR: 7180 Notes: svn path=/head/; revision=37528