aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Convert all users of fldoff() to offsetof(). fldoff() is badPoul-Henning Kamp2000-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 Notes: svn path=/head/; revision=67708
* Add netnatm to LDIRSBrian Somers2000-10-161-1/+1
| | | | | | | Submitted by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org> Notes: svn path=/head/; revision=67182
* Cleanup of bitstring.h:David Malone2000-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 Notes: svn path=/head/; revision=66872
* Add a definition for RTLD_DEFAULT.John Polstra2000-09-191-4/+3
| | | | Notes: svn path=/head/; revision=66055
* Update the prototype for "r_brk" to correspond with the change inJohn Polstra2000-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. Notes: svn path=/head/; revision=66043
* Welcome stdbool.h. A header file from the ANSI C99 specification.Jeroen Ruigrok van der Werven2000-09-162-2/+56
| | | | | | | It defines the boolean values. Notes: svn path=/head/; revision=65918
* Use MTREE_FOLLOWS_SYMLINKS optionAndrey A. Chernov2000-09-151-1/+1
| | | | | | | | | This is part of whole subsystem fixing Reviewed by: imp Notes: svn path=/head/; revision=65885
* There is no reason to clobber ${DESTDIR}/usr/include/{isofs,ufs,dev}Ruslan Ermilov2000-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 Notes: svn path=/head/; revision=65834
* I have not tested this to completion yet, but this appears to fix world.Peter Wemm2000-09-071-1/+1
| | | | | | | Add nsswitch.h to the list of includes installed. Notes: svn path=/head/; revision=65553
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you canJacques Vidrine2000-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 Notes: svn path=/head/; revision=65532
* Move setproctitle() from libutil to libc (after a repo-copy)Brian Somers2000-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 Notes: svn path=/head/; revision=65353
* Import XPG4-compliant basename(3) and dirname(3) from OpenBSD.Dag-Erling Smørgrav2000-08-312-1/+50
| | | | | | | | | | | The man pages need some adjustments. PR: 12960, 12962 Submitted by: James Howard <howardjp@wam.umd.edu> Obtained from: OpenBSD Notes: svn path=/head/; revision=65294
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIBrian Feldman2000-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 Notes: svn path=/head/; revision=64918
* Revert gratuitous whitespace changes from revisions 1.111 and 1.112.John Baldwin2000-08-171-2/+2
| | | | Notes: svn path=/head/; revision=64767
* Add a prototype for rfork_thread().Peter Wemm2000-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). Notes: svn path=/head/; revision=64005
* Backout addition of -L switch to mtree. Using -L breaks theMarcel Moolenaar2000-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. Notes: svn path=/head/; revision=63776
* Back out 1.15. It caused more harm than good. Something, however,Nick Sayer2000-07-211-4/+4
| | | | | | | | | must be done to fix this situation. Submitted by: bde Notes: svn path=/head/; revision=63725
* Add -L to mtreeAndrey A. Chernov2000-07-161-1/+1
| | | | Notes: svn path=/head/; revision=63259
* fix spelling errors.Alfred Perlstein2000-07-071-13/+0
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=62780
* cleanup the tsearch import.Alfred Perlstein2000-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 Notes: svn path=/head/; revision=62684
* add getifaddrs(3) from bsdi. this is a magic function which lets you grabJun-ichiro itojun Hagino2000-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). Notes: svn path=/head/; revision=62606
* Add URI encoding to the vis/unvis routines courtesy of VIS_HTTPSTYLE.Dan Moschuk2000-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 Notes: svn path=/head/; revision=62356
* bring in binary search tree code.Alfred Perlstein2000-07-012-1/+68
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=62321
* Moving forward on my commitment to always make at least one commit fromNick Sayer2000-06-221-4/+4
| | | | | | | | | a terminal room of any conference I attend.... Fix xdrproc_t prototype. () instead of (...) breaks C++ programs. Notes: svn path=/head/; revision=61927
* Add strtofflags and fflagstostr to libc.Josef Karthauser2000-06-171-0/+2
| | | | Notes: svn path=/head/; revision=61747
* Back out the previous change to the queue(3) interface.Jake Burkholder2000-05-261-4/+4
| | | | | | | | | It was not discussed and should probably not happen. Requested by: msmith and others Notes: svn path=/head/; revision=60938
* Change the way that the queue(3) structures are declared; don't assume thatJake Burkholder2000-05-231-4/+5
| | | | | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd Notes: svn path=/head/; revision=60833
* Install /usr/include/dev/ppbus as well as dev/usbPeter Wemm2000-05-191-2/+2
| | | | Notes: svn path=/head/; revision=60725
* Fixed missing consts for function parameters, so that the code matchesBruce Evans2000-05-111-3/+7
| | | | | | | | the man page and POSIX.1. Fixed nearby misformatting. Fixed a missing prototype. Notes: svn path=/head/; revision=60382
* Finish moving all IEEE fp types to be the same on all arch's.John Baldwin2000-05-101-2/+2
| | | | Notes: svn path=/head/; revision=60338
* fp_except => fp_except_t for consistancy with the i386 and the traditionDavid E. O'Brien2000-05-101-4/+5
| | | | | | | C methoid of nameing types. Notes: svn path=/head/; revision=60335
* Revert previous commit, and remove the <event.h> symlink. As this isJonathan Lemon2000-04-181-1/+1
| | | | | | | | | | a system-specific extension, not a standardized interface, it should be located with the sys/ includes. Requested by: wollman Notes: svn path=/head/; revision=59374
* Create <event.h> -> <sys/event.h> link that I forgot earlier.Jonathan Lemon2000-04-161-2/+2
| | | | | | | Reminded by: ache Notes: svn path=/head/; revision=59296
* The idea always was that `make copies' should undo theRuslan Ermilov2000-04-061-1/+4
| | | | | | | | | `make symlinks' job, but it got broken in rev 1.109. Restore the correct behaviour. Notes: svn path=/head/; revision=59065
* Do not conditionalize function prototype definition for functions weJason Evans2000-02-201-6/+0
| | | | | | | | | | implement. Noticed by: Thimble Smith <tim@mysql.com> Approved by: jkh Notes: svn path=/head/; revision=57350
* There is a problem in that one cannot use ctype.h at the same time as partsDavid E. O'Brien2000-02-082-62/+62
| | | | | | | | | | | | | | | | | of the C++ stdlib. Our ctype.h uses symbols of the form _<X> to denote the various character classes. Our ctype.h also extends the usual ctype.h offering by adding the "_T" (special) class. Problem is parts of the STL also use the symbol "_T" as its parameterized type. These two uses are incompatible. Thus change the form of the symbols used in ctype to something that fixes the current problem and is less likely to cause conflicts in the future. Requested by: Tomoaki NISHIYAMA <tomoaki@biol.s.u-tokyo.ac.jp> Ok'ed by: JKH Notes: svn path=/head/; revision=57035
* Change IPv6 address scope delimeter from '@' to '%' as recent KAME change.Yoshinobu Inoue2000-02-081-1/+1
| | | | | | | | | | | '@' conflicts with existing notations such as user@host, so '%' is better. Approved by: jkh Obtained from: KAME project Notes: svn path=/head/; revision=57033
* Revert part of the last commit, remove {g|s}etflags from the libcJosef Karthauser2000-02-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | interface, and statically link them to the programs using them. These functions, upon reflection and discussion, are too generically named for a library interface with such specific functionality. Also the api that they use, whilst ok for private use, isn't good enough for a libc function. Additionally there were complications with the build/install-world process. It depends heavily upon xinstall, which got broken by the change in api, and caused bootstrap problems and general mayhem. There is work in progress to address future problems that may be caused by changes in install-chain tools, and better names for {g|s}etflags can be derived when some future program requires them. For now the code has been left in src/lib/libc/gen (it started off in src/bin/ls). It's important to provide library functions for manipulating file flag strings if we ever want this interface to be adopted outside of the source tree, but now isn't necessarily the right moment with 4.0-release just around the corner. Approved: jkh Notes: svn path=/head/; revision=57003
* sync iruserok() extension API with other BSDsYoshinobu Inoue2000-02-011-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of rcmd related function is need to be updated to support IPv6. Some of them are already updated as standard document. But there is also several de-facto functions and they are not listed in standard documents. They are, iruserok() (used by rlogind, rshd) ruserok() (used by kerberos, etc) KAME package updated those functions in original way. iruserok_af() ruserok_af() But recently there was discussion on IETF IPng mailing list about how to sync those API, and it is decided, -Those function is not standard and not documented. -But let BSDs sync their API as de-facto. And after some discussion, it is announced that -add update to iruserok() as iruserok_sa() -no ruserok() API change(it is only updated internaly) So I sync those API before 4.0 is released. The changes are, -prototype changes -ruserok() internal update (use iruserok_sa() inside) -removal of ruserok_af() -change iruserok_af() as static functioin, and also prefix the name with __. -add iruserok_sa() (Just call __iruserok_af() inside) -adding flag AI_ALL to getipnodebyaddr() called from __icheckhost(). This is necessary to support IPv4 communication via AF_INET6 socket could be correctly authenticated via iruserok_sa() -irusreok_af() call is replaced to iruserok_sa() call in rlogind, and rshd. Approved by: jkh Notes: svn path=/head/; revision=56939
* Add a #define for RTLD_LOCAL as required by the Single UnixJohn Polstra2000-01-291-0/+1
| | | | | | | Specification. Notes: svn path=/head/; revision=56782
* Historically file flags (schg, uschg, etc) have been converted fromJosef Karthauser2000-01-271-0/+2
| | | | | | | | | | | | | | | | | | | | string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags. Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc. There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags. The manual page could probably be improved upon ;) Notes: svn path=/head/; revision=56692
* Sigh. Really fix it this time. It seems the first time through thePeter Wemm2000-01-261-1/+4
| | | | | | | | run it would modify the source tree, causing it to fail the second time around. Sigh. Notes: svn path=/head/; revision=56646
* Fix world breakage (kdump, truss) causes by rev 1.107 (adding dev/usb).Peter Wemm2000-01-261-1/+8
| | | | | | | | | It was creating ${.OBJDIR}/${MACHINE}/usr/include/dev -> .../sys/dev and mkioctls would descend that and saw *all* of src/sys/dev/*/*.h, not just dev/usb/*.h. It then choked on the dpt includes. Notes: svn path=/head/; revision=56645
* bindresvport related changesYoshinobu Inoue2000-01-261-1/+1
| | | | | | | | | | | | | -changed bindresvport2 to bindresvport_sa -merged the man into bindresvport.3 All discussion between Jean-Luc Richier <Jean-Luc.Richier@imag.fr>, Theo de Raadt <deraadt@cvs.openbsd.org>, itojun, is reflected to this code. (Actually Theo de Raadt write the code simultaneously as the discussion change.) Notes: svn path=/head/; revision=56629
* several tcp apps IPv6 updateYoshinobu Inoue2000-01-251-0/+2
| | | | | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=56590
* Install the USB include files in /usr/include/dev/usb.Nick Hibma2000-01-251-2/+2
| | | | | | | | | | We should still sort out some way of avoiding the clutter. Not all files should be there. Prompted by: Louis A. Mamakos <louie@TransSys.COM> Notes: svn path=/head/; revision=56583
* Add prototypes for [sg]etres[ug]id().Peter Wemm2000-01-171-0/+4
| | | | Notes: svn path=/head/; revision=56183
* Fixed disordering, misformatting, and duplicate declaration ofBruce Evans2000-01-141-3/+2
| | | | | | | iruserok_af() in previous commit. Notes: svn path=/head/; revision=55975
* libc rcmd update for IPv6.Yoshinobu Inoue2000-01-132-0/+5
| | | | | | | | | | | A new function bindresvport2(), AF independent version of bindresvport() is also added. Reviewed by: sumikawa Obtained from: KAME project Notes: svn path=/head/; revision=55918
* Make sched_param parameter a const to comply with POSIX and SUSv2 specs.Daniel Eischen2000-01-101-1/+1
| | | | | | | | | | This doesn't need to be applied to stable, because somehow -stable seems to have gotten it right. Reviewed by: jasone Notes: svn path=/head/; revision=55708