summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* The maximum RPC message size was set at 8k for UDP. This is loweriedowse2001-04-081-5/+6
| | | | | | | | | | | | | | | than the default buffer size in the old RPC code (8800 bytes), and it could not be overriden by the application. This caused problems with CFS (/usr/port/security/cfs). Change this default back to UDPMSGSIZE (8800 bytes), but more importantly, allow applications to use larger message sizes for all protocols if desired. Choose an arbitrary maximum message size of 256k instead of using the default as the maximum (which is silly). Reported by: ache Reviewed by: alfred, Martin Blapp <mb@imp.ch>
* Mention that locks are inherited across an exec.dd2001-04-081-0/+6
| | | | | PR: 24802 Submitted by: Kenneth Ingham <ingham@i-pi.com>
* Install links to extattr_(get|set|delete)_fd.2 (from extattr_get_file.2).dd2001-04-081-2/+5
|
* mdoc(7) police: add missing LIBRARY section.ru2001-04-059-0/+18
|
* Unbreak world.ru2001-04-051-1/+1
| | | | Submitted by: jhay
* Record -lposix1e merge with -lc.ru2001-04-0526-26/+26
|
* mdoc(7) police rev 1.11: convert descriptions and cross-referencesru2001-04-051-64/+32
| | | | for the ACL editing library functions to the plain tagged list.
* - Add descriptions and cross-references for the ACL editing libraryjedgar2001-04-051-15/+107
| | | | | | | | | | functions. - Place the acl_dup() description in alphabetical order. - Move the POSIX.1e descriptions under the ENVIRONMENT section to the STANDARDS section. Reviewed by: rwatson Obtained from: TrustedBSD Project
* Install the acl_create_entry.3 man pagejedgar2001-04-051-0/+1
|
* Document the extattr_(get|set|delete)_fd calls, and add a note warningdd2001-04-051-4/+52
| | | | | | people that these calls are likely to change in the future. Reviewed by: rwatson
* Activate build of posix1e extensions in libc and libc_r that have beentmm2001-04-041-0/+1
| | | | | | | | moved in from libposix1e, and deactivate build of the soon-to-be-removed libposix1e. Approved by: rwatson Obtained from: TrustedBSD Project
* Add entries for the posix1e functions that will be overridden in libc_r.tmm2001-04-042-0/+12
| | | | | Approved by: rwatson Obtained from: TrustedBSD Project
* Prepare for the inclusion of libposix1e into libc: retire the oldtmm2001-04-0429-12/+70
| | | | | | | | | | Makefile, add Makefile.inc needed for libc build; add #include "namespace.h"/#include "un-namespace.h" pairs around the includes of sys/acl.h and sys/capability.h, and an additional underscore in front of the functions that will be overridden in libc_r. Approved by: rwatson Obtained from: TrustedBSD Project
* mdoc(7) police: add missing .Pa call.ru2001-04-041-1/+3
|
* Fix some very broken code in __nc_error() that implements per-threadiedowse2001-04-032-17/+28
| | | | | | | | | | | | | | | `nc_error' variables. Move the nc_lock mutex from mt_misc.c to a static variable within this function, since it is only used here. Add a new getnetconfigent() error code `NC_NOTFOUND' to report the case where the specified netid was not found. Set nc_error in all error cases in getnetconfigent() so that the error messages returned by nc_(s)perror are always meaningful. Add a terminating \n to the output of nc_perror() to match both our manpage and other implementations of this function. Reviewed by: deischen, alfred, Martin Blapp <mb@imp.ch>
* Remove some hacks that were apparently added to avoid problems withiedowse2001-04-032-4/+2
| | | | | | | RPC clients hanging. The real problem turned out to be missing cleanup code; this was fixed in clnt_vc.c r1.5 and clnt_dg.c r1.4. Submitted by: Martin Blapp <mb@imp.ch>
* There were a few error cases where the RPC code would return withiedowse2001-04-022-1/+5
| | | | | | all signals masked (whoops). Add the missing cleanup code. Reviewed by: Martin Blapp <mb@imp.ch>, alfred
* Move the #includes of reentrant.h to after the `#include "namespace.h"',iedowse2001-04-0223-23/+23
| | | | | | | | so that the underscored versions of the pthread functions get declared. This removes around 300 lines of 'implicit declaration of XXX' warnings from the output of a libc build with -Wall. Reviewed by: Martin Blapp <mb@imp.ch>, alfred
* Hook the extattr_get_file.2 manual page into the build. Add MLINKSdd2001-04-011-1/+3
| | | | for extattr_set_file.2 and extattr_delete_file.2.
* A manual page for the extattr_get_file, extattr_set_file, anddd2001-04-011-0/+154
| | | | | | | extattr_delete_file system calls. Reviewed by: rwatson, ru Approved by: nik
* mdoc(7) police: LIBRARY should be before SYNOPSIS.ru2001-03-291-2/+2
|
* Correct function name: acl_clear_perm -> acl_clear_permsjedgar2001-03-291-2/+2
|
* Catch up with a comment that changed in rev1.73 of mount.hben2001-03-291-1/+1
| | | | | PR: 25836 Submitted by: Tony Finch <dot@dotat.at>
* Mostly pick up OpenBSD's rev 1.14 by deraadt@ and millert@.peter2001-03-281-42/+39
| | | | | | I've left out a couple of unused args between internal functions. Use MAXPATHLEN, not MAXPATHLEN + 1 in a couple of places. Pass a pointer to the end of the target filename space.
* The f_syncreads and f_asyncreads entries are missing from the man page.phk2001-03-281-3/+4
| | | | | | | | This also tidies up the formatting a bit and omits all the padding entries. PR: 25834 Submitted by: Tony Finch <dot@dotat.at>
* OpenBSD's g_Ctoc() returned a false error when the target buffer waspeter2001-03-281-16/+16
| | | | | | exactly the right size. Do it differently - pass a length rather than an end-of-string+1 pointer as this is more convenient anyway. Get rid of the bogus +1's.
* Fix g_Ctoc() interface, approximately based on OpenBSD's recent changes.peter2001-03-281-14/+36
| | | | | | | Also, set gl_pathv to NULL after we free it, especially when dealing with realloc failures. Obtained from: OpenBSD
* o De-uglify IMPLEMENTATION NOTES section by removing unnecessary use ofrwatson2001-03-281-2/+1
| | | | .Fx
* Add a CLSET_ASYNC command, which allows us to (ab)use the clnt_dg transportwpaul2001-03-271-3/+19
| | | | | | | | | | | | | | | | | | to make asynchronous RPCs. This is needed to help fix ypbind, which can no longer override the clnt_dg_call() method (formerly the clntudp_call() method) due to all the internal descriptor locking code in TI-RPC. Turning on this flag allows us to send an RPC request, then return immediately, and handle a reply later, rather than being forced to do the request and reply in a single function call. Also fix a byte ordering bug: when clnt_dg_call() increments the XID prior to transmitting a request, it uses the raw value, which is wrong. The XID is stored in network byte order, i.e. big-endian. The CLSET_XID and CLGET_XID commands in clnt_dg_control() use ntohl()/htonl() to get the byte ordering right, but because clnt_dg_call() does not do this, using CLSET_XID/CLGET_XID doesn't actually work, unless you're on a big endian host, which we aren't (yet). Fix clnt_dg_call() to byte swap properly when doing the increment.
* Document LOG_CONSOLE.cwt2001-03-271-0/+2
|
* MAN[1-9] -> MAN.ru2001-03-2718-26/+26
|
* give the "netgrent" functions a home in netdb.halfred2001-03-271-0/+1
|
* const'ifyalfred2001-03-271-1/+1
|
* o Update copyright daterwatson2001-03-261-46/+31
| | | | | | | | o Revise description in light of commits over last month including: - ACL editing library is now implemented - ACLs are now implemented Obtained from: TrustedBSD Project
* This is kind of a hack, but it should work. Currently, world is brokenpeter2001-03-243-81/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | because libc/rpc/key_call.c references uname(), and ps/print.c also defines uname(), and ps is linked statically. This leads to a symbol clash. The userland uname(3) kinda sucked anyway as the hostname etc was too short. And since the libc rpc interface now uses the utsname.nodename which gets truncated, I was tempted into doing something about it. Create a new userland uname function, called __xuname() which takes an extra argument that allows you to change the size of the fields. uname() becomes a static inline function in sys/utsname.h that passes the extra argument in. struct utsname has its field members expanded by default now in userland. We still provide a 'uname' externally linkable function for things that either think that they ``know'' the utsname format and assume 32 character strings and bypass the include file, or objects that are linked against old libcs. ie: just about every plausible case that I can think of is covered. Should we ever change the default lengths again, a libc major bump should not be required as the size is now passed to the function. XXX the uname(2) in the kernel is for FreeBSD 1.1 binary compatability! All the uname(3) functions that are exported to userland are actually implemented in libc with sysctl. uname(1) uses sysctl directly and does not call uname(3). PR: bin/4688
* Fix rcsid/$FreeBSD$.obrien2001-03-241-2/+15
| | | | Reduce diff from what I think is the original sources.
* fix Alpha supportalfred2001-03-241-10/+0
|
* IPv4 address is not unsigned int. This change introduces in_addr_t.ume2001-03-237-18/+25
| | | | | | | PR: 9982 Adviced by: des Reviewed by: -alpha and -net (no objection) Obtained from: OpenBSD
* change callrpc() from taking "char *" args, I'm quite sure they really meantalfred2001-03-232-3/+3
| | | | | | to use "void *". remove a duplicate prototype for callrpc() from libexec/ypxfr/ypxfr_extern.h
* mdoc(7) police: fix markup.ru2001-03-232-26/+6
|
* Correct the acl_set_permset and acl_set_tag_type man pagesjedgar2001-03-232-33/+30
| | | | | | which somehow got mixed up with the acl_get_* man pages. Submitted by: ru
* mdoc(7) police: fix markup.ru2001-03-238-151/+72
|
* mdoc(7) police: fix markup, function prototype, and RETURN VALUES text.ru2001-03-231-29/+41
|
* Add the following ACL editing functions:jedgar2001-03-2218-2/+1467
| | | | | | | | | | acl_add_perm, acl_clear_perms, acl_copy_entry, acl_create_entry, acl_delete_perm, acl_get_permset, acl_get_qualifier, acl_get_tag_type, acl_set_permset, acl_set_qualifier, acl_set_tag_type This brings us within 4 functions of a full ACL editing library. Reviewed by: rwatson
* Remove struct cmessage from sys/socket.h and reintroduce the privatealfred2001-03-222-2/+9
| | | | | | definitions. Requested by: wollman
* Hopefully fix some of the bugs in passing credentials over UNIX ↵alfred2001-03-222-26/+32
| | | | | | | | | | | | domain sockets. Make struct cmessage visible from socket.h (about 4 places were defining it for themselves which wasn't good) Make __rpc_get_local_uid() useable and give it prototype that's visible. Fix some issues with printing out usernames from rpcbind and keyserv.
* Get rid of non-standard %E[Ff] formats, userland apps already fixedache2001-03-213-33/+4
|
* Oops, back out prev. change - POSIX require %y in d_fmtache2001-03-211-4/+4
| | | | Cosmetique - use exact POSIX string for %c
* Replace %y with %Yache2001-03-211-1/+1
|
* whitespace cleanupalfred2001-03-201-16/+14
|
OpenPOWER on IntegriCloud