summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use __strong_reference() instead of __weak_reference() to assure that thejasone2000-01-2960-60/+60
| | | | weak symbols of the same name are not used.
* Merge from RELENG_3 (oops):chris2000-01-291-5/+5
| | | | | resolved_name -> resolved_path resolvedname -> resolved_path
* Undo the ill-conceived breakage of the previous commit and really fix:jasone2000-01-293-26/+28
| | | | | | | | | | | | | | | | | | | | | | | | | For libc_r renamed syscalls, correct symbol naming from _thread_sys_foo() <-- _foo() to _thread_sys_foo() <-- _foo() <-- foo(). This is necessary for system calls which libc_r doesn't define foo(). Some weak symbols such as poll() are defined twice. From what I understand, depending on one weak symbol or the other to be used is a bad idea. All such weak symbols defined in the libc_r-specific code should therefore be made strong (non-weak?). Simplify PSEUDO() to not define any weak symbols, since they aren't ever needed. alpha/SYS.h: Correct reversed usage of WEAK_ALIAS(), which has reversed arguments from __weak_reference(). Also, fix reversal of symbols, so that syscall foo() is a weak alias for _foo(). Add WEAK_ALIAS() call to PRSYSCALL(), which unlike the i386 version of PRSYSCALL(), is not defined in terms of PSYSCALL(). Make PSEUDO() equivalent to the i386 version.
* Fix various typos and mdoc style issues.mpp2000-01-2922-108/+200
| | | | Reviewed by: rwatson
* Grammar fix: ``Different than'' should really be ``different from''.chris2000-01-291-1/+1
|
* Revive the warning that dllockinit() is experimental and subject tojdp2000-01-291-1/+6
| | | | change.
* For syscalls that are renamed to _thread_sys_foo, create a weak aliasjasone2000-01-283-16/+16
| | | | called _foo, not _thread_sys_foo.
* Use _fcntl() (not fcntl()) inside of fcntl().jasone2000-01-283-9/+9
| | | | Reported by: green
* Introduce ACL man pages en masse for library calls, and general introduction.rwatson2000-01-2826-14/+2524
| | | | | | | 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
* There were so far only 42 different conversion specifications injoerg2000-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
* Install setflags.3 and its link to getflags.3.bde2000-01-281-1/+3
|
* Have NgMkSockNode() load the socket node type KLD if it's notarchie2000-01-283-2/+24
| | | | already loaded (indicated by EPROTONOSUPPORT from socket(2)).
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),jasone2000-01-27196-571/+2044
| | | | | | | | | | | | | | | | | 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
* Historically file flags (schg, uschg, etc) have been converted fromjoe2000-01-279-164/+248
| | | | | | | | | | | | | | | | | 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 ;)
* Avoid core dump when ai_canonname is NULL.shin2000-01-271-4/+8
| | | | | | (Now this happens for numeric addrs, as getaddrinfo() 1.3 -> 1.4 change) Reviewed by: Mark Huizer <xaa@timewasters.nl>
* o Back out rev 1.4 - reallocf() failure clobbers existing `environ'.ru2000-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
* Allow reverse lookup for loopback addr.shin2000-01-271-1/+1
| | | | | | This is merge from recent KAME fix to be more compliant with RFC2553. Obtained from: KAME project
* Use a long line instead splitting a line with backslash-newline in synopsis.bde2000-01-271-2/+1
| | | | My synopsis checker doesn't understand backslash-newline.
* Fixed wrong includes in synopsis.bde2000-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.
* Document the memory leak that is inherent in FreeBSD's semanticsarchie2000-01-261-0/+15
| | | | | | for getenv()/putenv(). PR: 10341 5604
* Add the new version.c file for curses_version(3)peter2000-01-262-0/+2
|
* A few more touchups:rwatson2000-01-266-146/+188
| | | | | | | | | - 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)
* Removed 3rd arg from bindresvport_sa() call, because the 3rd arg have beenshin2000-01-261-2/+1
| | | | | | already removed. Specified by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
* Fix timestamp handling.des2000-01-261-5/+7
| | | | Submitted by: bde
* bindresvport related changesshin2000-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.)
* Fix getaddrinfo() behaviour to be more compliant with RFC2553. Patches areshin2000-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
* Use a more conventional copyright message.peter2000-01-261-9/+14
|
* Minor fixes to library interface to improve POSIX.1e compliance. Thisrwatson2000-01-2618-156/+130
| | | | | | | | | | 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.
* several tcp apps IPv6 updateshin2000-01-258-7/+270
| | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Improve the explanation on the (in)security of mktemp(3).sheldonh2000-01-251-3/+6
|
* We _do_ support MS_ASYNCguido2000-01-241-1/+1
| | | | Reviewed by: Matthew Dillon <dillon@apollo.backplane.com>
* Clarify that we don't offer hard realtime.alfred2000-01-241-3/+8
| | | | Split timeval options into 3 paragraphs, it's easier on my eyes.
* Fix millisecond to nanosecond conversion.jasone2000-01-223-3/+3
| | | | PR: misc/16245
* Specify the system directory for which we put in our include pathmjacob2000-01-211-1/+2
| | | | | as a separate line so we can override it on the command line if we need to.
* Oops, The dependency of libcrypt on libmd went away before it was "fixed"bde2000-01-211-3/+3
| | | | | | here. Reported by: peter
* Remove unnecessary alternate entry points for *setjmp(). Make the mainjasone2000-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
* Minor *jmp() cleanups.jasone2000-01-204-17/+14
|
* Add sem_*() functions. Named semaphores and process-shared semaphoresjasone2000-01-209-0/+711
| | | | | | | are not supported by this implementation, and the error return values from sem_init(), sem_open(), sem_close(), and sem_unlink() reflect this. Approved by: jkh
* Do signal deferral for pthread_kill() as it was done in the old days.jasone2000-01-209-90/+18
| | | | Submitted by: deischen
* Move ENTRY and ALTENTRY definitions to asm.h where they belong.jasone2000-01-201-23/+0
| | | | | | Unbreak profiling. Again. Submitted by: bde
* Although it should be obvious that the 3-digit numeric values of thesheldonh2000-01-1912-12/+23
| | | | | characters shown are octal, state this explicitly for the easily misled.
* Make the quotes in the #include line visible.sheldonh2000-01-191-1/+1
|
* Do not set the default terminal type to "su", leave it empty.ru2000-01-192-6/+2
| | | | | PR: bin/5084 Reviewed by: asmodai, davidn, sef
* Implement continuations to correctly handle [sig|_]longjmp() inside of ajasone2000-01-1939-205/+1332
| | | | | | | | | | | | | | | | | | | | | | signal handler. Explicitly check for jumps to anywhere other than the current stack, since such jumps are undefined according to POSIX. While we're at it, convert thread cancellation to use continuations, since it's cleaner than the original cancellation code. Avoid delivering a signal to a thread twice. This was a pre-existing bug, but was likely unexposed until these other changes were made. Defer signals generated by pthread_kill() so that they can be delivered on the appropriate stack. deischen claims that this is unnecessary, which is likely true, but without this change, pthread_kill() can cause undefined priority queue states and/or PANICs in [sig|_]longjmp(), so I'm leaving this in for now. To compile this code out and exercise the bug, define the _NO_UNDISPATCH cpp macro. Defining _PTHREADS_INVARIANTS as well will cause earlier crashes. PR: kern/14685 Collaboration with: deischen
* Make minor entry point changes to support libc_r.jasone2000-01-199-18/+18
|
* Fix bde'isms in acl/extattr syscall interface, renaming syscalls torwatson2000-01-1912-28/+28
| | | | | | | | | 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
* Close PR#16028. Make the sanity check saner. The condition that wewpaul2000-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
* Document KERN_QUANTUM under CTL_KERNchris2000-01-191-0/+6
| | | | | PR: 15637 Submitted by: jhs
* Document isnanf() for checking if a float is NaN (``Not-a-Number'') andchris2000-01-192-4/+9
| | | | | | create a link from isnanf.3 to isinf.3. PR: 13878
* This man page is not needed; it just gets jumped on later when libcryptmarkm2000-01-182-298/+1
| | | | | is installed. Submitted by: bde
OpenPOWER on IntegriCloud