summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add back ia64 support that was removed in the last few revisions.peter2002-10-274-1/+31
| | | | I've cloned write_ia64_disk.c from write_i386_disk.c.
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.ume2002-10-261-1/+7
| | | | MFC after: 5 days
* Add & hookup manpage for pthread_attr_get_np(3).phantom2002-10-262-0/+96
| | | | MFC after: 3 days
* Hook uthread_attr_get_np.c to buildphantom2002-10-261-0/+1
|
* Add pthread_attr_get_np() function. This is FreeBSD non-portable POSIX threadsphantom2002-10-261-0/+50
| | | | | | | | | extenston function. It supposed to provide facility to get already created thread's attributes. Looks like it's last thing we need to make JDK's Hotspot building without requirement to have source tree. Reviewed by: deischen MFC after: 3 days
* Be more agresive on arguments' checking.phantom2002-10-261-1/+4
| | | | | OK'ed by: deischen MFC after: 3 days
* - scopeid is u_int32_tume2002-10-251-14/+21
| | | | | | | - strtoul pedant. pointed out by deraadt Obtained from: KAME MFC after: 1 week
* - kill strcpyume2002-10-251-67/+56
| | | | | | | | | | | | | | - port range check need to be done before htons. from deraadt - %d/%u audit - correct bad practice in the code - it uses two changing variables to manage buffer (buf and buflen). we eliminate buflen and use fixed point (ep) as the ending pointer. - use snprintf, not sprintf - pass correct name into q.name. from lukem@netbsd - sync comment Obtained from: KAME MFC after: 1 week
* Use an internal buffer for the result when the first argument is NULL.tjr2002-10-251-0/+4
|
* The ORIENTLOCK macro is no longer needed since all functions usetjr2002-10-251-7/+0
| | | | FLOCKFILE/FUNLOCKFILE explicitly.
* The FTP connection caching needs a better interface -- connections arenjl2002-10-251-0/+4
| | | | | | | | | | | | | closed through _fetch_close() which is the only one who knows the connection REALLY was closed (since ref -> 0). However, FTP keeps its own local cached_connection and checks if it is valid by comparing it to NULL. This is bogus since it may have been freed elsewhere by _fetch_close(). This change checks if we are closing the cached_connection and the ref is 1 (soon to be 0). If so, set cached_connection to NULL so we don't accidentally reuse it. The REAL fix should be to move connection caching to the common.c level (_fetch_* functions) and NULL the cache(s) in _fetch_close(). Then all layers could benefit from caching.
* #ifdef out assignToPartition on non x86 arches to unbreak the worldgallatin2002-10-241-0/+2
| | | | on alpha, sparc64 and ia64
* Restored sigaction's name in its prototype.bde2002-10-241-1/+1
|
* * Modernize aio(4), providing instructions for static and dynamic kernelsheldonh2002-10-247-147/+8
| | | | | | | | | | | | | | linking. * Fix disorder in the SEE ALSO sections of aio_*(2). * Remove unnecessary cross-references from the SEE ALSO sections of aio_*(2); config(8), kldload(8) and kldunload(8) are cross-referenced from aio(4). * Remove the KERNEL OPTIONS sections from aio_*(2), now that these pages cross-reference aio(4), which contains suitable kernel linking reference material.
* Add cross-references to the aio(4) manual page.des2002-10-246-0/+6
| | | | Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Replace wcsstr() with an implementation based on strstr(), which is fartjr2002-10-241-38/+32
| | | | | | more efficient. The problem with the previous implementation was that it calculated the length of the first argument ("big") with wcslen() when it was not necessary.
* Restore Berkeley SCCS id.tjr2002-10-241-1/+5
|
* Remove the Standards section again until we get these functions sortedtjr2002-10-241-8/+0
| | | | out. This will probably have to wait until after 5.0-R.
* Place mac_prepare() with the other mac_prepare*() functions.chris2002-10-241-10/+10
|
* mac_free() no longer accepts a void * parameter; only mac_t's are supposedchris2002-10-241-9/+20
| | | | | | | | to be passed. Point this out in a warning notice, which will eventually go away, sometime between now and -RELEASE. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Remove superfluous empty "FILES" section.chris2002-10-231-1/+0
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Remove hard sentence breaks.chris2002-10-231-11/+19
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* More lobotomy:phk2002-10-238-111/+6
| | | | | | | remove CHUNK_BSD_COMPAT, it was a bad idea, and now its gone. remove DOSPTYP_ONTRACK, missed in OnTrack removal commit. unifdef -DHAVE_GEOM make tst01 compile again.
* Remove another 10 mindless #ifdefs.phk2002-10-231-59/+45
|
* Rely on sysctl kern.disks to be there, and get rid of one of the far toophk2002-10-231-69/+36
| | | | | many lists of disk device driver names in the system. At this point we should really get the names from the XML, but hey...
* Remove unnecessary ioctls tickling kernel side to realize that we fiddledphk2002-10-237-55/+3
| | | | with the disk. GEOM will automatically retaste when we closet he filedesc.
* Untangle #ifdefs in the write-end of things by giving each arch itsphk2002-10-2311-322/+968
| | | | | | | own file and own copy of WriteDisk() to do things in. This should have happened years ago, instead of adding #ifdefs all over the place.
* Separate the struct disklabel filling stuff from the rest of Write_FreeBSD().phk2002-10-231-42/+41
|
* Remove duplicate declaration.markm2002-10-231-1/+0
|
* Make the first argument of getbsize a size_t* instead of an int*, as this is ↵markm2002-10-232-3/+4
| | | | what the quantity actually is. Fix an easy const while I'm here.
* - The GEOM system does not work on pc98.nyan2002-10-231-0/+4
| | | | - Fix to build w/o the HAVE_GEOM option.
* Fix the NetBSD RCS id's on these files; somehow they were initiallytjr2002-10-232-2/+2
| | | | committed with the tags unexpanded.
* Reimplement more efficiently, using a single forward scan (like strrchr(3))tjr2002-10-231-22/+12
| | | | | instead of scanning forwards to find the end of the string then scanning backwards to find the character.
* Reimplement, handling the case where c == L'\0' correctly and fixingtjr2002-10-231-21/+7
| | | | some style(9) bugs.
* Add the new extra argument also in the alpha case.phk2002-10-231-1/+1
|
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.ume2002-10-231-51/+77
| | | | | Obtained from: KAME MFC after: 1 week
* Add a Standards section, claiming conformance to IEEE Std. 1003.1-2001.tjr2002-10-231-1/+17
| | | | | Also add a note to the Bugs section pointing out that strerror() and perror() share the same static buffer.
* Translate to English.des2002-10-231-13/+18
|
* Replace this wcsncpy() implementation with one based on strncpy.c to fixtjr2002-10-231-26/+32
| | | | | | | two major bugs: - off-by-one overflow when the length of the source string exceeds or equals the destination buffer size. - old version was not padding the destination buffer with null wide chars
* If LOGIN_SETMAC is set and MAC is enabled in the kernel, then seerwatson2002-10-231-0/+27
| | | | | | | | | | | | if the user has a 'label' entry in their login class. If so, attempt to set that label on the process as part of the credential setup. If we're unable to parse the label, or unable to set the label, fail. In the future, we may also want to warn if a label is set but the kernel doesn't support MAC. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Use an error message closer to old dumpfs(8) in the case of truncated/nojmallett2002-10-221-1/+1
| | | | | | | | | superblock. Submitted by: kkenn Can't use it verbatim, at least I hate to, as the ", skipped" bit doesn't make much sense in a library, to me.
* Add the concept of a per-disk error string, and a function which prints itjmallett2002-10-226-1/+78
| | | | along with the errno, if one is set.
* remove unused __sys_sigaltstack() declarationfjoe2002-10-221-1/+0
| | | | Approved by: deischen
* Explain to users that they may want to kldload aio.alfred2002-10-227-22/+175
| | | | | | Move Xref sections. Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* No longer needed.phk2002-10-221-18/+0
|
* Rename the libc signal trampoline to __sigtramp to match netbsd. Thisjake2002-10-222-4/+4
| | | | should allow gdb to detect when we're executing in a signal trampoline.
* Remove the last traces of bogus MAKEDEV functionality.phk2002-10-222-24/+0
|
* Reflect MAC kernel/user API changes into the libc MAC implementation.rwatson2002-10-227-247/+398
| | | | | | | | | | | | This removes a lot of complexity, since we basically just reserve space on a retrieval of a label, and pass around strings. Two new elements: (1) consumers of the API must now declare what label elements they are interested in retrieving, or (2) rely on the default provided in a new configuration file, mac.conf. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Live with it: I had hoped to find a neat way to deal with all the magicphk2002-10-221-2/+9
| | | | numbers, but so far havn't come up with anything: Add an #ifdef PC98.
* Avoid a lot of #ifdef PC98 code by giving a couple of the Chunk functionsphk2002-10-225-56/+3
| | | | an extra argument for all archs.
OpenPOWER on IntegriCloud