summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix prototype for getchar_unlocked().tjr2003-12-071-1/+1
|
* Update with the 4.9 pam modules, and add pam_opieaccess.so to the mix.obrien2003-12-076-289/+330
| | | | Approved by: re(scottl)
* Update with the 4.9 pam modules, and add pam_opieaccess.so to the mix.obrien2003-12-071-0/+1
| | | | Approved by: re(scottl)
* Update with the 4.9 libraries, and add libdevstat.so.2 libmp.so.3obrien2003-12-0723-20311/+20039
| | | | | | libskey.so.2 libusbhid.so.0 libutil.so.3 libvgl.so.2 to the mix. Approved by: re(scottl)
* Apply a second fix for stack alignment with libkse. This time, enter thepeter2003-12-052-4/+4
| | | | | | | | | | | UTS with the stack correctly aligned. Also, while here, use an indirect jump rather than the pushq/ret hack. This fixes threaded apps that use floating point for me, although it hasn't solved all the problems. It is an improvement though. Preservation of the 128 byte red zone hasn't been resolved yet. Approved by: re (scottl)
* "Fix" makecontext() so that the C code begins execution with itspeter2003-12-051-2/+6
| | | | | | | | | | | | | ABI-required stack alignment. C code expects that the push of the return address disturbed the 16 byte alignment and it will take corrective measures to fix it before making another call. Of course, if its wrong to start with, then all hell breaks loose. Essentially we "fix" this by making the stack alignment odd to start with. This was one of the things that broke on libkse with apps that use floating point/varargs/etc. Approved by: re (scottl)
* For the amd64 we need to do some extra stack alignment fixups. Otherwisepeter2003-12-033-6/+27
| | | | | | | | | we can end up with some threads with a non-16-byte-aligned stack. This causes some interesting side effects, including general protection faults leading to a SIGBUS when doing floating point or varargs. This should be just a verbose NOP for the other platforms. Approved by: re (scottl)
* Use dynamic instead of static LDT allocation.mtm2003-12-021-5/+4
| | | | Approved by: re (scottl)
* Fixed a bug in sendfile(2) where the sent data would be corrupted duedg2003-12-011-2/+6
| | | | | | | | | | to sendfile(2) being erroneously automatically restarted after a signal is delivered. Fixed by converting ERESTART to EINTR prior to exiting. Updated manual page to indicate the potential EINTR error, its cause and consequences. Approved by: re@freebsd.org
* Eliminate two pushl by using call instruction directly, this reallydavidxu2003-11-292-4/+2
| | | | | | helps branch predict a lot for INTEL P4. Approved by: re (scottl)
* 1.Macro optimizing KSE_LOCK_ACQUIRE and THR_LOCK_ACQUIRE to use static falldavidxu2003-11-294-198/+62
| | | | | | | | | | | | | | through branch predict as suggested in INTEL IA32 optimization guide. 2.Allocate siginfo arrary separately to avoid pthread to be allocated at 2K boundary, which hits L1 address alias problem and causes context switch to be slow down. 3.Simplify context switch code by removing redundant code, code size is reduced, so it is expected to run faster. Reviewed by: deischen Approved by: re (scottl)
* Remove surplus mmap() call for stack guard page in init_private, it is donedavidxu2003-11-292-50/+0
| | | | | | | | in init_main_thread. Also don't initialize lock and lockuser again for initial thread, it is already done by _thr_alloc(). Reviewed by: deischen Approved by: re (scottl)
* Update with the 4.9 libraries, and add libdevstat.so.2 libmp.so.3obrien2003-11-2915-16561/+17940
| | | | | | libskey.so.2 libusbhid.so.0 libutil.so.3 libvgl.so.2 to the mix. Approved by: scottl
* Do not adjust to the pagesize at runtime. Besides for the one-timemarcel2003-11-281-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initialization overhead, there's a problem in that we never call imalloc() and thus malloc_init() for zero-sized allocations. As a result, malloc(0) returns NULL when it's the first or only malloc in the program. Any non-zero allocation will initialize the malloc code with the side-effect that subsequent zero-sized allocations return a non-NULL pointer. This is because the pointer we return for zero- sized allocations is calculated from malloc_pageshift, which needs to be initialized at runtime on ia64. The result of the inconsistent behaviour described above is that configure scripts failed the test for a GNU compatible malloc. This resulted in a lot of broken ports. Other, even simpler, solutions were possible as well: 1. initialize malloc_pageshift with some non-zero value (say 13 for 8KB pages) and keep the runtime adjustment. 2. Stop using malloc_pageshift to calculate ZEROSIZEPTR. Removal of the runtime adjustment was chosen because then ia64 is the same as any other platform. It is not to say that using a page size obtained at runtime is bad per se. It's that there's currently a high level of gratuity for its existence and the moment it causes problems is the moment you need to get rid of it. Hence, it's not unthinkable that this commit is (partially) reverted some time in the future when we do have a good reason for it and a good way to achieve it. Approved by: re@ (rwatson) Reported by: kris (portmgr@) -- may the ports be with you
* Replace out of date struct statfs definition with a reference to statfs(2).tjr2003-11-211-64/+3
| | | | Approved by: re
* Fix problem where initgroups would silently truncate groups withdds2003-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
* Documented missing EINVAL errno valuedds2003-11-191-0/+6
| | | | | | | | kern_prot.c: if (ngrp > NGROUPS) return (EINVAL); MFC after: 2 weeks
* Install the user trap handlers that libc provides from a constructor, sojake2003-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)
* Staticize label_default_head to prevent it from leaking out of mac.c.rwatson2003-11-171-1/+1
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Declare crc32 static. There's a copy in libz that conflicts for themarcel2003-11-171-1/+1
| | | | | | crunched binary. Found by: make release
* Baby steps. Set WARNS=1 for libc.nectar2003-11-171-0/+1
|
* Detect range errors when using the %s specifier. Previously, LONG_MAXnectar2003-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.
* Update mac_set.3 to account for new behavior of mac_set_fd() in therwatson2003-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
* Implement mac_get_peer(3) using getsockopt() with SOL_SOCKET andrwatson2003-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
* Back out last change and go back to using KSE locks instead of threaddeischen2003-11-162-32/+34
| | | | | | locks until we know why this breaks ia64. Reported by: marcel
* Memory allocated by mac_to_text() must be freed using free(3) notrwatson2003-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
* Resync. struct statfs and flag definitions with sys/mount.h.tjr2003-11-161-22/+57
|
* Replace all uses of the old netgraph constants NG_*LEN by the newharti2003-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.
* Remove debugging printf that crept into the last commit.rwatson2003-11-151-1/+0
|
* /etc/mac.conf is implicitly read and parsed when the MAC configurationrwatson2003-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
* Update cross references after utf2/euc move.tjr2003-11-1510-18/+18
|
* Remove section 4 versions of these manual pages, they have beentjr2003-11-152-232/+0
| | | | moved into section 5.
* Install the section 5 versions of EUC and UTF2 manual pages instead oftjr2003-11-151-2/+1
| | | | the section 4 versions.
* Update the EUC and UTF2 manual pages for their new home in section 5.tjr2003-11-152-2/+2
| | | | These have been repo-copied from euc.4 and utf2.4.
* Add the userland part of the NET_RT_IFMALIST sysctl MIB. A new function,bms2003-11-143-2/+322
| | | | | | getifmaddrs(), is added to retrieve current multicast group memberships. Reviewed by: harti
* u_int8_t cannot carry a number greater than 255.ume2003-11-141-3/+1
| | | | Reported by: nectar
* Use the new defines that include the trailing '\0' in the code.harti2003-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.
* - Add documentation for EBUSY.alc2003-11-141-2/+4
| | | | | - Remove EIO. - Add a cross reference to mlock(2).
* - Use the magic for ___sigreturn in __sigset.jeff2003-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
* Add an empty definition of the MIBS variable so that the makefile doesharti2003-11-131-0/+1
| | | | | | not try to use a MIBS definition from the environment. Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
* Fix on sparc64.sobomax2003-11-121-1/+1
| | | | | Reported by: rwatson/tinderbox MFC after: 2 weeks
* Bump the major version on libtuil. libutil now relies on the mac_*rwatson2003-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
* Add a new configuration variable - nas_ipaddr, which if set allows tosobomax2003-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
* The partition naming on ia64 (e.g. da0p1) cannot be selected basedmarcel2003-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
* The snmp_netgraph module depends on libnetgraph. So add a dependency andharti2003-11-122-3/+7
| | | | | | add libnetgraph to the list of prebuilt libraries in the main Makefile. Reviewed by: ru
* Use __sfvwrite() instead of __sputc() via __fputwc() to write to faketjr2003-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
* - Markup fix-ups (add .Dq, and some hard line breaks at the endkensmith2003-11-111-4/+10
| | | | | | of sentences). Approved by: blackend (mentor)
* - Add a note about how jail(2) effects the securelevel.kensmith2003-11-111-0/+6
| | | | | Reviewed by: rwatson Approved by: blackend (mentor)
* Add information about the EVFILT_NETDEV filterbrueffer2003-11-111-0/+24
| | | | | | PR: docs/56872 (based on) Submitted by: Suleiman Souhlal <refugee@vt.edu> Reviewed by: hmp, jmg
* Fix a typo that caused mbrtowc() to always return 0.tjr2003-11-111-1/+1
|
OpenPOWER on IntegriCloud