summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* We need an frexp() function.obrien2002-03-011-1/+1
|
* Minor style(9) nit + utilize ELF features for the FreeBSD ID.obrien2002-02-281-6/+2
|
* Minor style(9) nit + utilize ELF features for the FreeBSD ID.obrien2002-02-273-16/+10
|
* Check if string is not NULL, not *string, before setting *string.green2002-02-271-2/+2
|
* We do not support the sparc platform.obrien2002-02-272-129/+0
|
* Minor WS change to improve readability.obrien2002-02-272-6/+6
|
* Add the following functions/macros to support byte order conversions andtmm2002-02-271-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | device drivers for bus system with other endinesses than the CPU (using interfaces compatible to NetBSD): - bwap16() and bswap32(). These have optimized implementations on some architectures; for those that don't, there exist generic implementations. - macros to convert from a certain byte order to host byte order and vice versa, using a naming scheme like le16toh(), htole16(). These are implemented using the bswap functions. - stream bus space access functions, which do not perform a byte order conversion (while the normal access functions would if the bus endianess differs from the CPU endianess). htons(), htonl(), ntohs() and ntohl() are implemented using the new functions above for kernel usage. None of the above interfaces is currently exported to user land. Make use of the new functions in a few places where local implementations of the same functionality existed. Reviewed by: mike, bde Tested on alpha by: mike
* Introduce a version field to `struct xucred' in place of one of thedd2002-02-272-1/+5
| | | | | | | | | | | | spares (the size of the field was changed from u_short to u_int to reflect what it really ends up being). Accordingly, change users of xucred to set and check this field as appropriate. In the kernel, this is being done inside the new cru2x() routine which takes a `struct ucred' and fills out a `struct xucred' according to the former. This also has the pleasant sideaffect of removing some duplicate code. Reviewed by: rwatson
* use _GENERIC_DIRSIZ(dp) to avoid copying too much of the dirent overalfred2002-02-261-2/+2
| | | | | the user supplied buffer. this can be a problem when the user doesn't supply a full dirent and we corrupt their memory.
* Per POSIX <grp.h> doesn't require <sys/types.h>.sobomax2002-02-251-1/+0
| | | | Submitted by: ache
* #include <time.h> for the definition of time functions instead ofbde2002-02-251-1/+2
| | | | | | depending on namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes.
* #include <stddef.h> for the definition of NULL instead of depending onbde2002-02-251-1/+3
| | | | | | namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes.
* Initialize the libc user trap handlers before passing control non-startuptmm2002-02-231-0/+2
| | | | code, so that the userland fp emulator will work.
* Add userland floating point emulator code for sparc64. This is a porttmm2002-02-2317-1/+3520
| | | | | of the (never committed) in-kernel version (with some optimizations and cleanups), which in turn was ported from NetBSD.
* Add ifdefs for sparc64.jake2002-02-233-2/+7
|
* Fix wrong offsets. Add offsets for %fsr and %tstate.jake2002-02-231-6/+11
| | | | Submitted by: tmm
* Add space for %fsr and %tstate to utrapframe. Save them in the genericjake2002-02-232-1/+14
| | | | | | | user trap entry code. Restore %asi and %ccr from the saved %tstate before returning to the trapping user code. Submitted by: tmm
* Also blindly attempt to fix broken world with respect to proc.p_runtimegreen2002-02-221-1/+3
| | | | changes.
* Fix a bug where a short write to a non-blocking socket wouldjb2002-02-221-1/+4
| | | | | | | leave the descriptor locked, causing other threads to hang if they happened to access the socket. MFC after: 5 days
* o style(9) and consistency fix:jedgar2002-02-211-2/+2
| | | | | | | | - if (!var) -> if (var == NULL) o spelling fix (althouh -> although) Reviewed by: rwatson Obtained from: TrustedBSD Project
* o style(9) and consistency fixes:jedgar2002-02-215-44/+41
| | | | | | | | - if (!var) -> if (var == NULL) - return val; -> return (val); Reviewed by: rwatson Obtained from: TrustedBSD Project
* Add more argument checkingjedgar2002-02-212-0/+17
| | | | | Reviewed by: rwatson Obtained from: TrustedBSD Project
* static'ize and declare functionsjedgar2002-02-211-1/+5
| | | | | Reviewed by: rwatson Obtained from: TrustedBSD Project
* Prefix structure members to protect them against clashes with eg.alfred2002-02-202-4/+4
| | | | | | | | | c++ keywords. This keeps us in sync with NetBSD because they actually committed my delta first. Ok'd by: lennard
* Create /var/log/lastlog if it doesn't exist.sobomax2002-02-201-1/+1
| | | | Submitted by: des
* Fixed divots that I created when I moved prototypes of group_from_gidimp2002-02-192-2/+3
| | | | | | | and user_from_uid to grp.h and pwd.h. Update the man pages. Submitted by: David Malone Pointy hat to: imp
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-1845-34/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm
* Update build infrastructure for sendmail 8.12.gshapiro2002-02-172-3/+13
|
* Add two new libraries which are part of sendmail 8.12. libsm is used onlygshapiro2002-02-173-2/+69
| | | | | for building sendmail and the associated utilities. libmilter is a new mail filtering API for sendmail.
* o style and consistency fixes:jedgar2002-02-176-40/+40
| | | | | | - if (!var) -> if (var == NULL) - return val; -> return (val); o update copyright
* Error handling fixes for inflate.jedgar2002-02-171-4/+7
|
* Don't rely on <sys/signal.h> to include <sys/ucontext.h>deischen2002-02-173-0/+3
|
* Fix two file descriptor leaks in the internal function local_rpcb()iedowse2002-02-161-1/+8
| | | | | | | | that is used by a number of rpcbind-related library functions. Also fix a rpc client leak in rpcb_set(). Submitted by: mbr Obtained from: NetBSD
* Document that the type of st_flags is now fflags_t.wollman2002-02-151-2/+2
|
* Don't leave stack garbage in the reserved fields of the header.bde2002-02-151-0/+1
|
* Fixed style bugs in rev.1.5:bde2002-02-151-4/+5
| | | | | | | | | | - missing whitespace - strange version of warn() built out of warnx() + strerror(). Just use warn(). - conversion of just one of the two perror()'s to warn*() Actually use _warn() instead of _warn(), to keep up with namespace- unpollution for warn().
* Prevent dup2(2) from closing internal libc_r pipe descriptors.maxim2002-02-141-1/+2
| | | | | | | PR: misc/28947 Reviewed by: jasone, ru Approved by: jasone, ru MFC after: 1 week
* Correct a typo pthread_attr_setscope() function fails unconditionallymaxim2002-02-143-3/+3
| | | | | | | | | due to. PR: misc/30699 Reviewed by: jasone, ru Approved by: jasone, ru MFC after: 1 week
* Use new-style function declations.imp2002-02-131-6/+2
|
* I THINK this fixes 'make world'julian2002-02-131-1/+4
| | | | | | I'll know as soon as I re-import it and compile it.. :-) There is no longer a 'pri' strict in the proc struct. the fields are scattered between the ksegrp and thread in question.
* Don't make it seem like vm.max_proc_mmap only affects MAP_FIXED.dd2002-02-101-4/+4
| | | | | | PR: 34005 Submitted by: Steven Grady <grady@digitaldeck..com>, Hiten Pandya <hitmaster2k@yahoo.com>
* Part III: Update extended attribute system call interface documentation.rwatson2002-02-101-18/+39
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* This has been sitting in my local tree long enough. Remove the usedeischen2002-02-0915-804/+501
| | | | | | | | | | | | | | of an alternate signal stack for handling signals. Let the kernel send signals on the stack of the current thread and teach the threads signal handler how to deliver signals to the current thread if it needs to. Also, always store a threads context as a jmp_buf. Eventually this will change to be a ucontext_t or mcontext_t. Other small nits. Use struct pthread * instead of pthread_t in internal library routines. The threads code wants struct pthread *, and pthread_t doesn't necessarily have to be the same. Reviewed by: jasone
* Silence a warning by initializing the return value. This wasn'tdeischen2002-02-091-2/+3
| | | | | set in the case of a short write, and I think returning 0 for this is what was intended.
* This file needs <syslog.h>.des2002-02-091-0/+1
| | | | Sponsored by: DARPA, NAI Labs
* Now that cross-tools ld(1) has been fixed to look for dynamicru2002-02-081-2/+2
| | | | | | | | | | dependencies in the correct place, record the fact that -lssh depends on -lcrypto and -lz. Removed false dependencies on -lz (except ssh(1) and sshd(8)). Removed false dependencies on -lcrypto and -lutil for scp(1). Reviewed by: markm
* FreeBSD 4.1 bootstrapping aid (__FBSDID is not there).ru2002-02-082-0/+4
|
* pre-emptively fix a KSE/M3 problem.julian2002-02-071-7/+14
| | | | | | | Make a slight change so that libkvm reaches the main thread via the linked list, rather than assuming it is in the proc structure. Both conditions are true in -current but only the first will be true in the KSE M3 world.
* Move the AF_LOCAL check to the AF_INET check since portmap protocolalfred2002-02-061-5/+1
| | | | | | v. 2 only needs this. That also makes it shorter and simpler. Submitted by: mbr
* Remove NO_WERROR, now that WARNS=n is gone.markm2002-02-065-5/+0
|
OpenPOWER on IntegriCloud