aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Remove the comment warning that the dllockinit() interface mightJohn Polstra2000-01-091-1/+0
| | | | | | | | change. I have decided that the interface is general enough to last. Notes: svn path=/head/; revision=55681
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-294-5/+6
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* Work around an assert failure in the dynamic linker's default threadJohn Polstra1999-12-281-0/+1
| | | | | | | | | | | | | | | | | | | locking functions. If an application loads a shared object with dlopen() and the shared object has an init function which requires lazy binding, then _rtld_bind is called when the thread is already inside the dynamic linker. This leads to a recursive acquisition of the lock, which I was not expecting -- hence the assert failure. This work-around makes the default locking functions handle recursive locking. It is NOT the correct fix -- that should be implemented at the generic locking level rather than in the default locking functions. I will implement the correct fix in a future commit. Since the dllockinit() interface will likely need to change, warn about that in both the man page and the header file. Notes: svn path=/head/; revision=55165
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.Yoshinobu Inoue1999-12-282-0/+96
| | | | | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=55163
* Add a new function dllockinit() for registering thread lockingJohn Polstra1999-12-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | functions to be used by the dynamic linker. This can be called by threads packages at start-up time. I will add the call to libc_r soon. Also add a default locking method that is used up until dllockinit() is called. The default method works by blocking SIGVTALRM, SIGPROF, and SIGALRM in critical sections. It is based on the observation that most user-space threads packages implement thread preemption with one of these signals (usually SIGVTALRM). The dynamic linker has never been reentrant, but it became less reentrant in revision 1.34 of "src/libexec/rtld-elf/rtld.c". Starting with that revision, multiple threads each doing lazy binding could interfere with each other. The usual symptom was that a symbol was falsely reported as undefined at start-up time. It was rare but not unseen. This commit fixes it. Notes: svn path=/head/; revision=55122
* Fixed missing declaration of ctermid_r(3).Bruce Evans1999-12-231-0/+1
| | | | Notes: svn path=/head/; revision=55036
* Fixed missing declaration of getlogin_r(3).Bruce Evans1999-12-231-0/+2
| | | | Notes: svn path=/head/; revision=55033
* Fixed missing declaration of rand_r(3).Bruce Evans1999-12-231-0/+2
| | | | Notes: svn path=/head/; revision=55031
* Fixed missing declaration of getdents(2).Bruce Evans1999-12-231-0/+1
| | | | Notes: svn path=/head/; revision=55030
* Fix some minor POSIX/SUSv2 compliance nits.Jason Evans1999-12-181-4/+2
| | | | | | | PR: kern/11982 Notes: svn path=/head/; revision=54757
* Back up following macros by functions: ishexnumber, isideogram, isnumber,Alexey Zelkin1999-12-172-10/+20
| | | | | | | | | isphonogram, isrune, isspecial. Fix ordering. Reviewed by: bde Notes: svn path=/head/; revision=54746
* Move POSIX feature constants from pthread.h to unistd.h, as required byJason Evans1999-12-161-17/+0
| | | | | | | | | | | | | | | | | 1003.1c-1995. Undefine _POSIX_THREAD_SAFE_FUNCTIONS, since we do not implement all of the necessary interfaces. At least getgrgid_r(), getrnam_r(), getpwuid_r(), getpwnam_r(), getc_unlocked(), getchar_unlocked(), putc_unlocked(), and putchar_unlocked() are missing. Due to a likely typo in 1003.1c-1995, we are not technically allowed to define _POSIX_THREADS without defining _POSIX_THREAD_SAFE_FUNCTIONS, but either way we're non-compliant, so I'm leaving _POSIX_THREADS defined. PR: bin/8281 Notes: svn path=/head/; revision=54699
* Revert previous commit.Marcel Moolenaar1999-12-091-25/+58
| | | | | | | Requested by: bde Notes: svn path=/head/; revision=54351
* Remove support for symlinks instead of copies. This also avoidsMarcel Moolenaar1999-12-081-58/+25
| | | | | | | using mtree. Space is being saved by other means. Notes: svn path=/head/; revision=54312
* Create a symlink for <machine/joystick.h>, like soundcard.hPeter Wemm1999-12-051-1/+1
| | | | Notes: svn path=/head/; revision=54169
* Added ntfs subdir to be filled.Semen Ustimenko1999-12-031-1/+1
| | | | Notes: svn path=/head/; revision=54092
* style fixes, remove extra braces.Alfred Perlstein1999-11-291-3/+1
| | | | | | | | | | | | | | | readdir_r is not POSIX according to POSIX_SOURCE, bruce says: > readdir_r() is in the _POSIX_SOURCE section, but is not a POSIX.1-1990 > function. It's POSIX.1-1996 so it should be under a different feature > test which we don't support yet. make sure errno is saved so that its contents are cleared unless necessary. Submitted by: bde Notes: svn path=/head/; revision=53892
* add pthread_cancel, obtained from OpenBSD.Alfred Perlstein1999-11-282-7/+18
| | | | | | | | | | | | | | | | | eischen (Daniel Eischen) added wrappers to protect against cancled threads orphaning internal resources. the cancelability code is still a bit fuzzy but works for test programs of my own, OpenBSD's and some examples from ORA's books. add readdir_r to both libc and libc_r add some 'const' attributes to function parameters Reviewed by: eischen, jasone Notes: svn path=/head/; revision=53812
* Add FNM_FILE_NAME - GNU alias to FNM_PATHNAMEAndrey A. Chernov1999-11-211-0/+5
| | | | | | | Move all excepting NOESCAPE,PATHNAME,PERIOD under !defined(_POSIX_SOURCE) Notes: svn path=/head/; revision=53516
* Add missing netinet6.Jonathan Lemon1999-11-051-2/+2
| | | | | | | Detected by: make world Notes: svn path=/head/; revision=52905
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.Julian Elischer1999-10-211-2/+2
| | | | | | | | | | | | | Been in production for 3 years now. Gives Instant Frame relay to if_sr and if_ar drivers, and PPPOE support soon. See: ftp://ftp.whistle.com/pub/archie/netgraph/index.html for on-line manual pages. Reviewed by: Doug Rabson (dfr@freebsd.org) Obtained from: Whistle CVS tree Notes: svn path=/head/; revision=52419
* Make libncp actually compiled.Boris Popov1999-10-141-2/+2
| | | | | | | Reviewed by: mdodd Notes: svn path=/head/; revision=52228
* Complete move of kvm.h to lib/libkvm so it's self contained.Peter Wemm1999-10-042-97/+1
| | | | Notes: svn path=/head/; revision=51935
* Link ucontext.h to sys/ucontext.hMarcel Moolenaar1999-10-032-37/+2
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=51910
* Remove the inline versions of sigaddset, sigdelset, sigemptyset,Marcel Moolenaar1999-10-021-53/+0
| | | | | | | | | sigfillset and sigismember. Submitted by: bde Notes: svn path=/head/; revision=51871
* sigset_t change (part 5 of 5)Marcel Moolenaar1999-09-292-8/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------- Most of the userland changes are in libc. For both the alpha and the i386 setjmp has been changed to accomodate for the new sigset_t. Internally, libc is mostly rewritten to use the new syscalls. The exception is in compat-43/sigcompat.c The POSIX thread library has also been rewritten to use the new sigset_t. Except, that it currently only handles NSIG signals instead of the maximum _SIG_MAXSIG. This should not be a problem because current applications don't use any signals higher than NSIG. There are version bumps for the following libraries: libdialog libreadline libc libc_r libedit libftpio libss These libraries either a) have one of the modified structures visible in the interface, or b) use sigset_t internally and may cause breakage if new binaries are used against libraries that don't have the sigset_t change. This not an immediate issue, but will be as soon as applications start using the new range to its fullest. NOTE: libncurses already had an version bump and has not been given one now. NOTE: doscmd is a real casualty and has been disconnected for the moment. Reconnection will eventually happen after doscmd has been fixed. I'm aware that being the last one to touch it, I'm automaticly promoted to being maintainer. According to good taste this means that I will receive a badge which either will be glued or mechanically stapled, drilled or otherwise violently forced onto me :-) NOTE: pcvt/vttest cannot be compiled with -traditional. The change cause sys/types to be included along the way which contains the const and volatile modifiers. I don't consider this a solution, but more a workaround. Notes: svn path=/head/; revision=51794
* Zap $Revision$Peter Wemm1999-09-051-1/+0
| | | | Notes: svn path=/head/; revision=50968
* Only install backwards compat symlink for <machine/soundcard.h> if usingPeter Wemm1999-09-051-5/+5
| | | | | | | | | | | the default SHARED=copies, otherwise the kernel source tree gets modified if /usr/include/machine is a symlink to the source tree (which is not the case by default). Nothing in our src tree uses <machine/soundcard.h>. Pointed out by: bde Notes: svn path=/head/; revision=50949
* Install a symlink for <machine/soundcard.h> -> <sys/soundcard.h> ratherPeter Wemm1999-09-041-0/+5
| | | | | | | than having stubs. (OK'ed by dfr) Notes: svn path=/head/; revision=50914
* Add definition for RTLD_GLOBAL, which is soon to be supported.John Polstra1999-08-301-1/+3
| | | | Notes: svn path=/head/; revision=50603
* $Header$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50488
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2759-62/+78
| | | | Notes: svn path=/head/; revision=50473
* Add 2 functions: el_data_set() and el_data_get() which do what youMatthew N. Dodd1999-08-201-1/+4
| | | | | | | | | | | would expect. (Allow user data to be associated with an EditLine context). As this changes no existing interfaces and doesn't alter any structs visable to the user I've been told that its not necessary to bump the version of the library. Notes: svn path=/head/; revision=50070