aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Slightly simplify inlined functionsAndrey A. Chernov1996-03-252-12/+6
| | | | Notes: svn path=/head/; revision=14813
* Fix incorrect parameter types for ftell and fgets.Paul Richards1996-03-241-2/+2
| | | | Notes: svn path=/head/; revision=14791
* Don't reference ndbm(3) manpage. Everything is covered by db(3).Jordan K. Hubbard1996-03-031-1/+1
| | | | Notes: svn path=/head/; revision=14352
* Fix conflicts and merge into mainline (this may get cvs admined out and ↵Paul Traina1996-02-272-76/+40
| | | | | | | redone properly by Peter later) Notes: svn path=/head/; revision=14288
* Add structure and procedure definitions for NIS v1. (This informationBill Paul1996-02-261-2/+71
| | | | | | | | was reverse-engineered using the <rpcsvc/ypv1_prot.h> file supplied with SunOS 4.1.3 as a guide.) Notes: svn path=/head/; revision=14261
* Add prototype for rfork().Peter Wemm1996-02-231-0/+1
| | | | Notes: svn path=/head/; revision=14223
* Don't install netns, it doesn't exist any more.Garrett Wollman1996-02-141-2/+2
| | | | Notes: svn path=/head/; revision=14095
* Don't install netccitt and netiso, they are going away.Garrett Wollman1996-02-061-2/+2
| | | | Notes: svn path=/head/; revision=13941
* Remove unnecessary typedef. All inclusions of <rpc/auth.h> in the sourceJeffrey Hsu1996-01-311-7/+3
| | | | | | | | tree are preceded by an inclusion of <rpc/types.h>, so the 32-bit fixed sized type u_int32_t is already available to us. Notes: svn path=/head/; revision=13778
* Fix a bunch of spelling errors in the comment fieldsMike Pritchard1996-01-3020-51/+51
| | | | | | | of a bunch of system include files. Notes: svn path=/head/; revision=13771
* Add a missing "chmod 755 /usr/include/ufs" when copies of the includeMike Pritchard1996-01-231-1/+2
| | | | | | | files are installed instead of symlinks. Notes: svn path=/head/; revision=13589
* Submitted by: john birrelJulian Elischer1996-01-222-0/+321
| | | | | | | | | Obtained from: uthread package thrreads definitions Notes: svn path=/head/; revision=13547
* Reviewed by: julian and (hsu?)Julian Elischer1996-01-223-4/+12
| | | | | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations Notes: svn path=/head/; revision=13545
* Update resolver include files to bind-4.9.3-rel levelPeter Wemm1996-01-072-2/+4
| | | | Notes: svn path=/head/; revision=13297
* This commit was generated by cvs2svn to compensate for changes in r13122,Peter Wemm1995-12-301-151/+0
| | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=13123
* recording cvs-1.6 file deathPeter Wemm1995-12-301-36/+0
| | | | Notes: svn path=/cvs2svn/branches/ATT/; revision=13122
* *groan* Fix yet _ANOTHER_ discrepancy between the NIS protocol definitionBill Paul1995-12-221-2/+6
| | | | | | | | | | and real life. YPPUSHPROC_XFRRESP is supposed to return void and take an argument of type yppushresp_xfr, not the other way around as yp.x seems to imply. (I spent two hours today staring intensely at my prototype ypxfr code and scratching my head before I finally figured this out.) Notes: svn path=/head/; revision=12957
* *sigh* Yet another bogosity: the YPPROC_FIRST procedure is listed asBill Paul1995-12-091-2/+5
| | | | | | | | | | taking an argument of type ypresp_key. This is incorrect: it should be ypresp_nokey. (yp_first() is supposed to return the first key in a given map; the server doesn't need any client-specified key to handle such a request.) Notes: svn path=/head/; revision=12690
* "What? He's modifying the NIS protocol definition!?"Bill Paul1995-12-081-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No, not really. There are just a couple of long-standing bogosities here that I feel compelled to fix. :) There are two small changes here: 1) yp.x actually contains _three_ protocol definitions: YPPROG (standard NIS client/server procedures), YPPUSH_XFRRESPPROG (callback handler for the YPPROC_XFR service, aka ypxfr/yppush) and YPBINDPROG (for ypbind, ypset & friends). The problem is that when you run yp.x through rpcgen(1), it generates client and server stubs with hooks for all three services. This makes it impossible to actually use the rpcgen-erated code in a program that only deals with _one_ of these services (ypserv, ypbind, etc...) without manually removing the unneeded stubs (either by hand editing or by committing unspeakable horrors with sed). This defeats the whole purpose of using rpcgen and is generally annoying. What I've done is to insert a few #ifndefs and #endifs to allow a programmer to selectively blot out those functions that aren't needed for a particular program. For instance, if you do 'rpcgen -DYPSERV_ONLY', you'll get only the necessary client/server stubs to implement the standard yp client and server functions. If you do 'rpcgen -DYPBIND_ONLY', you get only what you need for ypbind. If you don't #define anything, you get the whole mess, just like before, so existing programs won't notice the difference. (Note that the -D flag is not supported by our existing crufty version of rpcgen, but I intend to update it soon.) 2) The definition for the ypresp_key_val structure is actually incorrect with respect to reality: the key and val members are specified in the wrong order. It should be val/key rather than key/val. For whatever the reason, Sun's actual NIS implementation contradicts the protocol definition in this case. Again, accounting for this bogosity here is cleaner and easier than mangling the output from rpcgen. Notes: svn path=/head/; revision=12677
* Removed reference to missing mp.h in comment. We have GNU MP now.Mark Murray1995-11-121-2/+1
| | | | Notes: svn path=/head/; revision=12241
* Fix isspecial/isphonogram, they was swappedAndrey A. Chernov1995-11-032-36/+26
| | | | | | | | | Remove EOF hack, now it is recognized per ANSI/POSIX Add upper bounds check Handle all negative chars inside locale functions Notes: svn path=/head/; revision=12028
* Submitted by: john hayJulian Elischer1995-10-271-2/+2
| | | | | | | add a link in /usr/include to /sys/netipx Notes: svn path=/head/; revision=11839
* Due conflict to some obsoleted applications (dump/restore) renameAndrey A. Chernov1995-09-231-1/+1
| | | | | | | | _PATH_LOCK to _PATH_UUCPLOCK Pointed-by: bde Notes: svn path=/head/; revision=10975
* Add _PATH_LOCK: /var/spool/lock/Andrey A. Chernov1995-09-201-0/+1
| | | | | | | Suggested-by: bde Notes: svn path=/head/; revision=10923
* Update the resolver include files to bind-4.9.3-beta24 level (from beta9p1)Peter Wemm1995-08-203-37/+59
| | | | | | | | | | Note: this was done by selective patching from diffs by hand, in order to not conflict with the 4.4BSD base code. Beta9 was done the same way. Obtained from: Paul Vixie <paul@vix.com> Notes: svn path=/head/; revision=10132
* Install the headers and sample files with 444 perms (as opposed toJoerg Wunsch1995-08-151-1/+2
| | | | | | | | | 555). Submitted by: graichen@sirius.physik.fu-berlin.de (Thomas Graichen) Notes: svn path=/head/; revision=10071
* Change `install' to `${INSTALL}' so that default install flags can beBruce Evans1995-08-062-6/+6
| | | | | | | | | | specified in the top level Makefiles. Previously I missed dozens of Makefiles that skip the install after using `cmp -s' to decide that the install isn't necessary. Notes: svn path=/head/; revision=9970
* Don't install bogus tzfile.h. In fact, don't install any tzfile.h.Garrett Wollman1995-08-051-2/+2
| | | | Notes: svn path=/head/; revision=9934
* Remove NOOBJ, we now need it.Rodney W. Grimes1995-07-131-4/+2
| | | | | | | | Remove JUST_TELL_ME hack, let the newvers.sh output fall into the obj dir, and add CLEANFILES= to clean up after it. Notes: svn path=/head/; revision=9512
* Add a sprinkling of ${.CURDIR} to some paths so that this worksRodney W. Grimes1995-07-131-5/+6
| | | | | | | | in the presence of an obj dir (though NOOBJ is set now, that shall change in the near future.) Notes: svn path=/head/; revision=9511
* Fix a bug I didn't manage to trigger until after committing previousGarrett Wollman1995-06-291-3/+3
| | | | | | | fix to header installation. Notes: svn path=/head/; revision=9375
* Make this include installation conform to the standard of all the rest:Garrett Wollman1995-06-291-14/+20
| | | | | | | | | | | - Don't do mkdir/chown/chmod - Do `cmp -s' before attempting to install a header This should fix the obnoxious problem of yp programs wanting to rebuild every time. Notes: svn path=/head/; revision=9374
* Fix standards conformance bugs in <signal.h>:Bruce Evans1995-06-281-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | include/signal.h: There was massive namespace pollution from including <sys/types.h>. POSIX functions were declared even when _ANSI_SOURCE is defined. sys.sys/signal.h: NSIG was declared even if _ANSI_SOURCE or _POSIX_SOURCE is defined. sig_atomic_t wasn't declared if _POSIX_SOURCE is defined. Declare a typedef for signal handling functions and use it to unobfuscate declarations and to avoid half-baked function types that cause unwanted compiler warnings at certain warning levels. Fix confusing comment about SA_RESTART. sys/i386/include/signal.h: This has to be included to get the declaration of sig_atomic_t even when _ANSI_SOURCE is defined, so be more careful about polluting the ANSI namespace. Uniformize idempotency ifdefs. Notes: svn path=/head/; revision=9343
* Changes to support version 3 of the NFS protocol.Doug Rabson1995-06-271-2/+0
| | | | | | | | | | | | | | | | | | | | | The version 2 support has been tested (client+server) against FreeBSD-2.0, IRIX 5.3 and FreeBSD-current (using a loopback mount). The version 2 support is stable AFAIK. The version 3 support has been tested with a loopback mount and minimally against an IRIX 5.3 server. It needs more testing and may have problems. I have patched amd to support the new variable length filehandles although it will still only use version 2 of the protocol. Before booting a kernel with these changes, nfs clients will need to at least build and install /usr/sbin/mount_nfs. Servers will need to build and install /usr/sbin/mountd. NFS diskless support is untested. Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca> Notes: svn path=/head/; revision=9336
* Change ld.so to correctly load dependant libraries for dlopen and unload themDoug Rabson1995-06-271-6/+14
| | | | | | | | | | | | | | | | | | | | on dlclose. Also correctly call constructors and destructors for libraries linked with /usr/lib/c++rt0.o. Change interpretation of dlopen manpage to call _init() rather than init() for dlopened objects. Change c++rt0.o to avoid using atexit to call destructors, allowing dlclose to call destructors when an object is unloaded. Change interface between crt0 and ld.so to allow crt0 to call a function on exit to call destructors for shared libraries explicitly. These changes are backwards compatible. Old binaries will work with the new ld.so and new binaries will work with the old ld.so. A version number has been introduced in the crt0-ld.so interface to allow for future changes. Reviewed by: GAWollman, Craig Struble <cstruble@singularity.bevc.blacksburg.va.us> Notes: svn path=/head/; revision=9335
* Remove trailing whitespace.Rodney W. Grimes1995-05-3028-123/+123
| | | | Notes: svn path=/head/; revision=8858
* Add prototype for ypbinderr_string().Bill Paul1995-04-211-1/+2
| | | | Notes: svn path=/head/; revision=7983
* Don't declare rune_t, putenv() or setenv() if _POSIX_SOURCE is declared.Bruce Evans1995-04-151-21/+19
| | | | | | | | | | | | | | | | Previously they were only guarded by `#ifndef _ANSI_SOURCE'. They are neither ANSI nor POSIX nor std and should never have been declared here. Declare functions like abs() as having attribute `__pure2'. Declaring them as having type `__pure' has been a no-op for some time. Delete obsolete comment about stub locale functions. Use consistent formatting for the rand48 functions. These and about 30 other functions should never have been declared here either. Notes: svn path=/head/; revision=7865
* Add err_set_file() and err_set_exit() functions to make it possible forGarrett Wollman1995-04-131-0/+2
| | | | | | | | programs which use err(3) to work nicely in a wider range of environments (e.g., dialog). Notes: svn path=/head/; revision=7803
* Reviewed by: ache and wollman (long ago)Bruce Evans1995-04-072-104/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix numerous ANSI conformance bugs and other nits. ctype.h: o There were no prototypes behind the macros (conformance bug). o isascii() didn't have enough parentheses (plain bug). o tolower() and toupper were always static inline (conformance bug? You could undef them and take their address, but this gave different addresses in different modules. You couldn't undef them and declare them (correctly) again). <stdio.h>'s treatment of putc() shows one way to handle this problem, but it only works because the putc() macro is allowed to reevaluate its args. I used a hack controlled by _EXTERNALIZE_CTYPE_INLINES_ to get <ctype.h> to generate the code (the previous hack involving _ANSI_LIBRARY_ goes away). This has the advantage that the core of the functions is only written down once and the disadvantage that another layer of functions is required. The extra layer goes away if inline functions are used, leaving only the problem of understanding why there are functions named toupper(), __toupper and ___toupper() as well as a macro named toupper. o Nothing seems to define _USE_CTYPE_LIBRARY_. Eliminate it o Let the user set _USE_CTYPE_INLINE_ and _DONT_USE_CTYPE_INLINE_ for full control over inlining. o The args for the inline functions didn't have enough underscores (conformance bug). o The formatting and ordering was inconsistent (style bug). o TODO: fix conformance bugs brought by including <runetype.h>. Notes: svn path=/head/; revision=7655
* Move inline args out of user namespace.Andrey A. Chernov1995-04-072-40/+40
| | | | | | | Obtained from: 1.x Notes: svn path=/head/; revision=7654
* Add a necessary include file for the catgets* routines.Jordan K. Hubbard1995-03-302-2/+50
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=7495
* add strhash.h for libc's new string hashing function.Jordan K. Hubbard1995-03-262-3/+67
| | | | Notes: svn path=/head/; revision=7387
* Add a couple of extra #defines for special keys to be embedded in theBill Paul1995-03-231-0/+4
| | | | | | | | | | | | | | | password databases: #define _PW_KEYPLUSBYNUM '5' /* special +@netgroup entries */ #define _PW_KEYMINUSBYNUM '6' /* special -@netgroup entries */ #define _PW_KEYPLUSCNT '7' /* number of +@netgroup entries */ #define _PW_KEYMINUSCNT '8' /* number of -@netgroup entries */ This is to help getpwent.c in libc build the +@netgroup/-@netgroup caches. Notes: svn path=/head/; revision=7256
* A little fix related to libm/msun migration.Poul-Henning Kamp1995-03-221-2/+2
| | | | | | | | Reviewed by: phk Submitted by: rgrimes Notes: svn path=/head/; revision=7242
* Comment out declaration of kvm_uread until it can be fixed correctly.Rodney W. Grimes1995-03-201-0/+2
| | | | Notes: svn path=/head/; revision=7189
* Change u_long to unsigned long to be consistent.Rodney W. Grimes1995-03-201-1/+2
| | | | Notes: svn path=/head/; revision=7188
* libkvm exports kvm_uread(), so do declare it in the header file.Joerg Wunsch1995-03-191-0/+1
| | | | | | | Got apparent by Philippe's -Wall patch for /usr/bin. Notes: svn path=/head/; revision=7167
* Create osreldate.h from sys/conf/newvers.sh if we an find it. ThisPoul-Henning Kamp1995-03-191-2/+10
| | | | | | | | should take a completely ridiculous reboot out of the "make release" process... Notes: svn path=/head/; revision=7152
* Correct chmod of /usr/include/rpcsvc to match mtree file.Rodney W. Grimes1995-03-181-2/+2
| | | | Notes: svn path=/head/; revision=7132