summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Enable AI_ADDRCONFIG as a valid flag of getaddrinfo(3). Someume2001-02-191-1/+2
| | | | | | applications specify AI_ADDRCONFIG and fail to run under FreeBSD. Latest mews is known. Now, getaddrinfo(3) behaves according to AI_ADDRCONFIG.
* Be extra certain that "#include <osreldate.h>" must not be used inpeter2001-02-181-1/+5
| | | | kernel code.
* Fix the current libc breakage in current:imp2001-02-161-8/+11
| | | | | | | | | | | | | o Back out the __std* stuff. Can't figure out how to do this right now, so we'll save it for late. o use _up as a pointer for extra fields that we need to access. o back out the libc major version bump. Submitted by: green reviewed by: peter, imp, green, obrien (to varying degrees). We'll fix the "how do we stop encoding sizeof(FILE) in binaries" part later.
* Correct 2nd argument of getnameinfo(3) to socklen_t.ume2001-02-151-2/+15
| | | | Reviewed by: itojun
* Commit a libc fix going by the current state of the version numberingpeter2001-02-141-4/+6
| | | | | | | | | | | | | | | | bikeshed in -arch. It isn't quite over, but it has been well established that this can be adjusted or refined. But we do seem to have consensis on a major bump of some sort. After this, it should reasonably safe to build world again. This change is to get rid of __sF[] and use seperate __stdin/out/err handles. This means we can pad on extra bits onto the end of FILE at will without going through this all over again. __sF[] was evil because it compiled the sizeof(FILE) into every stdio using program. Asbestos suit on: check! Peril sensitive sunglasses on: check! *gulp!*
* It sounded like a good idea at the time. The previous change breakspeter2001-02-121-6/+3
| | | | | FILE *buffer = stdout; so back it out for now.
* Take advantage of the current libc sizeof(FILE) breakage (__sF[]) andpeter2001-02-121-3/+6
| | | | | | | | | | try a hopefully more robust stdin/stdout/stderr. This costs an indirect pointer fetch, but saves us from changes in 'FILE'. The __stdin stuff is there to not pollute application name space if the application does not use <stdio.h> and also in case something depended on the current behavior where stdin etc was a #define. Reviewed by: eischen, dillon
* libc MT-safety, part 2.deischen2001-02-111-0/+4
| | | | Add a lock to FILE and define an additional flag.
* add langinfo.hphantom2001-02-081-1/+1
|
* Add SUSv2 compatible nl_langinfo() function. It still need some work, butphantom2001-02-081-0/+109
| | | | this is already usable one.
* Fix some nits:asmodai2001-02-061-8/+5
| | | | | | | | - whitespace: incorrect usage of tab or space - removal of comments which served either no purpose or were misleading Submitted by: bde [a while ago]
* Fix typo: compatability -> compatibility.asmodai2001-02-061-1/+2
| | | | | | Compatability is not an existing english word. Add $FreeBSD$.
* Fix typo: seperate -> separate.asmodai2001-02-061-1/+1
| | | | | | Seperate does not exist in the english language. Submitted to look at by: kris
* Declare strunvisx().bde2001-02-061-0/+1
|
* Add a lock to DIR to make telldir and friends MT-safe.deischen2001-01-242-54/+5
| | | | | | | Clean up stdio.h a bit and remove _THREAD_SAFE. Some of the usual macros getc, putc, getchar, putchar are no longer macros. Approved by: -arch
* Move MD <machine/if_wavelan_ieee.h> to MI <dev/wi/if_wavelan_ieee.h>peter2001-01-091-2/+3
|
* Remove struct.h, which has been punted into the Attic.sheldonh2001-01-031-1/+1
|
* Finally put this mistake to rest.phk2001-01-031-45/+0
|
* Change prototype to getlogin_r to reflect recent change to itsdeischen2001-01-011-1/+1
| | | | implementation (conformance to '96 POSIX standard).
* Use TAILQ instead of CIRCLEQ.phk2000-12-291-4/+4
|
* Remove prototypes for pthread_attr_[gs]etfloatstate(), which we don'tjasone2000-12-281-3/+0
| | | | implement.
* Move telldir position recording type definitions and prototypesdeischen2000-12-111-4/+2
| | | | | | | to "telldir.h" in order to prevent namespace pollution in <dirent.h> (which was including <sys/queue.h>). Add $FreeBSD$ to rewinddir.c and seekdir.c.
* Add `_PATH_DEVZERO'.obrien2000-12-091-0/+2
| | | | Use _PATH_* where where possible.
* Add a LIST_HEAD to DIR for a queue of telldir positions.deischen2000-12-061-1/+6
| | | | | Also add a location count (used as the magic for telldir) to DIR. A future change will also add a mutex/lock.
* Make <struct.h> #error instead of #warn that it is going away on jan 1st.phk2000-12-011-13/+1
|
* remove unneeded sys/ucred.h includealfred2000-11-301-1/+0
|
* Fix stdbool.h to actually work as advertised.asmodai2000-11-291-11/+3
| | | | | | PR: 22936 Submitted by: Donald J. Maddox <Donald.J.Maddox@cae88-102-101.sc.rr.com> bde
* Make it possible to override the function which writes messages tophk2000-11-261-0/+3
| | | | | | | stderr in case of warnings and errors. Rename malloc_options to have a leading underscore, I belive I have been told that is more correct namespace wise.
* Convert all users of fldoff() to offsetof(). fldoff() is badphk2000-10-272-1/+9
| | | | | | | | | | | | | | | | | | | | | | | because it only takes a struct tag which makes it impossible to use unions, typedefs etc. Define __offsetof() in <machine/ansi.h> Define offsetof() in terms of __offsetof() in <stddef.h> and <sys/types.h> Remove myriad of local offsetof() definitions. Remove includes of <stddef.h> in kernel code. NB: Kernelcode should *never* include from /usr/include ! Make <sys/queue.h> include <machine/ansi.h> to avoid polluting the API. Deprecate <struct.h> with a warning. The warning turns into an error on 01-12-2000 and the file gets removed entirely on 01-01-2001. Paritials reviews by: various. Significant brucifications by: bde
* Add netnatm to LDIRSbrian2000-10-161-1/+1
| | | | Submitted by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
* Cleanup of bitstring.h:dwmalone2000-10-091-39/+46
| | | | | | | | | | | | | | | | | | | 1) Add FreeBSD: tag. 2) Add parenthesis around macro args. 3) Add parenthesis around macros which are expressions. 4) Add do { ... } while (0) around macros which are compound statements. 5) Sync bitstr_size and bit_alloc with neater versions from NetBSD. 6) Fix bit_ffs and bit_ffc so that they don't search off the end of the bitstirng. 7) Try to avoid rightshifting signed ints. I didn't take NetBSD's version directly as the macros are significantly slower for long bitstrings. Bruce reviewed a previous version of this patch. PR: 21204 Submitted by: bob@immure.com Reviewed by: bde
* Add a definition for RTLD_DEFAULT.jdp2000-09-191-4/+3
|
* Update the prototype for "r_brk" to correspond with the change injdp2000-09-181-1/+2
| | | | | | "src/libexec/rtld-elf/rtld.c" revision 1.48. This eliminates a warning when building the dynamic linker, and it doesn't seem to hurt anything else.
* Welcome stdbool.h. A header file from the ANSI C99 specification.asmodai2000-09-162-2/+56
| | | | It defines the boolean values.
* Use MTREE_FOLLOWS_SYMLINKS optionache2000-09-151-1/+1
| | | | | | This is part of whole subsystem fixing Reviewed by: imp
* There is no reason to clobber ${DESTDIR}/usr/include/{isofs,ufs,dev}ru2000-09-141-3/+0
| | | | | | | in SHARED=copies case since all symbolic links previously created by SHARED=symlinks install have already been removed to that point. PR: misc/21150
* I have not tested this to completion yet, but this appears to fix world.peter2000-09-071-1/+1
| | | | Add nsswitch.h to the list of includes installed.
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you cannectar2000-09-064-11/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD
* Move setproctitle() from libutil to libc (after a repo-copy)brian2000-09-021-0/+1
| | | | | | | | | and bump __FreeBSD_version to 500012 to mark the occasion. setproctitle() is prototyped in unistd.h as opposed to stdlib.h where OpenBSD and NetBSD have it. Reviewed by: peter
* Import XPG4-compliant basename(3) and dirname(3) from OpenBSD.des2000-08-312-1/+50
| | | | | | | | The man pages need some adjustments. PR: 12960, 12962 Submitted by: James Howard <howardjp@wam.umd.edu> Obtained from: OpenBSD
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIgreen2000-08-221-0/+2
| | | | | | | | | | | | | | for crypt(3) by now. In any case: Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8). The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :) Reviewed by: peter
* Revert gratuitous whitespace changes from revisions 1.111 and 1.112.jhb2000-08-171-2/+2
|
* Add a prototype for rfork_thread().peter2000-07-291-0/+1
| | | | | | | | | pid_t rfork_thread(int forkflags, void *stack, int (*func)(void *arg), void *arg); A new process is created, presumably using RFMEM shared address space. The child process switches to the supplied stack, which is set up with a function call frame. The function is called with the supplied arguement. If the function returns, the return value will be used with _exit(2).
* Backout addition of -L switch to mtree. Using -L breaks themarcel2000-07-231-1/+1
| | | | | | build process in too many cases. Adding mtree to bootstrap-tools to solve this breaks the upgrade path because mtree needs a libc that has strtofflags and fflagstostr.
* Back out 1.15. It caused more harm than good. Something, however,nsayer2000-07-211-4/+4
| | | | | | must be done to fix this situation. Submitted by: bde
* Add -L to mtreeache2000-07-161-1/+1
|
* fix spelling errors.alfred2000-07-071-13/+0
| | | | Pointed out by: bde
* cleanup the tsearch import.alfred2000-07-061-1/+4
| | | | | | | | | | | | remove (comment out) functions defined or depricated elsewhere: bsearch, lfind, lsearch, insque, remque change hcreate to take a size_t rather than uint (essentially the same) since hcreate/hdestroy are now in <search.h>, remove private search.h in lib/libc/db/hash/ add $FreeBSD tags to hsearch.c
* add getifaddrs(3) from bsdi. this is a magic function which lets you grabitojun2000-07-052-1/+57
| | | | | | interface addresses in a portable manner, without headache of SIOCGIFCONF or sysctl. it is in bsdi/openbsd/netbsd already. from kame tree (actually, mandatory for latest kame tree).
* Add URI encoding to the vis/unvis routines courtesy of VIS_HTTPSTYLE.dan2000-07-011-0/+1
| | | | | | | | Since alex is a -doc committer, he can update his own manpage. :-) Also add $FreeBSD$ while I'm here. Submitted by: alex
OpenPOWER on IntegriCloud