summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix some issues with ACL handling:kientzle2004-04-065-53/+89
| | | | | | | | | | * ACL storage is no longer erased before a group of entries are added. * ACL text creation no longer tries to skip over non-existent text. * UTF8 encoder no longer blows up on invalid wide characters. * Fixed ACL state management for default ACLs. Also, publicize function for obtaining text-format ACL in various formats. The interface is now extensible through a "flags" argument that allows you to select a variant format.
* Prepare to handle state-dependent encodings. This mainly involves nottjr2004-04-0612-71/+87
| | | | | taking shortcuts when it comes to storing and passing around conversion states.
* Add a missing "*errp = h_errno" forgotten in rev 1.36.pb2004-04-061-1/+2
|
* Update .Dd value.dfr2004-04-061-1/+1
| | | | Reminded by: ru
* Overhauled ACL support. This makes us compatiblekientzle2004-04-0521-194/+1239
| | | | | | | | | | | | with 'star' ACL handling, though there's still a bit more work needed in this area. Added 'write_open_fd' and 'read_open_fd' to simplify, e.g., tar's u and r modes. Eliminated old 'write_open_file_position' as a bad idea. (It required closing/reopening files to do updates, which led to unpleasant implications.) Various other minor fixes, API tweaks, etc.
* Fix _dns_ghbyname() to return NS_TRYAGAIN instead of NS_NOTFOUNDpb2004-04-051-4/+12
| | | | | | | | | on temporary nameserver failure. This is necessary to get getipnodebyname(3) to correctly return h_errno=TRY_AGAIN instead of HOST_NOT_FOUND. Reviewed by: green, thomas MFC after: 1 week
* Document lgetfh(2).dfr2004-04-052-5/+22
|
* Remove support for emulating mbrtowc() and wcrtomb() in terms of thetjr2004-04-044-89/+4
| | | | old rune interface now that it is no longer needed.
* Reimplement the GB18030 encoding method using the new-style (mbrtowc()/tjr2004-04-041-123/+137
| | | | wcrtomb()) interface.
* Reimplement the deprecated UTF2 encoding method using the UTF-8 codetjr2004-04-041-104/+97
| | | | | as a base. mbrtowc() and wcrtomb() are now implemented directly instead of being emulatedi with sgetrune() and sputrune().
* Unbreak natd.deischen2004-04-021-0/+1
| | | | Reported and submitted by: Sean McNeil (sean at mcneil.com)
* Simplify one condition in prev. commit:ache2004-04-011-2/+1
| | | | short_too already assumes FLAG_LONGONLY
* Fix parsing of ambiguous options, whole loop must be processedache2004-04-011-17/+27
|
* The previous commit changed the behavior of nsdispatch() in thenectar2004-04-011-3/+1
| | | | | | | | | | | | | | case where an /etc/nsswitch.conf file was present, but could not be opened (e.g. due to permissions). Previously, the open failure condition was suppressed, and the built-in defaults were used. In revision 1.11, however, propagated the open failure causing all nsdispatch() invocations to return NS_UNAVAIL, and thus many APIs including getpwnam and gethostbyname unconditionally failed. This commit restores the previous behavior. Pointy hat: nectar (+1 for obstinance; ache had to use clue bat) Reported by: ache
* Raise WARNS level to 2.des2004-03-311-0/+1
|
* Deal with aliasing warnings.des2004-03-314-181/+63
| | | | | Reviewed by: ru Approved by: silence on the lists
* Merge of libpcap 0.8.3 from tcpdump.org.bms2004-03-311-4/+10
|
* Fix Yet Another 16 byte stack alignment bug. Thankfully, this one ispeter2004-03-312-10/+10
| | | | | | | | | | | solved by a simple 'make world'. The signalcontext function was going to the trouble of generating an even 16 byte alignment, but in fact it needed to be odd aligned to simulate the 8-byte return address having been pushed by the caller. This fixes yet another group of crashes in applications using libpthread. And yet again, it was my fault all along. While here, rename the duplicate internal ctx_wrapper() functions to makectx_wrapper() and sigctx_wrapper() so that traces aren't ambiguous.
* When a dynamic NSS module is built and linked against a threadnectar2004-03-303-23/+43
| | | | | | | | | | | | | library, it may pull in that thread library at run time. If the process started out single-threaded, this could cause attempts to release locks that do not exist. Guard against this possibility by checking __isthreaded before invoking thread primitives. A similar problem remains if the process is linked against one thread library, but the NSS module is linked against another. This can only be avoided by careful design of the NSS module. Submitted by: Sean McNeil <sean@mcneil.com> (mostly; bugs are mine)
* MFi386: WARNS=4 clean.nyan2004-03-301-7/+7
|
* Add cross-references to isideogram(3), isphonogram(3), isrune(3),tjr2004-03-301-1/+6
| | | | isspecial(3) and wctype(3).
* Add basic manual pages for isideogram(), isphonogram(), isrune()tjr2004-03-305-1/+235
| | | | and isspecial().
* Trim cross-references.tjr2004-03-301-15/+2
|
* Document the isnumber() and ishexnumber() functions, and explain how theytjr2004-03-302-13/+34
| | | | differ (at least in theory) from isdigit() and isxdigit().
* Down to WARNS=2 for a while.kuriyama2004-03-301-1/+1
|
* Make libdisk WARNS=4 clean.kuriyama2004-03-306-26/+31
| | | | Glanced by: jhb
* Remove duplicate MLINK.tjr2004-03-291-1/+1
|
* o Also check that the mutex type is not less than the minimum allowable value.mtm2004-03-291-2/+3
| | | | o Don't check attribute for NULL. It's the callers responsibility.
* Make the minimum implementation of pthread_kill conform to themtm2004-03-291-0/+13
| | | | | | | functionality spelled out in SUSv3. o Signal of 0 means do everything except send the signal o Check that the signal is not invalid o Check that the target thread is not dead/invalid
* o Don't explicitly check the thread for NULL. That is the caller'smtm2004-03-291-6/+10
| | | | | responsibility. o If a thread is not joinable, the correct return value is EINVAL.
* o If a thread is marked as detached AND on the dead threads listmtm2004-03-291-3/+3
| | | | | | the correct return value is ESRCH. o Don't check the attribute for NULL. It's the caller's responsibility. o Make the bitwise comparison explicit.
* If a condition variable is statically initialized don't returnmtm2004-03-291-2/+6
| | | | an error. Return successfully without doing anything.
* The thread suspend function now returns ETIMEDOUT, not EAGAIN.mtm2004-03-292-3/+2
|
* o Remove more references to SIGTHRmtm2004-03-292-58/+0
| | | | o Remove clock resolution information left over from libc_r
* Remove the garbage collector thread. All resources are freedmtm2004-03-287-244/+44
| | | | | in-line. If the exiting thread cannot release a resource, then the next thread to exit will release it.
* Fix a warning: compare u_long ps_strings to 0 instead of NULL.schweikh2004-03-281-1/+1
|
* o Since we're not using signals for thread synchronization anymore,mtm2004-03-272-34/+17
| | | | | | | | sigprocmask no longer needs to be wrapped. o raise(3) is applied to the calling thread in a threaded program. o In the sigaction wrapper reference the correct structure. o Don't treat SIGTHR especially anymore (infact it won't exist in a little while).
* Stop using signals for synchronizing threads. The performance penaltymtm2004-03-275-24/+9
| | | | was too much.
* Recognize the "rune" character class in wctype().tjr2004-03-272-6/+8
|
* o The mutex locking functions aren't normally cancellation points. But,mtm2004-03-261-3/+12
| | | | | | | we still have to DTRT when an asynchronously cancellable thread is cancelled while waiting for a mutex. o While dequeueing a waiting mutex don't skip a thread if it has a cancel pending. Only skip it if it is also async cancellable.
* o Initialize a local variable before referencing it. This was notmtm2004-03-261-1/+4
| | | | | | | | | the cause of any bugs because it is *always* indirectly set in the for...loop, but better to be explicit about it. o Check the magic number of the passed in thread only after it has been found in the active thread list. Otherwise, if the check is done at the very beginning we may end up pointing to garbage if the thread was once a valid thread, but has now been destroyed.
* Document that kvm_open(3) also accepts "/dev/null" as a specialru2004-03-261-4/+15
| | | | | "corefile" argument, to access the running system via sysctl(3) if possible, thus not requring special setgid privileges.
* Document that libkvm also uses /dev/kmem, to access KVM.ru2004-03-261-3/+7
|
* Document the existence of NET_RT_IFMALIST.bms2004-03-251-0/+7
| | | | Reviewed by: ru
* [troff] removed the unnecessary use of \_ escapes.ru2004-03-251-96/+96
|
* Add locking so that arc4random(3) functions are all reentrant forgreen2004-03-241-10/+54
| | | | | | pthreads. Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
* mdoc fixeskientzle2004-03-231-2/+2
|
* Just use autoconf-compatible feature macros; don't try to be clever.kientzle2004-03-222-4/+9
|
* Document incorrect handling of multibyte characters.tjr2004-03-211-1/+7
|
* Adjust stack alignment so that when the 'call xxx' functions arepeter2004-03-212-0/+4
| | | | | gathered into the middle of the _init and _fini sections, they get executed with their expected stack alignment.
OpenPOWER on IntegriCloud