summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add sranddev() since srand() is not vary much with seed, typical timeAndrey A. Chernov2001-04-232-1/+46
| | | | Notes: svn path=/head/; revision=75845
* mdoc(7) police: update referenced standard name.Ruslan Ermilov2001-04-181-1/+1
| | | | Notes: svn path=/head/; revision=75671
* mdoc(7) police: normalize .Nd.Ruslan Ermilov2001-04-1815-15/+15
| | | | Notes: svn path=/head/; revision=75670
* mdoc(7) police: fix markup.Ruslan Ermilov2001-04-181-9/+15
| | | | Notes: svn path=/head/; revision=75669
* mdoc(7) police: fix markup.Ruslan Ermilov2001-04-181-2/+6
| | | | Notes: svn path=/head/; revision=75661
* mdoc(7) police: use .Fx where appropriate.Ruslan Ermilov2001-04-1811-11/+23
| | | | Notes: svn path=/head/; revision=75660
* Correct a typo; prefered -> preferred.Kris Kennaway2001-04-171-1/+1
| | | | Notes: svn path=/head/; revision=75579
* Add fmtcheck(), a function for checking consistency of format stringKris Kennaway2001-04-173-2/+355
| | | | | | | | | | | | | | | | | | | | arguments where the format string is obtained from user data, or otherwise difficult to verify statically. Example usage: printf(fmtcheck(user_format, standard_format), arg1, arg2); checks the format string user_format for consistency (same number/order/ type of format operators) with standard_format. If they differ, standard_format is used instead to avoid potential crashes or security violations. Obtained from: NetBSD Reviewed by: -arch Notes: svn path=/head/; revision=75578
* mdoc(7) police: add missing .El call.Ruslan Ermilov2001-04-161-0/+1
| | | | Notes: svn path=/head/; revision=75544
* mdoc(7) police: fix markup.Ruslan Ermilov2001-04-161-5/+5
| | | | Notes: svn path=/head/; revision=75543
* Grammar police: "its", not "it's", is the possessive form of "it".Dima Dorfman2001-04-152-2/+2
| | | | Notes: svn path=/head/; revision=75531
* Make links from setresuid.2 to getresgid.2 and getresuid.2.Dima Dorfman2001-04-151-1/+1
| | | | Notes: svn path=/head/; revision=75530
* Document getresgid and getresuid calls.Dima Dorfman2001-04-151-2/+21
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=75529
* Correct a bogus cast in acl_get_qualifier() causing invalidChris D. Faulhaber2001-04-151-1/+1
| | | | | | | | | ID's to be stored in the ACL. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=75526
* Add ``RETURN VALUES'' and ``ERRORS'' sections since getpgid(2) canDima Dorfman2001-04-141-1/+18
| | | | | | | | | fail. Also fix a minor grammar nit (it's -> its). PR: 26520 Notes: svn path=/head/; revision=75502
* Add acl_get_perm_np(3), a non-portable function to check if aChris D. Faulhaber2001-04-133-0/+114
| | | | | | | | | | | permission is in a permission set, required for third-party applications such as Samba. Reviewed by: rwatson Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=75492
* Add the remaining POSIX.1e ACL definitions:Chris D. Faulhaber2001-04-131-3/+0
| | | | | | | | | | ACL_UNDEFINED_TAG, ACL_UNDEFINED_ID, ACL_FIRST_ENTRY, ACL_NEXT_ENTRY Reviewed by: rwatson Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=75490
* Revamp acl_create_entry() so it actually works.Chris D. Faulhaber2001-04-111-18/+1
| | | | | | | Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=75434
* Correct the following defines to match the POSIX.1e spec:Chris D. Faulhaber2001-04-111-6/+6
| | | | | | | | | | | ACL_PERM_EXEC -> ACL_EXECUTE ACL_PERM_READ -> ACL_READ ACL_PERM_WRITE -> ACL_WRITE Obtained from: TrustedBSD Notes: svn path=/head/; revision=75404
* To be consistent, use the __weak_reference macro from <sys/cdefs.h>Daniel Eischen2001-04-105-37/+39
| | | | | | | | | | | instead of #pragma weak to create weak definitions. This macro is improperly named, though, since a weak definition is not the same thing as a weak reference. Suggested by: bde Notes: svn path=/head/; revision=75368
* Include <unistd.h> so that read(2) and write(2) don't cause warnings.Daniel Eischen2001-04-101-1/+2
| | | | Notes: svn path=/head/; revision=75367
* Fix a comment within a comment warning due to a missing "*/".Daniel Eischen2001-04-101-1/+1
| | | | Notes: svn path=/head/; revision=75366
* The maximum RPC message size was set at 8k for UDP. This is lowerIan Dowse2001-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> Notes: svn path=/head/; revision=75314
* Mention that locks are inherited across an exec.Dima Dorfman2001-04-081-0/+6
| | | | | | | | PR: 24802 Submitted by: Kenneth Ingham <ingham@i-pi.com> Notes: svn path=/head/; revision=75313
* Install links to extattr_(get|set|delete)_fd.2 (from extattr_get_file.2).Dima Dorfman2001-04-081-2/+5
| | | | Notes: svn path=/head/; revision=75307
* mdoc(7) police: add missing LIBRARY section.Ruslan Ermilov2001-04-059-0/+18
| | | | Notes: svn path=/head/; revision=75224
* Unbreak world.Ruslan Ermilov2001-04-051-1/+1
| | | | | | | Submitted by: jhay Notes: svn path=/head/; revision=75223
* Record -lposix1e merge with -lc.Ruslan Ermilov2001-04-0526-26/+26
| | | | Notes: svn path=/head/; revision=75222
* mdoc(7) police rev 1.11: convert descriptions and cross-referencesRuslan Ermilov2001-04-051-64/+32
| | | | | | | for the ACL editing library functions to the plain tagged list. Notes: svn path=/head/; revision=75220
* - Add descriptions and cross-references for the ACL editing libraryChris D. Faulhaber2001-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 Notes: svn path=/head/; revision=75211
* Install the acl_create_entry.3 man pageChris D. Faulhaber2001-04-051-0/+1
| | | | Notes: svn path=/head/; revision=75209
* Document the extattr_(get|set|delete)_fd calls, and add a note warningDima Dorfman2001-04-051-4/+52
| | | | | | | | | people that these calls are likely to change in the future. Reviewed by: rwatson Notes: svn path=/head/; revision=75206
* Activate build of posix1e extensions in libc and libc_r that have beenThomas Moestl2001-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 Notes: svn path=/head/; revision=75188
* Add entries for the posix1e functions that will be overridden in libc_r.Thomas Moestl2001-04-042-0/+12
| | | | | | | | Approved by: rwatson Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=75186
* Prepare for the inclusion of libposix1e into libc: retire the oldThomas Moestl2001-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 Notes: svn path=/head/; revision=75185
* mdoc(7) police: add missing .Pa call.Ruslan Ermilov2001-04-041-1/+3
| | | | Notes: svn path=/head/; revision=75158
* Fix some very broken code in __nc_error() that implements per-threadIan Dowse2001-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> Notes: svn path=/head/; revision=75146
* Remove some hacks that were apparently added to avoid problems withIan Dowse2001-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> Notes: svn path=/head/; revision=75144
* There were a few error cases where the RPC code would return withIan Dowse2001-04-022-1/+5
| | | | | | | | | all signals masked (whoops). Add the missing cleanup code. Reviewed by: Martin Blapp <mb@imp.ch>, alfred Notes: svn path=/head/; revision=75097
* Move the #includes of reentrant.h to after the `#include "namespace.h"',Ian Dowse2001-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 Notes: svn path=/head/; revision=75094
* Hook the extattr_get_file.2 manual page into the build. Add MLINKSDima Dorfman2001-04-011-1/+3
| | | | | | | for extattr_set_file.2 and extattr_delete_file.2. Notes: svn path=/head/; revision=75076
* A manual page for the extattr_get_file, extattr_set_file, andDima Dorfman2001-04-011-0/+154
| | | | | | | | | | extattr_delete_file system calls. Reviewed by: rwatson, ru Approved by: nik Notes: svn path=/head/; revision=75075
* mdoc(7) police: LIBRARY should be before SYNOPSIS.Ruslan Ermilov2001-03-291-2/+2
| | | | Notes: svn path=/head/; revision=74989
* Correct function name: acl_clear_perm -> acl_clear_permsChris D. Faulhaber2001-03-291-2/+2
| | | | Notes: svn path=/head/; revision=74973
* Catch up with a comment that changed in rev1.73 of mount.hBen Smithurst2001-03-291-1/+1
| | | | | | | | PR: 25836 Submitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=74971
* Mostly pick up OpenBSD's rev 1.14 by deraadt@ and millert@.Peter Wemm2001-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. Notes: svn path=/head/; revision=74963
* The f_syncreads and f_asyncreads entries are missing from the man page.Poul-Henning Kamp2001-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> Notes: svn path=/head/; revision=74952
* OpenBSD's g_Ctoc() returned a false error when the target buffer wasPeter Wemm2001-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. Notes: svn path=/head/; revision=74921
* Fix g_Ctoc() interface, approximately based on OpenBSD's recent changes.Peter Wemm2001-03-281-14/+36
| | | | | | | | | | Also, set gl_pathv to NULL after we free it, especially when dealing with realloc failures. Obtained from: OpenBSD Notes: svn path=/head/; revision=74918
* o De-uglify IMPLEMENTATION NOTES section by removing unnecessary use ofRobert Watson2001-03-281-2/+1
| | | | | | | .Fx Notes: svn path=/head/; revision=74888