summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Replace out of date struct statfs definition with a reference to statfs(2).Tim J. Robbins2003-11-211-64/+3
| | | | | | | Approved by: re Notes: svn path=/head/; revision=122936
* Fix problem where initgroups would silently truncate groups withDiomidis Spinellis2003-11-191-2/+7
| | | | | | | | | | more than NGROUP elements without providing the opportunity to setgroups to fail and correctly return error and set errno. MFC after: 2 weeks Notes: svn path=/head/; revision=122899
* Documented missing EINVAL errno valueDiomidis Spinellis2003-11-191-0/+6
| | | | | | | | | | | kern_prot.c: if (ngrp > NGROUPS) return (EINVAL); MFC after: 2 weeks Notes: svn path=/head/; revision=122895
* Install the user trap handlers that libc provides from a constructor, soJake Burkholder2003-11-181-0/+2
| | | | | | | | | | | that they will be installed before application constructors are invoked. Its possible to link applications such that this fails, application code is invoked before they are installed, but, well, Don't Do That. Approved by: re (jhb) Notes: svn path=/head/; revision=122883
* Staticize label_default_head to prevent it from leaking out of mac.c.Robert Watson2003-11-171-1/+1
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=122868
* Declare crc32 static. There's a copy in libz that conflicts for theMarcel Moolenaar2003-11-171-1/+1
| | | | | | | | | crunched binary. Found by: make release Notes: svn path=/head/; revision=122839
* Baby steps. Set WARNS=1 for libc.Jacques Vidrine2003-11-171-0/+1
| | | | Notes: svn path=/head/; revision=122831
* Detect range errors when using the %s specifier. Previously, LONG_MAXJacques Vidrine2003-11-171-3/+10
| | | | | | | | | | was rejected as a range error, while any values less than LONG_MIN were silently substituted with LONG_MIN. Furthermore, on some platforms `time_t' has less range than `long' (e.g. alpha), which may give incorrect results when parsing some strings. Notes: svn path=/head/; revision=122830
* Update mac_set.3 to account for new behavior of mac_set_fd() in theRobert Watson2003-11-161-5/+7
| | | | | | | | | | | context of sockets, and document EINVAL as a possible failure mode based on the object selected, not just the label provided. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=122811
* Implement mac_get_peer(3) using getsockopt() with SOL_SOCKET andRobert Watson2003-11-162-26/+43
| | | | | | | | | | | | | | | | | | | | | SO_PEERLABEL. This provides an interface to query the label of a socket peer without embedding implementation details of mac_t in the application. Previously, sizeof(*mac_t) had to be specified by an application when performing getsockopt(). Document mac_get_peer(3), and expand documentation of the other mac_get(3) functions. Note that it's possible to get EINVAL back from mac_get_fd(3) when pointing it at an inappropriate object. NOTE: mac_get_fd() and mac_set_fd() support for sockets will follow shortly, so the documentation is slightly ahead of the code. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=122810
* Back out last change and go back to using KSE locks instead of threadDaniel Eischen2003-11-162-32/+34
| | | | | | | | | locks until we know why this breaks ia64. Reported by: marcel Notes: svn path=/head/; revision=122801
* Memory allocated by mac_to_text() must be freed using free(3) notRobert Watson2003-11-161-2/+15
| | | | | | | | | | | mac_free(3), which is used only for variables of type mac_t in the FreeBSD implementation. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=122777
* Resync. struct statfs and flag definitions with sys/mount.h.Tim J. Robbins2003-11-161-22/+57
| | | | Notes: svn path=/head/; revision=122776
* Replace all uses of the old netgraph constants NG_*LEN by the newHartmut Brandt2003-11-153-55/+55
| | | | | | | | | constants NG_*SIZ that include the trailing NUL byte. This change is mostly mechanical except for the replacement of a couple of snprintf() and sprintf() calls with strlcpy. Notes: svn path=/head/; revision=122758
* Remove debugging printf that crept into the last commit.Robert Watson2003-11-151-1/+0
| | | | Notes: svn path=/head/; revision=122735
* /etc/mac.conf is implicitly read and parsed when the MAC configurationRobert Watson2003-11-151-20/+6
| | | | | | | | | | | | | | is accessed for the first time as a result of an application looking up label configuration information. Previously, the check and read were kicked off by mac_prepare_(typename)() functions; since mac_prepare_type() may now be directly employed by a user process, push the check and initialization into that function. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=122732
* Update cross references after utf2/euc move.Tim J. Robbins2003-11-1510-18/+18
| | | | Notes: svn path=/head/; revision=122730
* Remove section 4 versions of these manual pages, they have beenTim J. Robbins2003-11-152-232/+0
| | | | | | | moved into section 5. Notes: svn path=/head/; revision=122728
* Install the section 5 versions of EUC and UTF2 manual pages instead ofTim J. Robbins2003-11-151-2/+1
| | | | | | | the section 4 versions. Notes: svn path=/head/; revision=122727
* Update the EUC and UTF2 manual pages for their new home in section 5.Tim J. Robbins2003-11-152-2/+2
| | | | | | | These have been repo-copied from euc.4 and utf2.4. Notes: svn path=/head/; revision=122724
* Add the userland part of the NET_RT_IFMALIST sysctl MIB. A new function,Bruce M Simpson2003-11-143-2/+322
| | | | | | | | | getifmaddrs(), is added to retrieve current multicast group memberships. Reviewed by: harti Notes: svn path=/head/; revision=122687
* u_int8_t cannot carry a number greater than 255.Hajimu UMEMOTO2003-11-141-3/+1
| | | | | | | Reported by: nectar Notes: svn path=/head/; revision=122682
* Use the new defines that include the trailing '\0' in the code.Hartmut Brandt2003-11-144-21/+27
| | | | | | | | | | Replace occurences of the magic constant 2 with an offsetof macro call that computes the size of the leading members of the sockaddr. Use strlcpy instead of sprintf where appropriate. Document the new changes in the man page. Notes: svn path=/head/; revision=122649
* - Add documentation for EBUSY.Alan Cox2003-11-141-2/+4
| | | | | | | | - Remove EIO. - Add a cross reference to mlock(2). Notes: svn path=/head/; revision=122647
* - Use the magic for ___sigreturn in __sigset.Jeff Roberson2003-11-141-3/+11
| | | | | | | | | | | - In __sigreturn call sigprocmask() to restore our signal state rather than returning through sigreturn(). jmp to ___sigreturn to restore our register state following this. Requested by: pete Notes: svn path=/head/; revision=122633
* Add an empty definition of the MIBS variable so that the makefile doesHartmut Brandt2003-11-131-0/+1
| | | | | | | | | not try to use a MIBS definition from the environment. Submitted by: Joe Marcus Clarke <marcus@marcuscom.com> Notes: svn path=/head/; revision=122611
* Fix on sparc64.Maxim Sobolev2003-11-121-1/+1
| | | | | | | | Reported by: rwatson/tinderbox MFC after: 2 weeks Notes: svn path=/head/; revision=122589
* Bump the major version on libtuil. libutil now relies on the mac_*Robert Watson2003-11-121-1/+1
| | | | | | | | | | | symbols exported by newer versions of libc, and so we want applications depending on the newer library code to be required to link against the newer libc. Discussed with: scottl, kris, imp Notes: svn path=/head/; revision=122583
* Add a new configuration variable - nas_ipaddr, which if set allows toMaxim Sobolev2003-11-122-8/+47
| | | | | | | | | | | set NAS-IP-Address attribute in requests generated by the pam_radius module. This attribute is mandatory for some Radius servers out there. Reviewed by: des MFC after: 2 weeks Notes: svn path=/head/; revision=122571
* The partition naming on ia64 (e.g. da0p1) cannot be selected basedMarcel Moolenaar2003-11-121-0/+4
| | | | | | | | | | | | | | on whether the parent chunk is of type whole. This also applies to MBR slices for non-GPT disks. Since most of the GPT handling is conditionally compiled, do the same with the partition naming. This fixes a braino that caused slices to be named as GPT partitions and generally messing up an install. Pointy hat: marcel Notes: svn path=/head/; revision=122570
* The snmp_netgraph module depends on libnetgraph. So add a dependency andHartmut Brandt2003-11-122-3/+7
| | | | | | | | | add libnetgraph to the list of prebuilt libraries in the main Makefile. Reviewed by: ru Notes: svn path=/head/; revision=122568
* Use __sfvwrite() instead of __sputc() via __fputwc() to write to fakeTim J. Robbins2003-11-121-1/+30
| | | | | | | | | | | string files (__SSTR flag set). This is necessary because __sputc() does not respect the __SALC flag, and crashes trying to flush the buffer instead of resizing it. PR: 59167 Notes: svn path=/head/; revision=122547
* - Markup fix-ups (add .Dq, and some hard line breaks at the endKen Smith2003-11-111-4/+10
| | | | | | | | | of sentences). Approved by: blackend (mentor) Notes: svn path=/head/; revision=122504
* - Add a note about how jail(2) effects the securelevel.Ken Smith2003-11-111-0/+6
| | | | | | | | Reviewed by: rwatson Approved by: blackend (mentor) Notes: svn path=/head/; revision=122503
* Add information about the EVFILT_NETDEV filterChristian Brueffer2003-11-111-0/+24
| | | | | | | | | PR: docs/56872 (based on) Submitted by: Suleiman Souhlal <refugee@vt.edu> Reviewed by: hmp, jmg Notes: svn path=/head/; revision=122489
* Fix a typo that caused mbrtowc() to always return 0.Tim J. Robbins2003-11-111-1/+1
| | | | Notes: svn path=/head/; revision=122467
* Add a section documenting the sysctl(8) tunables that influence theJoseph Koshy2003-11-111-2/+15
| | | | | | | | operation of ktrace(2). Add a cross-reference to sysctl(8). Make the language of rev 1.22 more consistent with the rest of the manual page. Notes: svn path=/head/; revision=122459
* Improve the performance of radixsort() whenTim Kientzle2003-11-111-0/+11
| | | | | | | | | | | | | | | | sorting strings with common prefixes by noting when all the strings land in just one bin. Testing shows significant speedups (on the order of 30%) on strings with common prefixes and no slowdowns on any of my test cases. Submitted by: Markus Bjartveit Kruger <markusk@pvv.ntnu.no> PR: 58860 Approved by: gordon (mentor) Notes: svn path=/head/; revision=122458
* Have utrace(2) return ENOMEM if malloc() fails. Document this errorJoseph Koshy2003-11-111-4/+6
| | | | | | | | | return in its manual page. Reviewed by: jhb Notes: svn path=/head/; revision=122457
* Fix few typosMaksim Yevmenkin2003-11-111-1/+1
| | | | | | | | Reviewed by: imp, julian, ru Approved by: imp (mentor) Notes: svn path=/head/; revision=122451
* Remove ',' accidentally added after ".Xr fork 2".Guy Helmer2003-11-101-1/+1
| | | | Notes: svn path=/head/; revision=122443
* Prevent abnormal termination of a child daemon process when createdGuy Helmer2003-11-102-3/+35
| | | | | | | | | | | | | by a parent that is a session leader (e.g., login shell) by ignoring SIGHUP in before calling fork(2) and then restoring SIGHUP's action after setsid(3). Based on the patch by Martin Kammerhofer <mkamm@gmx.net>. PR: bin/25462 Reviewed by: bde, alex.neyman@auriga.ru Notes: svn path=/head/; revision=122442
* Fix the build by adjusting the include directives. The problem wasHartmut Brandt2003-11-102-4/+6
| | | | | | | | that the sources use "..." includes to get at include files that later on reside in an include sub-directory. Notes: svn path=/head/; revision=122416
* Link libbsnmp to the build.Hartmut Brandt2003-11-101-1/+1
| | | | Notes: svn path=/head/; revision=122406
* Add build infrastructure for libbsnmp and the modules. Add theHartmut Brandt2003-11-1020-0/+3216
| | | | | | | netgraph module for the SNMP daemon. Notes: svn path=/head/; revision=122405
* Document EINVAL for len == 0.Dag-Erling Smørgrav2003-11-101-1/+1
| | | | Notes: svn path=/head/; revision=122391
* Document KTR_DROP.Joseph Koshy2003-11-101-0/+9
| | | | Notes: svn path=/head/; revision=122388
* If a thread in critical region got a synchronous signal, according currentDavid Xu2003-11-092-0/+4
| | | | | | | | | signal handling mode, there is no chance to handle the signal, something must be wrong in the library, just call kse_thr_interrupt to dump its core. I have the code for a long time, but forgot to commit it. Notes: svn path=/head/; revision=122338
* Use THR lock instead of KSE lock to avoid scheduler be blocked in spinlock.David Xu2003-11-082-34/+32
| | | | | | | Reviewed by: deischen Notes: svn path=/head/; revision=122299
* Virtual addresses in headers of ELF files for dynamic objects needMarcel Moolenaar2003-11-081-6/+9
| | | | | | | to be relocated before they can be used as pointers. Notes: svn path=/head/; revision=122298