summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* It's not CUT (the french would accept that back in 1879) and TUC wasn'tphk2001-03-311-1/+5
| | | | | | | palatable to the rest of the world. UTC was the compromise. PR: 26238 Submitted by: Ying-Chieh Liao <ijliao@terry.dragon2.net>
* Add a CLSET_ASYNC command, which allows us to (ab)use the clnt_dg transportwpaul2001-03-271-0/+1
| | | | | | | | | | | | | | | | | | to make asynchronous RPCs. This is needed to help fix ypbind, which can no longer override the clnt_dg_call() method (formerly the clntudp_call() method) due to all the internal descriptor locking code in TI-RPC. Turning on this flag allows us to send an RPC request, then return immediately, and handle a reply later, rather than being forced to do the request and reply in a single function call. Also fix a byte ordering bug: when clnt_dg_call() increments the XID prior to transmitting a request, it uses the raw value, which is wrong. The XID is stored in network byte order, i.e. big-endian. The CLSET_XID and CLGET_XID commands in clnt_dg_control() use ntohl()/htonl() to get the byte ordering right, but because clnt_dg_call() does not do this, using CLSET_XID/CLGET_XID doesn't actually work, unless you're on a big endian host, which we aren't (yet). Fix clnt_dg_call() to byte swap properly when doing the increment.
* give the "netgrent" functions a home in netdb.halfred2001-03-271-0/+5
|
* const'ifyalfred2001-03-271-1/+1
|
* fix: text following `#else' violates ANSI standardalfred2001-03-261-1/+1
| | | | Pointed out by: ${BDECFLAGS}
* IPv4 address is not unsigned int. This change introduces in_addr_t.ume2001-03-231-6/+6
| | | | | | | PR: 9982 Adviced by: des Reviewed by: -alpha and -net (no objection) Obtained from: OpenBSD
* change callrpc() from taking "char *" args, I'm quite sure they really meantalfred2001-03-231-2/+2
| | | | | | to use "void *". remove a duplicate prototype for callrpc() from libexec/ypxfr/ypxfr_extern.h
* forgot prototyle for __rpc_get_local_uid()alfred2001-03-221-0/+2
|
* Unbreak LINT.alfred2001-03-201-0/+2
| | | | | | | | | | because rpcb_clnt.h is generated during buildworld and only installed into /usr/include/rpc (and not present in src/include/rpc) we can fix it by simply not including it when _KERNEL is defined. this isn't the most elegant, way and might deserve some revisiting later. Pointed out by: bde
* The TI-RPC spammed over a '#ifdef _KERNEL' hack for the xdrproc_t typedefalfred2001-03-201-1/+6
| | | | | | revert the spammage Pointed out by: bde
* comment out #pragma directive containing Sun SCM tagsalfred2001-03-201-1/+1
|
* Add missing comma when KERBEROS is defined.alfred2001-03-191-1/+2
|
* Introduce the GLOB_MAXPATH flag, which allows the user to limit thejlemon2001-03-191-0/+3
| | | | | | | number of paths which glob(3) will return. Remove the hardcoded limit from the last commit, which restores the previous unbounded behavior. Document the new flag in the manual page.
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andalfred2001-03-1931-482/+2492
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul
* Add D_MD_ORDER (local extension) to get month/day order from localeache2001-03-191-0/+2
|
* Nuke non-standard EAI_RESNULL.ume2001-03-171-2/+1
|
* Move _PATH_DEFTAPE to <paths.h> to remove all the duplication of definitons,obrien2001-03-081-0/+1
| | | | and remove leading `r'(aw) from it.
* mark pthread_exit() as non-returning.alfred2001-03-041-1/+1
| | | | Requested by: Farooq Mela <fmela0@sm.socccd.cc.ca.us>
* Hide the definition of struct __sFILEX and add the neededdeischen2001-03-011-6/+1
| | | | | | | lock definitions to it. flockfile state is now allocated along with the rest of FILE. This eliminates the need for a separate allocation of flockfile state as well as eliminating the mutex/lock used to serialize its allocation.
* Impliment the ISO-C99 strto[u]ll()obrien2001-02-271-0/+4
| | | | and rewrite strto[u]q() in terms of it.
* 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>
OpenPOWER on IntegriCloud