summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Add ISO C90 Amd. 1 btowc(3) and wctob(3) functions.tjr2002-08-034-2/+167
|
* Correct use of Nm macro in NAME section and a broken cross reference.tjr2002-08-031-2/+3
|
* Return errno provided by fopen, not always ENOENT.ache2002-08-031-10/+10
| | | | | Return EFTYPE instead of EINVAL for wrong locale file format. Whitespaces.
* Check encoding for ".", ".." and / insideache2002-08-031-1/+5
|
* Return EINVAL for NULL or too long encoding, not EFAULTache2002-08-031-1/+1
|
* Return ENAMETOOLONG for long PATH_LOCALE, not EFAULTache2002-08-031-1/+1
|
* 1) Use errno to indicate faulure reason.ache2002-08-031-44/+89
| | | | | | | | | | 2) Move incomplete check for / in locale name from env section to loadlocale(), add check for "." and ".." too. It allows to check any argument, not env only. 3) Redesing LOAD_CATEGORY macro to eliminate code duplication. 4) Try harder in fallback code: if old locale can't be restored, load "C" locale 5) White space formatting, long lines, etc.
* Add ISO C90 Amd. 1 wctype(3) and iswctype(3) functions.tjr2002-08-033-2/+179
|
* Introduce support for Mandatory Access Control and extensiblerwatson2002-08-0218-2/+1878
| | | | | | | | | | | | | | kernel access control. Extensions to libc to provide basic MAC label manipulation facilities for userland. These interface will be replaced in the next month or two with more flexible interfaces, but provide sufficient support to allow use of the Biba and MLS policies for user applications. libc_r wrappers to follow. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Sligtly modify previous out-of-bounds fix: just break instead ofache2002-08-021-1/+1
| | | | | return(NULL) for upward compatibility with more LC_* categories may be implemented in future.
* De-gccize CFLAGS by removing it.rwatson2002-08-021-2/+0
| | | | | | NOMAN is no longer required when a man page is not yet present. Submitted by: ru
* Remove an #include <syslog.h>. It's already included conditionallymux2002-08-021-1/+0
| | | | | | above, as it should be. Submitted by: Olivier Houchard <cognet@ci0.org>
* Hook up libugidfw to the build.rwatson2002-08-021-2/+2
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Introduce support for Mandatory Access Control and extensiblerwatson2002-08-023-0/+785
| | | | | | | | | | | | | | | | | | | kernel access control. Provide a library to manage user file system firewall-like rules supported by the mac_bsdextended.ko security model. The kernel module exports the current rule set using sysctl, and this library provides a front end that includes support for retrieving and setting rules, as well as printing and parsing them. Note: as with other userland components, this is a WIP. However, when used in combination with the soon-to-be-committed ugidfw, it can actually be quite useful in multi-user environments to allow the administrator to limit inter-user file operations without resorting to heavier weight labeled security policies. Obtained form: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Prevent out of bounds writting for too many slashes case.ache2002-08-021-14/+10
| | | | | | Replace strnpy + ='\0' with strlcpy MFC after: 1 day
* The fix applied to the XDR decoder in revision 1.11 was incorrect.nectar2002-08-011-1/+1
|
* Fix an easy warning in a local addition.markm2002-08-011-1/+1
|
* Stash various networking paramters in the environment for the kerneljake2002-07-311-1/+15
| | | | to pick up, ala pxe.
* Sort headers to reduce diffs between branches.nectar2002-07-311-1/+1
|
* some dolt forgot to add in an include for <limits.h>darrenr2002-07-311-0/+1
|
* Patch to fix bounds checking/overflow.darrenr2002-07-311-3/+4
| | | | Obtained from: OpenBSD
* Grammar (`was' -> `were')chris2002-07-311-1/+1
|
* Since pam_get_authtok(3) doesn't know about our options structure, settingdes2002-07-301-10/+11
| | | | | | | | the PAM_ECHO_PASS option on-the-fly is a NOP (though it wasn't with the old pam_get_pass(3) code). Instead, call pam_prompt(3) directly. This actually simplifies the code a bit. MFC after: 3 days
* Update docs to reflect change in count of procs reserved for rootsilby2002-07-302-2/+2
| | | | | | | | from 1 to 10. PR: kern/40515 Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> MFC after: 1 day
* Drop support for COPY, -c has been the default mode of install(1)ru2002-07-2916-19/+19
| | | | | | for a long time now. Approved by: bde
* Revert part of revision 1.10, as it broke portmap lookups for IPv4iedowse2002-07-261-9/+3
| | | | | | | | | | | | | TCP clients. The problem was that a struct netconfig returned by getnetconfigent() was being treated as a handle for __rpc_getconf(), which certainly isn't right. The tirpc-99 code uses __rpc_setconf("udp")/__rpc_getconf() to find the IPv4 udp netconfig, but our implementation of these functions seem happy to return IPv6 entries, so we can't use them. By reverting to the old version, we are hard-coding the name of the udp4 netid. Tracked down by: Bakul Shah <bakul@bitblocks.com>
* sysctl(NET_RT_IFLIST) up to several (currently 5) times.ume2002-07-251-8/+29
| | | | | | | | This will make the behavior robuster if many addresses are added after the size estimation of storage at the first sysctl. Reviewed by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> MFC after: 1 week
* - ntohs() returns unsigned value.ume2002-07-241-59/+56
| | | | | | | | | | | | | - use strlcpy. - snprintf can return negative value, so cope with it. - tweak interface index on interface locals (ff01::/16). - removed unused macros. - removed a macro that uses only once (in a trivial context). - explicitly say goodbye to ENI_xxx. - constify struct afd. Obtained from: KAME MFC after: 1 week
* Install more man pages - I thought I'd committed this ages ago...des2002-07-231-0/+5
|
* Don't forget to recalculate the IP checksum of the originalru2002-07-231-4/+12
| | | | | | | IP datagram embedded into ICMP error message. Spotted by: tcpdump 3.7.1 (-vvv) MFC after: 3 days
* Surround prototypes with __BEGIN_DECLS / __END_DECLS.des2002-07-221-0/+4
| | | | | PR: misc/40399 MFC after: 3 days
* Add an ia64 atomic lock primitive for libc_r. This is mostly forpeter2002-07-202-0/+96
| | | | | | | | | | completeness and doesn't get us a working libc_r there because libc_r uses setjmp() and setjmp() cannot be used for context switches on ia64 as-is (or sparc64). Rather than making setjmp/longjmp behave like the *context() calls, it would be far better to make libc_r use *context() directly which is what they are for. Obtained from: marcel
* Reimplement malloc/free debugging that includes the offending file:linepeter2002-07-205-40/+73
| | | | | | | | | | | | info. This turned out to be rather useful on ia64 for tracking down malloc/free problems. Detect duplicate free()'s - otherwise these show up as a guard1 failure and it looks like corruption instead of something simple like a second free() where there shouldn't be. Deal with libz using libc headers and not seeing the malloc/free stuff that we provide in libstand. Do similar nastiness to what is done for bzlib. Tested on: i386, ia64 (compile, run)
* Add __printflike() to printf() and sprintf() prototypes. -ffreestandingpeter2002-07-201-2/+2
| | | | | turns off gcc's builtin attributes for these functions and as a result -Wformat does no checking. (argh)
* s/${INSTALL} -c/${INSTALL} ${COPY}/ru2002-07-182-2/+2
|
* Move IPFW2 definition before including ip_fw.hluigi2002-07-181-32/+30
| | | | Make indentation of new parts consistent with the style used for this file.
* Update glob(3) to add all the POSIX required options, specifically:mikeh2002-07-172-29/+34
| | | | | | | | | | - add GLOB_NOMATCH return value and use it when we don't get a match - rename GLOB_ABEND to GLOB_ABORTED and use it instead of returning 1 in some places - add GLOB_NOESCAPE flag and retire GLOB_QUOTE to compatibility section Suggestions/advice on correct usage of POSIX defines: wollman
* Change utimes to set the file creation time (for filesystems thatmckusick2002-07-171-0/+9
| | | | | | | | support creation times such as UFS2) to the value of the modification time if the value of the modification time is older than the current creation time. See utimes(2) for further details. Sponsored by: DARPA & NAI Labs.
* Don't ask me how I consistently turned struct statvfs into struct vfsconf....wollman2002-07-161-3/+3
|
* The main reason for this is to reduce diffs between all the crt1.c's.markm2002-07-166-91/+140
| | | | | | | | | | | | | | | | | | | Assembler macros are tidied up and made as similar as sanely possible. The macros are translated into C (__inline static) functions for lint. Declaration orders are made the same. Declarations are all ISOfied and tidied up. Comment contents have gratuitous diffs removed. The net result is a bunch of crt1.c's that are 90% the same. It may be possible to now encapsulate the differences in one MD header, and have only one MI crt1.c file (although the macros to do this may be ugly). Helpful comments by: obrien, bde Alpha tested by: des i386-elf tested by: markm
* Assume that my bug report against 1003.1-2001 will be resolved my way,wollman2002-07-151-13/+9
| | | | | and make 64-bit architectures use the LP64_OFF64 environment instead of the LPBIG_OFFBIG one.
* Support POSIX/SUS ``programming environment'' mistake in confstr().wollman2002-07-151-1/+62
|
* All of the things that confstr() returns are compile-time constants.wollman2002-07-151-31/+10
| | | | | | | | | It's silly to call sysctl() to get the value of _PATH_STDPATH from <paths.h> when we can just use it directly. This greatly simplifies the implementation. (This is also part of my grand scheme to get rid of sysctl's `user' category, which should never have been created.) Use strlcpy() instead of strncpy() as it has the exact semantics we want.
* The .Fn function.keramida2002-07-1511-36/+68
|
* The .Fn functionkeramida2002-07-151-3/+6
|
* Don't bother asking the kernel about _SC_FSYNC; it's not optional.wollman2002-07-151-4/+3
|
* Add a missing 'function' word.keramida2002-07-151-2/+2
| | | | Use .Vt to mark up `struct stat' when it is a variable type.
* Use BSDi derived if_nametoindex(), if_indextoname(), if_nameindex()ume2002-07-156-328/+403
| | | | | | | and if_freenameindex(). Obtained from: KAME MFC after: 2 weeks
* The .Fn functionkeramida2002-07-153-11/+18
|
* Don't claim to fully implement C99 in the STANDARDS section and then disclaimwollman2002-07-151-2/+4
| | | | compliance in the BUGS section immediately below.
OpenPOWER on IntegriCloud