summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* o Rename "namespace" argument to "attrnamespace" as namespace is a C++Robert Watson2001-03-192-14/+14
| | | | | | | | | | reserved word. Submitted by: jkh Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=74436
* o Rename "namespace" argument to "attrnamespace" as namespace is a C++Robert Watson2001-03-191-2/+3
| | | | | | | | | | | reserved word, causing breakage when a C++ program included libutil.h This change will be propagated elsewhere shortly. Submitted by: jkh Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=74435
* Add the following POSIX 1003.1e functions and man pages:Chris D. Faulhaber2001-03-1910-2/+750
| | | | | | | | | | | | o acl_calc_mask(): calculates the ACL mask entry associated with the given ACL. o acl_delete_entry(): remove a specified ACL entry from the given ACL. Approved by: rwatson Notes: svn path=/head/; revision=74432
* Libraries should _never_ call exit() themselves (or its alternate spellingDavid E. O'Brien2001-03-189-33/+33
| | | | | | | | | | | | | | `err()'). libdisk does! and additionally libdisk gets confused on Alpha disks with foreign disklabels, throws up its hands and exits. This is the cause of the "going no where without my init" install bug on the Alpha. So now on the Alpha, rather than call err(), we print the error string and continue processing. Submitted by: jkh Notes: svn path=/head/; revision=74426
* Fix typo in the commentAndrey A. Chernov2001-03-181-1/+1
| | | | Notes: svn path=/head/; revision=74414
* Relax local FreeBSD restrictions on 3 chars abbrev. name length and %c formatAndrey A. Chernov2001-03-185-37/+37
| | | | | | | | | | | | | | | since they not allows POSIXly legal locale data. Currently, if relaxed form POSIXly legal locale data will be used right now, some programs will be broken, but it means that either locale data or programs must be fixed, not the library. Introduce non-standard md_order (month/day order) locale field to be used later via nl_langinfo(). Currently %EF and %Ef emulated using this field, but they planned for remove in future in favour of nl_langinfo() test field. Implement %F per POSIX Notes: svn path=/head/; revision=74412
* Make 'A' and 'a', 'B' and 'b' the same, per POSIXAndrey A. Chernov2001-03-181-26/+16
| | | | Notes: svn path=/head/; revision=74409
* Nuke non-standard EAI_RESNULL.Hajimu UMEMOTO2001-03-172-13/+0
| | | | Notes: svn path=/head/; revision=74393
* Fix some further style nitsBrian Somers2001-03-171-8/+11
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=74386
* Add a new entrypoint to the hashes in libmd:Poul-Henning Kamp2001-03-1710-14/+114
| | | | | | | | | | | | char * FooFileChunk(const char *filename, char *buf, off_t offset, off_t length) Which only hashes part of a file. Implement FooFile() in terms of this function. Submitted by: roam Notes: svn path=/head/; revision=74385
* Fix type-oMatthew Dillon2001-03-161-1/+1
| | | | | | | Submitted by: okazaki Notes: svn path=/head/; revision=74369
* Bump MAX_GLOBENTRIES up to 16384, so it is a power of two. AddJonathan Lemon2001-03-161-1/+7
| | | | | | | | | some comments explaining that this is an arbitrary limit. Requested by: jkh Notes: svn path=/head/; revision=74357
* mdoc(7) police: ``It'' macro does not take argument in -enum lists.Ruslan Ermilov2001-03-161-2/+2
| | | | | | | | | | (In -mdocNG, this only causes warning. In current implementation, it is fatal.) Pointy hat to: markm (for not checking stderr) Notes: svn path=/head/; revision=74339
* Correct descriptions of SOCK_RDM and SOCK_SEQPACKET.Dima Dorfman2001-03-161-2/+2
| | | | | | | | | PR: 25797 Submitted by: Yuko Sasaki <yuko@veltec.co.jp> Approved by: nik Notes: svn path=/head/; revision=74318
* Correct spelling of MNT_ASYNC.David Malone2001-03-151-2/+2
| | | | | | | | PR: 25835 Submitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=74309
* Limit the number of paths that glob can return to MAX_GLOBENTRIES, whichJonathan Lemon2001-03-151-0/+7
| | | | | | | | | | is currently set to 10000. This is intended to prevent glob from running amok when a highly recursive path is provided (such as "../*/../*/../*/...") Reviewed by: Diane Bruce <db@db.net>, jhb Notes: svn path=/head/; revision=74307
* Mention that MAXHOSTNAMELEN includes space for the NUL.Brian Somers2001-03-151-0/+2
| | | | Notes: svn path=/head/; revision=74289
* Actually commit the new version of trimdomain *blush*Brian Somers2001-03-151-70/+80
| | | | | | | Thanks for covering my blunder to: peter Notes: svn path=/head/; revision=74288
* o To support new EA interface with explicit namespaces, introduce twoRobert Watson2001-03-154-3/+155
| | | | | | | | | | | | | | utility functions which convert between string namespace names and numeric constants used by the interface. Right now, two namespaces are supported, EXTATTR_NAMESPACE_SYSTEM ("system") and EXTATTR_NAMESPACE_USER ("user"). These functions are used by various userland EA utilities, rather than hard coding the routines all over the place. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=74274
* Make tdelete(3), tfind(3), and twalk(3) links to tsearch(3).Dima Dorfman2001-03-151-0/+1
| | | | | | | Approved by: nik Notes: svn path=/head/; revision=74268
* It would help if trimdomain.c was actually committed. This is a stopgapPeter Wemm2001-03-151-0/+105
| | | | | | | | | world-unbreaker until Brian Somers commits the one he intended to. Pointy Hat to: brian Notes: svn path=/head/; revision=74266
* Move trimdomain() into it's own source file and tidy things up a bit.Brian Somers2001-03-142-61/+5
| | | | | | | | | Fix disorder in the Makefile. Reviewed (mostly) by: bde Notes: svn path=/head/; revision=74261
* MAXHOSTNAMELEN includes space for the NULBrian Somers2001-03-141-4/+4
| | | | | | | | | | Don't read past the end of the host passed to realhostname() Not objected to by: freebsd-audit Interface disliked by: imp Notes: svn path=/head/; revision=74260
* o Update copyright dates.Robert Watson2001-03-1320-196/+214
| | | | | | | | | | | o Rename internal library functions so that they are prefixed with _posix1e or _POSIX1E, removing them from the application namespace (and potential conflict with other ACL functions elsewhere in the system). Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=74191
* Document the rest of the possible return codes.Dima Dorfman2001-03-131-0/+12
| | | | | | | | PR: 25188 Approved by: nik Notes: svn path=/head/; revision=74188
* .St -p1003.1g -> .St -p1003.1g-2000.Ruslan Ermilov2001-03-123-4/+4
| | | | Notes: svn path=/head/; revision=74173
* Updates for Blowfish password hashing.Mark Murray2001-03-111-1/+1
| | | | Notes: svn path=/head/; revision=74107
* Add OpenBSD-style blowfish password hashing. This makes one lessMark Murray2001-03-114-7/+23
| | | | | | | | | | | | | gratuitous difference between us and our sister project. This was given to me _ages_ ago. May apologies to Paul for the length of time its taken me to commit. Obtained from: Niels Provos <provos@physnet.uni-hamburg.de>/OpenBSD Submitted by: Paul Herman <pherman@frenchfries.net> Notes: svn path=/head/; revision=74106
* In theory it would be perfectly legal for a system administrator toBill Fumerola2001-03-101-1/+1
| | | | | | | | | | | # cd /dev && ./MAKEDEV pty0 pty3 and/or # rm -rf /dev/ptyp0 and expect all programs that use openpty() to still try to find available ptys. Notes: svn path=/head/; revision=74068
* Correct a race condition where it was possible for a signaledDaniel Eischen2001-03-093-6/+24
| | | | | | | | | | | thread to become stranded and not placed in the run queue. MFC Candidate Reported by: tegge Notes: svn path=/head/; revision=74038
* This is the getsid() we are talking about, not setsid().Ruslan Ermilov2001-03-091-1/+1
| | | | | | | | PR: docs/25626 Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp> Notes: svn path=/head/; revision=74021
* Submitted by: Ian Dowse <iedowse@maths.tcd.ie>, David Cross <dec@freebsd.org>David E. Cross2001-03-082-0/+2
| | | | | | | | | | | | | | | | Reviewed by: David Cross <dec@freebsd.org>, jkh <jkh@freebsd.org> Approved by: jkh <jkh@freebsd.org> Obtained from: Ian Dowse <iedowse@maths.tcd.ie>, David Cross <dec@freebsd.org> We have been running this patch on a production NIS server for 2.5 weeks now. Normally we would have ypserv die at least once a week, and often many times a day. This patch treats and error from select as zeroing out the FD_SET to indicate that no fds are ready for reading. This is safe because the rpc code always re-inits the FDSET before calling select. Notes: svn path=/head/; revision=73991
* Don't remember an EINTR, since the caller may want to restart the call.Dag-Erling Smørgrav2001-03-071-2/+4
| | | | Notes: svn path=/head/; revision=73934
* Support lower-case versions of the proxy environment variables.Dag-Erling Smørgrav2001-03-073-3/+13
| | | | | | | PR: bin/25494 Notes: svn path=/head/; revision=73932
* A quick and dirty port of libstand to ia64.Doug Rabson2001-03-063-0/+161
| | | | Notes: svn path=/head/; revision=73887
* Use relative paths to find byte_swap_*.S to make it easier to use theseDoug Rabson2001-03-064-4/+4
| | | | | | | from libstand. Notes: svn path=/head/; revision=73886
* Make this compile. Still need to write/borrow a working setjmp.Doug Rabson2001-03-061-0/+1
| | | | Notes: svn path=/head/; revision=73885
* Use ieee floats on ia64.Doug Rabson2001-03-061-1/+1
| | | | Notes: svn path=/head/; revision=73884
* Use the right format string for printing ULONG_MAX.David Malone2001-03-051-2/+2
| | | | Notes: svn path=/head/; revision=73725
* Fix style nit.David E. O'Brien2001-03-051-1/+1
| | | | Notes: svn path=/head/; revision=73690
* Fix style breakage.David E. O'Brien2001-03-051-0/+1
| | | | Notes: svn path=/head/; revision=73689
* Fix style that got corrupted.David E. O'Brien2001-03-051-17/+17
| | | | Notes: svn path=/head/; revision=73665
* Fix FreeBSD id style breakage from rev 1.17David E. O'Brien2001-03-051-1/+1
| | | | Notes: svn path=/head/; revision=73663
* Use our standard .c rcsid format.David E. O'Brien2001-03-051-1/+2
| | | | Notes: svn path=/head/; revision=73655
* Fix copyright breakage in rev 1.2.David E. O'Brien2001-03-051-0/+7
| | | | | | | We *cannot* remove clause #4 from the Univ of California's license. Notes: svn path=/head/; revision=73654
* Correct a comment.David E. O'Brien2001-03-051-1/+1
| | | | Notes: svn path=/head/; revision=73644
* Fix style breakage in rev 1.3David E. O'Brien2001-03-051-0/+1
| | | | Notes: svn path=/head/; revision=73634
* Fix style bug that was introduced.David E. O'Brien2001-03-051-0/+1
| | | | Notes: svn path=/head/; revision=73632
* Change mon_decimal_point from "." to "" (N/A>) as it is specified by POSIX forAndrey A. Chernov2001-03-031-1/+1
| | | | | | | POSIX locale. Notes: svn path=/head/; revision=73387
* Actually implement T_FMT_AMPMAndrey A. Chernov2001-03-021-1/+1
| | | | Notes: svn path=/head/; revision=73360