summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix various typos and mdoc style issues.Mike Pritchard2000-01-2911-54/+100
| | | | | | | Reviewed by: rwatson Notes: svn path=/head/; revision=56791
* Grammar fix: ``Different than'' should really be ``different from''.Chris Costello2000-01-291-1/+1
| | | | Notes: svn path=/head/; revision=56783
* Revive the warning that dllockinit() is experimental and subject toJohn Polstra2000-01-291-1/+6
| | | | | | | change. Notes: svn path=/head/; revision=56781
* For syscalls that are renamed to _thread_sys_foo, create a weak aliasJason Evans2000-01-283-16/+16
| | | | | | | called _foo, not _thread_sys_foo. Notes: svn path=/head/; revision=56773
* Introduce ACL man pages en masse for library calls, and general introduction.Robert Watson2000-01-2813-7/+1262
| | | | | | | | | | Introduce ACL man pages en masse for library calls, and general introduction. Also, fix acl_valid.c non-portable calls to include _np in their names, making them standard-happy as well as consistent with acl.h Notes: svn path=/head/; revision=56760
* There were so far only 42 different conversion specifications inJoerg Wunsch2000-01-282-0/+22
| | | | | | | | | | | | strftime(3), add another one. :) %z yields the local timezone's offset in hours and minutes, as used in RFC822 headers. There's a precedence for this in Lunux' libc, and Internet software (like Perl scripts) start using it. OKed by (wrt. the code freeze): jkh Notes: svn path=/head/; revision=56756
* Install setflags.3 and its link to getflags.3.Bruce Evans2000-01-281-1/+3
| | | | Notes: svn path=/head/; revision=56726
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-01-2770-274/+277
| | | | | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen Notes: svn path=/head/; revision=56698
* Historically file flags (schg, uschg, etc) have been converted fromJosef Karthauser2000-01-277-13/+247
| | | | | | | | | | | | | | | | | | | | string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags. Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc. There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags. The manual page could probably be improved upon ;) Notes: svn path=/head/; revision=56692
* o Back out rev 1.4 - reallocf() failure clobbers existing `environ'.Ruslan Ermilov2000-01-271-3/+8
| | | | | | | | | | | o Do not override `environ' if realloc() fails, leave it intact. o Set `alloced' only when memory is actually allocated. PR: bin/5604 (2nd part) Reviewed by: bde Notes: svn path=/head/; revision=56676
* Allow reverse lookup for loopback addr.Yoshinobu Inoue2000-01-271-1/+1
| | | | | | | | | This is merge from recent KAME fix to be more compliant with RFC2553. Obtained from: KAME project Notes: svn path=/head/; revision=56671
* Fixed wrong includes in synopsis.Bruce Evans2000-01-271-8/+11
| | | | | | | | | | | | | | Updated date. 1987 was a while ago. Removed trailing comma in NAME section. Uncapitalised Bindresvport and Bindresvport_sa in DESCRIPTION section. Don't use .Nm there either. Added bindresvport_sa() to the RETURN VALUES and ERROR sections. Notes: svn path=/head/; revision=56660
* Document the memory leak that is inherent in FreeBSD's semanticsArchie Cobbs2000-01-261-0/+15
| | | | | | | | | for getenv()/putenv(). PR: 10341 5604 Notes: svn path=/head/; revision=56652
* A few more touchups:Robert Watson2000-01-263-73/+94
| | | | | | | | | | | | - clean up unneeded AFS ID type - Add Coda, NTFS, NWFS ACL types - Add acl_dup() prototype - Remove acl_calc_mask, which belongs in the editing library - Introduce posix1e.3, a man page introducing POSIX.1e library calls (more man pages to follow) Notes: svn path=/head/; revision=56638
* Removed 3rd arg from bindresvport_sa() call, because the 3rd arg have beenYoshinobu Inoue2000-01-261-2/+1
| | | | | | | | | already removed. Specified by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de> Notes: svn path=/head/; revision=56636
* bindresvport related changesYoshinobu Inoue2000-01-264-75/+138
| | | | | | | | | | | | | -changed bindresvport2 to bindresvport_sa -merged the man into bindresvport.3 All discussion between Jean-Luc Richier <Jean-Luc.Richier@imag.fr>, Theo de Raadt <deraadt@cvs.openbsd.org>, itojun, is reflected to this code. (Actually Theo de Raadt write the code simultaneously as the discussion change.) Notes: svn path=/head/; revision=56629
* Fix getaddrinfo() behaviour to be more compliant with RFC2553. Patches areYoshinobu Inoue2000-01-261-116/+17
| | | | | | | | | | | | | | | obtained from itojun. -don't filter address families which are not supported by system at FQDN resolving. -don't do reverse lookup I think I checked all lib and tools which use getaddrinfo() if this change affect them. Obtained from: KAME project Notes: svn path=/head/; revision=56627
* Minor fixes to library interface to improve POSIX.1e compliance. ThisRobert Watson2000-01-269-78/+65
| | | | | | | | | | | | | adds _np to a couple of function prototypes that provided more broad/useful interfaces than POSIX.1e interfaces included. Also, move from using a heuristic to identify POSIX.1e-semantic ACLs to using different ACL types for non-POSIX.1e ACLs. This should clean up the existing fuzzy logic that determined when acl_sort() should be applied before kernel submission. Notes: svn path=/head/; revision=56625
* several tcp apps IPv6 updateYoshinobu Inoue2000-01-253-5/+33
| | | | | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=56590
* Improve the explanation on the (in)security of mktemp(3).Sheldon Hearn2000-01-251-3/+6
| | | | Notes: svn path=/head/; revision=56589
* We _do_ support MS_ASYNCGuido van Rooij2000-01-241-1/+1
| | | | | | | Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Notes: svn path=/head/; revision=56542
* Clarify that we don't offer hard realtime.Alfred Perlstein2000-01-241-3/+8
| | | | | | | Split timeval options into 3 paragraphs, it's easier on my eyes. Notes: svn path=/head/; revision=56501
* Remove unnecessary alternate entry points for *setjmp(). Make the mainJason Evans2000-01-209-48/+69
| | | | | | | | | | entry point the standard name when not compiling libc_r (for example, longjmp is the main entry point instead of __longjmp). Suggested by: bde Notes: svn path=/head/; revision=56345
* Move ENTRY and ALTENTRY definitions to asm.h where they belong.Jason Evans2000-01-201-23/+0
| | | | | | | | | Unbreak profiling. Again. Submitted by: bde Notes: svn path=/head/; revision=56309
* Although it should be obvious that the 3-digit numeric values of theSheldon Hearn2000-01-1912-12/+23
| | | | | | | | characters shown are octal, state this explicitly for the easily misled. Notes: svn path=/head/; revision=56288
* Make the quotes in the #include line visible.Sheldon Hearn2000-01-191-1/+1
| | | | Notes: svn path=/head/; revision=56286
* Make minor entry point changes to support libc_r.Jason Evans2000-01-199-18/+18
| | | | Notes: svn path=/head/; revision=56276
* Fix bde'isms in acl/extattr syscall interface, renaming syscalls toRobert Watson2000-01-196-14/+14
| | | | | | | | | | | | prettier (?) names, adding some const's around here, et al. This is commit 4 out of 3, updating the userland library to reflect kernel interface changes. Reviewed by: bde Notes: svn path=/head/; revision=56274
* Close PR#16028. Make the sanity check saner. The condition that weBill Paul2000-01-191-1/+1
| | | | | | | | | | | | check for on the server may arise legitimately on the client. The correct way to check for a zero record length is to check for it without the LAST_FRAG marker in it, since it's legal to send a LAST_FRAG marker with 0 bytes of data. PR: misc/16028 Notes: svn path=/head/; revision=56273
* Document KERN_QUANTUM under CTL_KERNChris Costello2000-01-191-0/+6
| | | | | | | | PR: 15637 Submitted by: jhs Notes: svn path=/head/; revision=56268
* Document isnanf() for checking if a float is NaN (``Not-a-Number'') andChris Costello2000-01-192-4/+9
| | | | | | | | | create a link from isnanf.3 to isinf.3. PR: 13878 Notes: svn path=/head/; revision=56266
* This man page is not needed; it just gets jumped on later when libcryptMark Murray2000-01-182-298/+1
| | | | | | | | is installed. Submitted by: bde Notes: svn path=/head/; revision=56252
* Add HISTORY.Sheldon Hearn2000-01-181-0/+2
| | | | | | | Submitted by: obrien Notes: svn path=/head/; revision=56238
* Fixed missing backslash in previous commit. Adding setresuid.2 has takenBruce Evans2000-01-181-1/+1
| | | | | | | 4 commits and 2 world breakages so far. Notes: svn path=/head/; revision=56219
* Fix line too long style bug in the previous commit (which, by theSheldon Hearn2000-01-181-2/+2
| | | | | | | way, unbroke world). Notes: svn path=/head/; revision=56218
* add setresuid.2Andrey A. Chernov2000-01-181-1/+1
| | | | Notes: svn path=/head/; revision=56217
* acl_delete_default_file() changed to acl_delete_def_file()Robert Watson2000-01-171-1/+1
| | | | Notes: svn path=/head/; revision=56197
* Add manual pages for the newly added setres[ug]id system calls.Sheldon Hearn2000-01-172-0/+80
| | | | Notes: svn path=/head/; revision=56192
* We no longer care about the VAX and Tahoe compilers :-)Kris Kennaway2000-01-171-6/+1
| | | | Notes: svn path=/head/; revision=56131
* Oops, didn't commit the Makefile for libposix1e--this should fix buildRobert Watson2000-01-151-0/+15
| | | | | | | | | problems. Reviewed by: eivind Notes: svn path=/head/; revision=56075
* libposix1e provides userland library calls for the POSIX.1e securityRobert Watson2000-01-1511-0/+1468
| | | | | | | | | | | interface. This commit introduces the library, as well as a modest subset of the ACL calls, with some modifications to support multiple ACL semantics. Reviewed by: eivind Notes: svn path=/head/; revision=56055
* Fixed corrupted tabs in previous commit.Bruce Evans2000-01-141-2/+2
| | | | Notes: svn path=/head/; revision=55976
* libc rcmd update for IPv6.Yoshinobu Inoue2000-01-135-88/+295
| | | | | | | | | | | A new function bindresvport2(), AF independent version of bindresvport() is also added. Reviewed by: sumikawa Obtained from: KAME project Notes: svn path=/head/; revision=55918
* Correct placement of $FreeBSD$ CVS identifier.Jeroen Ruigrok van der Werven2000-01-131-1/+1
| | | | Notes: svn path=/head/; revision=55915
* Change ``from'' to ``to''.Jeroen Ruigrok van der Werven2000-01-131-1/+1
| | | | | | | | PR: 15729 Submitted by: Kim Toms Notes: svn path=/head/; revision=55914
* Fix unresolved _libc_*() references in libc by creating weak aliasesJason Evans2000-01-131-0/+2
| | | | | | | to the respective system call entry points. Notes: svn path=/head/; revision=55893
* added IPv6 unspecified addr check for getipnodebyaddr.Yoshinobu Inoue2000-01-131-0/+2
| | | | Notes: svn path=/head/; revision=55877
* added IPv4 mapped IPv6 addr consideration for getaddrinfo() reverse lookup caseYoshinobu Inoue2000-01-131-1/+4
| | | | Notes: svn path=/head/; revision=55876
* Add three-tier symbol naming in support of POSIX thread cancellationJason Evans2000-01-1279-292/+452
| | | | | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read(). Notes: svn path=/head/; revision=55837
* Remove the warning that this interface shouldn't be used yet. FixJohn Polstra2000-01-091-8/+4
| | | | | | | a typo. Clarify a sentence. Notes: svn path=/head/; revision=55685