Commit Graph

547 Commits

Author SHA1 Message Date
bde
35696d7584 Don't even think about using a sysctl to build osreldate.h, since this
breaks cross-builds.  Just depend on ${.CURDIR}/../sys/conf/newvers.sh
existing.

Don't override the (correct) defaults for the depend, lint or tags target.

In LDIRS: fixed order-rot.  Don't comment out dead networking directories;
remove them.
1998-10-17 15:52:48 +00:00
jkh
72d6142ada Move auth.conf path in here. Doesn't affect published interface. 1998-10-09 07:34:47 +00:00
ache
7affec232e back out h2ph from here, Bruce found another proper place 1998-10-02 13:00:58 +00:00
ache
4379a4bc09 Add h2ph call to afterinstall target
Error code ignored to allow building without perl installed
1998-10-02 00:49:43 +00:00
wpaul
fc7b569c0d #ifdef out DES ioctls which don't exist in FreeBSD. These originated
with the SunRPC code to allow the use of hardware DES on certain Sun
hardware that supported it (if you installed the appropriate kit). We
don't have them and they apparently break the ioctl table
generation for kdump.

Pointed out by: bde
1998-09-26 01:29:51 +00:00
bde
03f3a48c02 Don't declare functions without a prototype if KERNEL is defined. This
fixes lots of warnings about missing prototypes in sys/netatm/spans/*.
1998-09-21 02:43:30 +00:00
obrien
a7356a5e9f Build headers with -DWANT_NFS3.
(finishing up on Amd upgrade)
1998-09-17 19:51:40 +00:00
dfr
e0131d813d Adjust the declarations of kvm_read and kvm_write to match reality a little
closer.
1998-09-16 09:30:14 +00:00
phk
e88115496e (this is an extract from src/share/examples/atm/README)
===================================
                HARP  |  Host ATM Research Platform
                ===================================

                              HARP 3

What is this stuff?
-------------------
The Advanced Networking Group (ANG) at the Minnesota Supercomputer Center,
Inc. (MSCI), as part of its work on the MAGIC Gigabit Testbed, developed
the Host ATM Research Platform (HARP) software, which allows IP hosts to
communicate over ATM networks using standard protocols.  It is intended to
be a high-quality platform for IP/ATM research.

HARP provides a way for IP hosts to connect to ATM networks.  It supports
standard methods of communication using IP over ATM.  A host's standard IP
software sends and receives datagrams via a HARP ATM interface.  HARP provides
functionality similar to (and typically replaces) vendor-provided ATM device
driver software.

HARP includes full source code, making it possible for researchers to
experiment with different approaches to running IP over ATM.  HARP is
self-contained; it requires no other licenses or commercial software packages.

HARP implements support for the IETF Classical IP model for using IP over ATM
networks, including:

   o IETF ATMARP address resolution client
   o IETF ATMARP address resolution server
   o IETF SCSP/ATMARP server
   o UNI 3.1 and 3.0 signalling protocols
   o Fore Systems's SPANS signalling protocol

What's supported
----------------
The following are supported by HARP 3:

   o ATM Host Interfaces
        - FORE Systems, Inc. SBA-200 and SBA-200E ATM SBus Adapters
        - FORE Systems, Inc. PCA-200E ATM PCI Adapters
        - Efficient Networks, Inc. ENI-155p ATM PCI Adapters

   o ATM Signalling Protocols
        - The ATM Forum UNI 3.1 signalling protocol
        - The ATM Forum UNI 3.0 signalling protocol
        - The ATM Forum ILMI address registration
        - FORE Systems's proprietary SPANS signalling protocol
        - Permanent Virtual Channels (PVCs)

   o IETF "Classical IP and ARP over ATM" model
        - RFC 1483, "Multiprotocol Encapsulation over ATM Adaptation Layer 5"
        - RFC 1577, "Classical IP and ARP over ATM"
        - RFC 1626, "Default IP MTU for use over ATM AAL5"
        - RFC 1755, "ATM Signaling Support for IP over ATM"
        - RFC 2225, "Classical IP and ARP over ATM"
        - RFC 2334, "Server Cache Synchronization Protocol (SCSP)"
        - Internet Draft draft-ietf-ion-scsp-atmarp-00.txt,
                "A Distributed ATMARP Service Using SCSP"

   o ATM Sockets interface
        - The file atm-sockets.txt contains further information

What's not supported
--------------------
The following major features of the above list are not currently supported:

        o UNI point-to-multipoint support
        o Driver support for Traffic Control/Quality of Service
        o SPANS multicast and MPP support
        o SPANS signalling using Efficient adapters

This software was developed under the sponsorship of the Defense Advanced
Research Projects Agency (DARPA).

Reviewed (lightly) by:	phk
Submitted by:	Network Computing Services, Inc.
1998-09-15 11:44:44 +00:00
gibbs
1937a8c28f Add new cam include hierarchy. 1998-09-15 10:22:37 +00:00
imp
96fb246758 Add reallocf to the library. This function is simliar to realloc, but
when it returns NULL to indicate failure, it will also free the memory
that was passed to it, if that was non-null.

This does not change the semantics of realloc.

A second commit will be done to commit the conversion of those places in
the code that can safely use this to avoid memory leaks when confronted
with low memory situations.

Beaten-to-death-but-finally-approved-in: -current
1998-09-14 20:34:34 +00:00
dt
b25757c2f6 Change return type of strptime from const char* to char*.
const char* was wrong and nonstandard.
1998-09-12 21:13:29 +00:00
wollman
65897ca373 A small last-minute iitem for 3.0:
- Fix some style errors I made back in 1995.

- Add a new flavor of the err(3) family, which takes an explicit
  errno argument rather than implicitly examining errno.  This
  will make it easier to use these functions in conjunction with
  modern library interfaces that return an errno value explicitly.
1998-09-12 21:02:22 +00:00
kato
cf29cd62b0 Change i386 in a few paths to ${MACHINE} to support MACHINE=pc98. 1998-09-09 11:13:55 +00:00
jdp
0bb6368d5e Add a new library function getobjformat(). It checks all the
standard places ("/etc/objformat", ${OBJFORMAT}, argv) for an
indication of the user's preferred object file format.  This
consolidates some code that was starting to be duplicated in more
and more places.

Use the new function in ldconfig.

Note: I don't think that gcc should use getobjformat(), even though
it could.  The compiler should limit itself to functions that are
widespread, to ease porting and cross-compilation.
1998-09-09 01:21:25 +00:00
obrien
197549a134 Add support for the RPC 64-bit integer type ``hyper''. 1998-09-08 17:33:12 +00:00
brian
49e8b6c146 Remove the extern decl of ``h_errno''. It's already
externed in netdb.h - where all of its #define values
live.  If anything requires h_errno here (nothing in
/usr/src seems to) it's almost definitely broken.
1998-09-07 19:54:08 +00:00
alex
90a31b51e3 Implement pthread read/write locks as defined by Version 2 of the Single
UNIX Specification.

As with our standard mutexes, process shared locks are not supported at
this time.
1998-09-07 19:01:43 +00:00
obrien
f8462ac6ab Fix tons of cut-n-paste errors in the WANT_NFS3 code. 1998-09-06 09:21:35 +00:00
jdp
312c9bcd16 Add hints file structures and defines. 1998-09-05 00:53:53 +00:00
jb
58eb214a68 Add the prototype for sigwait(). 1998-08-25 11:08:22 +00:00
jkoshy
659fe6a8be Add extern declaration for `tzname[]' to make this header comply better
to POSIX90.

2-rounds-of-review-by: bde
1998-08-21 01:21:26 +00:00
dfr
71242795f4 Move the include of <machine/ansi.h> to before <sys/signal.h>. 1998-08-05 08:51:48 +00:00
bde
e74f1e7d32 Fixed garbage after comment after #endif. Fixed reversed sense of same
comment.
1998-08-03 10:59:02 +00:00
alex
17a5de3339 Added iso646.h as defined by the Single UNIX Specification, version 2. 1998-08-01 13:42:12 +00:00
jkh
e30ebc9096 MF22: prototype fix. 1998-07-16 00:10:14 +00:00
bde
ead15fb933 Added macros __printflike() and __scanflike() to <sys/cdefs.h>.
Use them to `make gcc -Wformat' check formats for all printf-like
and scanf-like functions in /usr/src except for the err()/warn()
family.  err() isn't quite printf-like since its format arg can
legitimately be NULL.  syslog() isn't quite printf-like, but gcc
already accepts %m, even for plain printf() when it shouldn't.
1998-07-13 06:45:23 +00:00
bde
fdfd06ecda Fixed whitespace lossage and long lines in previous commit. 1998-07-11 13:25:09 +00:00
dt
9a60d7ac26 Declare lockf(). 1998-07-08 15:14:48 +00:00
peter
69c1e8f158 New flag for internal stdio use to enable dynamic string allocation for
asprintf() implementation.

Obtained from: Todd Miller <Todd.Miller@courtesan.com> via OpenBSD
1998-07-08 00:52:40 +00:00
bde
6cb4780d42 Complete the switch to using gcc-2.4 features to declare fpos_t ,
as threatened in the 4-5 year old comment.  Most of the change is
in <machine/ansi.h>; this commit just removes cruft for the strict
ANSI case.  64-bit types couldn't actually be defined using
__attribute__(()) in gcc-2.4, since attribute names in the
implementation namespace only became available in gcc-2.7.  I've
probably just broken gcc-2.6 support by using the gcc-2.7 names
unconditionally.
1998-06-14 16:04:20 +00:00
peter
8233ce4d67 Damn, bind8 includes added <arpa/nameser.h> as a prerequisite for
<resolv.h>.  This breaks user ppp at least, and goodness knows how
many ports. :-(

This a bit of a hack, but is probably simpler than duplicating the
typedefs and protecting them from each other.

Also, remove some temporary XXX notes that I forgot to remove before.
1998-06-11 12:52:45 +00:00
peter
a28616a8d9 Install arpa/nameser_compat.h 1998-06-11 08:56:40 +00:00
peter
47931ccb07 Update nameserver interface to bind-8.1.2 levels. We do not use IRS (yet?)
since it has far wider impact than hostname lookups (including passwords).
Note that this has more ugly symbol hiding and binary compatability hacks
that can go away the second we bump majors.

Obtained from:  Mostly from diff against ISC bind-8.1.2 sources
1998-06-11 08:55:17 +00:00
phk
5fb115f6bd This is a prototype implementation of the draft-mogul-pps-api-##.txt
paper.

It will be updated along with the draft and possible subsequent
standard.

The ppbus based pps driver is updated to implement this API.
1998-06-07 19:44:22 +00:00
dfr
3655208d8e Add GDB support for ELF shared libs. 1998-05-23 15:17:53 +00:00
eivind
5469374fe3 Move __FreeBSD_version from src/sys/conf/newvers.sh to
src/sys/sys/param.h, to facilitate access from the kernel.  This make
it possible to do outside kernel development and have it actually work
properly.
1998-05-21 19:21:46 +00:00
peter
077760d083 nuke signanosleep(). 1998-05-14 11:33:04 +00:00
jb
98a94bbde8 Change the return types for strtoq and strtouq to int64_t and u_int64_t
instead of long long and unsigned long long. Really they should be
quad_t and u_quad_t, but that would require sys/types.h and this
header only includes machine/types.h. The difference here is that
int64_t and u_int64_t on alpha are long and unsigned long, not
long long etc. This is required to pass gcc's type checking where
long != long long even though they are the same size of alpha.
1998-05-11 09:22:21 +00:00
jb
db5407b77a ut_time is a time_t, not a long. 1998-05-10 21:13:30 +00:00
jb
056a9a55e2 I have a long list of issues to address here, mostly related to
namespace and revision levels of ANSI and POSIX. This change only
removes the leading underscrore from the FILE locking functions
that POSIX defines.
1998-05-05 21:59:19 +00:00
ache
965709d1dd Prototypes/typedefs cleanup
Add NL_CAT_LOCALE (will be implemented soon)
1998-04-30 10:09:58 +00:00
ache
dd508b2f30 Basic support for LC_MESSAGES 1998-04-29 22:39:56 +00:00
brian
53ce99e56a Remove duplicate decls
Not objected to by: freebsd-hackers
1998-04-19 15:28:08 +00:00
phk
07df2a86ef ctime_r and asctime_r are not implemented.
prototypes in time.h do not match POSIX.

PR:		6345
Reviewed by:	phk
Submitted by:	Dmitry Khrustalev <dima@xyzzy.machaon.ru>
1998-04-19 06:47:25 +00:00
jb
97eb3119e7 Format changes in an attempt to address some of Bruce's comments
about spaces and tabs.

The externs in the static inline functions remain 'cause (a) they're
required; and (b) I can't find any gcc -W* cases where they generate
warnings.
1998-04-12 20:29:24 +00:00
jb
acaa0ae7c1 Add *_unlocked() macros according to POSIX. In the _THREAD_SAFE case,
test for __isthreaded before calling the lock/unlock functions to
try to save some performance. The _THREAD_SAFE case should become the
default, but since it tests for a global variable in libc, people won't
be able to build -current on pre-3.0 systems unless the default leaves
it out. Such is life.
1998-04-11 07:33:46 +00:00
jb
5755b290e5 Add a function prototype to set the name of a thread for debugging
purposes.
1998-04-11 02:50:59 +00:00
jb
6068ab5f5d Add static initializer defines as specified by POSIX. 1998-04-04 10:59:42 +00:00
dufault
2c8366e69b Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and
_KPOSIX_PRIORITY_SCHEDULING options to work.  Changes:

Change all "posix4" to "p1003_1b".  Misnamed files are left
as "posix4" until I'm told if I can simply delete them and add
new ones;

Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux;

Add man pages for _POSIX_PRIORITY_SCHEDULING system calls;

Add options to LINT;

Minor fixes to P1003_1B code during testing.
1998-03-28 11:51:01 +00:00
bde
d2b76327b2 Added forgotten declaration of mkdtemp(). 1998-03-12 13:54:51 +00:00
dufault
0ad5d7754e Remove AIO_LISTIO_MAX until it is done properly. 1998-03-08 22:29:56 +00:00
dufault
e4e6e4c40b Put sigevent and AIO_LISTIO_MAX back in aio.h so
that kernels can be built.
1998-03-08 22:21:12 +00:00
jb
19ade9dd5f My sched.h is getting walloped by Peter Dufault's. Nuke mine. Sorry. 1998-03-08 21:36:41 +00:00
dufault
1756693a64 Reviewed by: bde
Changes to support building with _POSIX_SOURCE set to 199309L:

1. Add sys/_posix.h to handle those preprocessor defs that POSIX
says have effects when defined before including any header files;

2. Change POSIX4_VISIBLE back to _POSIX4_VISIBLE

3. Add _POSIX4_VISIBLE_HISTORICALLY for pre-existing BSD features now
defined in POSIX.  These show up when:

_POSIX_SOURCE and _POSIX_C_SOURCE are not set or
_POSIX_C_SOURCE is set >= 199309L

and vanish when:

_POSIX_SOURCE is set or _POSIX_C_SOURCE is < 199309L.

4. Explain these in man 9 posix4;

5. Include _posix.h and conditionalize on new feature test.
1998-03-08 17:25:38 +00:00
jb
18b44e0abe Add a POSIX sched header. pthread_yield() in draft 4 becomes
sched_yield() in the final draft (10). This header contains the
prototype. Other things in here are "future".
1998-03-08 02:17:26 +00:00
dufault
41966d30a6 Reviewed by: msmith, bde long ago
POSIX.4 headers and sysctl variables.  Nothing should change
unless POSIX4 is defined or _POSIX_VERSION is set to 199309.
1998-03-04 10:27:00 +00:00
bde
e51b216ce4 Moved include of <sys/cdefs.h> earlier for the same reasons as moving
it in <sys/types.h>.

PR:	5785
1998-02-27 06:12:47 +00:00
bde
f4f2a71cef Removed _POSIX_SOURCE ifdefs. This is not a POSIX.1 header. 1998-02-25 02:15:59 +00:00
bde
43294f614d Uncommit the generated file key_prot.h. Install it from where it
is generated.  It must be installed in both /usr/include/rpc/ and
/usr/include/rpcsvc/ for historical reasons.  The generated version
was once missing ANSI prototypes because the wrong flags were passed
to rpcgen, but that is fixed now.  The committed version had `#pragma
indent' which gratuitously broke K&R support.  Apart from this, all
versions before and after this commit are identical.
1998-02-13 03:10:28 +00:00
jdp
50302bb91c Replace bogus "@(#)err.h 8.1 (Berkeley) 6/2/93" with RCS Id keyword.
Somebody must have blindly copied the leader comment when they
created this file.
1998-02-11 05:19:10 +00:00
jdp
869c15e6f9 Remove the include of <dlfcn.h> from crt0.c; it is not needed now
that the dl* trampolines have been moved into libc.

Move dlfcn.h from src/lib/csu/i386 into src/include.  Nothing in
src/lib/csu/i386 uses it any more.
1998-02-11 04:57:25 +00:00
jdp
a1b356b0ca Implement dladdr. 1998-02-06 16:46:46 +00:00
steve
93b158108e XOpen says the void setpwent(void) is correct. Also call setpassent(0)
instead of duplicating code, albeit trivial (inspired by NetBSD).

PR:		5524
1998-02-01 06:16:08 +00:00
imp
6e9b01c880 kill ufs/lfs so that make installworld completes successfully. 1998-01-31 05:54:54 +00:00
jb
300dc23585 Suggested by: bde
Move sigjmp_buf and jmp_buf structure definitions to machine/setjmp.h
so that i386 can continue to use int as the basic register type and
alpha can use long. Bruce was concerned about possible differing
alignment. I've left the definition of _JBLEN in machine/setjmp.h
even though Bruce's example used the number directly. I don't know if
any other code relies on _JBLEN, so I left it to avoid potential
breakage.
1998-01-20 09:09:24 +00:00
wpaul
cba7c7689e Invoke rpcgen with -C so that headers are created with ANSI prototypes.
Note: this may cause some problems in a few cases. With very old versions
of rpcgen, if you defined a procedure called foo, then rpcen would create
client stubs for function foo_1() and server stubs _also_ with function
foo_1(). This only worked because of the lack of ANSI prototypes: the
client side stub takes different arguments than the server side stub.
(The client side takes a CLIENT * handle, while the server side wants
an svc_req *.)

To fix this conflict, rpcgen in ANSI mode generates foo_1() for the client
and foo_1_svc() for the server. RPC server code that depends on the old
behavior might break because of this. (Fixing it is just a matter of
adding the _svc suffix onto the server procedure names.)
1998-01-19 17:19:09 +00:00
bde
2249f38866 Added missing declaration of signanosleep(). 1998-01-16 12:44:20 +00:00
bde
ceb22d1eaf Fixed pedantic syntax error (trailing comma in enum). 1998-01-16 12:39:20 +00:00
bde
8e3c26a944 Removed `#pragma ident' (for a FreeBSD Id) so that the K&R support
isn't gratuitously broken.  This also prevents ANSI compilers from
recognizing the pragma as a request to run /usr/games/hack...
FreeBSD Ids should be in comments or rcsids, not in `#pragma ident's
(which are equivalent to comments when compiled by gcc), and the
only FreeBSD change in this file seems to be adding the Id.
1998-01-16 12:28:09 +00:00
bde
41a706ae39 Commented out `#pragma ident' (for a Sun id) so that the K&R support
isn't gratuitously broken.  This also prevents ANSI compilers from
recognizing the pragma as a request to run /usr/games/hack...
1998-01-16 12:20:41 +00:00
bde
97b0484d80 Removed redundant declarations. rpcgen generates `typedef enum foo;'
from `enum foo;'.
1998-01-16 12:17:55 +00:00
bde
fc0a8856c1 Made this header self-sufficent. It had unnecessary dependencies on
<sys/cdefs.h>, <sys/types.h>, <rpcsvc/yp_prot.h>, and on the latter's
prerequisites (5 more).
1998-01-16 12:10:13 +00:00
bde
71ff0f9823 Fixed a missing dependency. 1998-01-16 11:51:19 +00:00
bde
008de0d31f Null change to attach the correct log message for the previous commit:
Added some forward struct declarations so that this file is less
self-insufficent.
Fixed an incomplete prototype.
Fixed some misformattings.
1998-01-16 11:47:51 +00:00
bde
9146faef8f Added a forward struct declaration so that this file is less
self-insufficent.
1998-01-16 11:46:05 +00:00
bde
16e1efdb84 Commented out `#pragma ident' so that the K&R support isn't gratuitously
broken.  This also prevents ANSI compilers from recognizing the pragma
as a request to run /usr/games/hack...
1998-01-16 11:37:54 +00:00
bde
3e7fdf1ee9 Translated to `C' - commented out #ident. 1998-01-16 10:31:46 +00:00
jb
586f9984e3 Move _JBLEN definition to <machine/setjmp.h> like on NetBSD. Remove
definitions for architectures that we don't have libc MD source for.

Change 'int' to 'long' in sigjmp_buf and jmp_buf structures so
that they are suitable for the register size on both i386 and alpha.
Although FreeBSD defines these structures differently to NetBSD,
the element size is now the same.

If Bruce doesn't like this [8-)], we'll need to add a typedef to
each <machine/setjmp.h> and use that in <setjmp.h>.
1998-01-11 03:46:26 +00:00
jkh
6f97a37297 unborkify osreldate.h install (change \ to / - someone was in DOS mode! ;) 1998-01-02 09:39:12 +00:00
steve
d75200b0d2 Install osreldate.h from ${.OBJDIR}.
Submitted by:	Bruce Evans <bde@zeta.org.au>
1998-01-01 23:17:05 +00:00
alex
5548e5b443 Added missing caddr_t --> void * conversions for sys/mman.h functions.
Submitted by:	bde
1998-01-01 17:07:46 +00:00
steve
a7df095af8 Don't include sys/syslimits.h if _ANSI_SOURCE is defined.
PR:		5119
Discussed with:	Bruce Evans <bde@zeta.org.au>
1997-12-27 22:56:41 +00:00
alex
1707c1170c Changed pthread_detach to conform to POSIX, i.e. the single argument
provided is of type pthread_t instead of pthread_t *.

PR:		4320

Return EINVAL instead of ESRCH if attempting to detach an already
detached thread.
1997-12-25 05:07:20 +00:00
jdp
2fc70517c2 Move nlist related defines from link.h into nlist.h. Clean up
nlist.h.
1997-12-06 17:59:52 +00:00
jdp
ece28f242e Remove the prototypes for dlopen and related functions. They don't
belong here.  The standard place for them is <dlfcn.h>, and there is
already another copy of the prototypes there.
1997-11-28 19:05:11 +00:00
charnier
b0cd5dfd7d Add Ids, from lite2. 1997-11-24 07:36:46 +00:00
brian
e379383589 const correctness for dl*() 1997-11-22 03:34:46 +00:00
charnier
486ca5a377 Remove sccsid, not present in Lite2. 1997-11-20 07:18:07 +00:00
charnier
4855493bb7 Add const to rcsid[] definition so that -Wall will not complain. 1997-10-31 12:26:52 +00:00
ache
254cc0351e Change usleep return type from void to int to match OpenGroup specs. 1997-10-22 10:57:54 +00:00
joerg
c8e39b3bc9 Declare the various 2-byte values in TFTP as being `unsigned short'.
RFC 1350 isn't very explicit about this, but the use of signed
integers doesn't seem to make sense.

Should be in 2.2.5, but is probably too late to be verified completely.

PR:		bin/4502
Submitted by:	Dirk Nehrling <nerle@pdv.de> via Lars Koeller
1997-10-19 16:48:50 +00:00
markm
f9a95eb59a Reinsert telnet.h into the list of files installed into include/arpa/
I suspect a commit of mine had this (bogusly).
1997-10-03 18:10:35 +00:00
markm
a3416e44c6 Changes for KTH KerberosIV.
telent.h is installed from libtelnet, not the include dir.
1997-09-28 09:12:04 +00:00
ache
3d358ac316 Oops, fix typo in istype definition 1997-09-27 04:30:50 +00:00
ache
24723f5ea1 1) Bring '!!' back since we wan't overflow even a char
2) Revive __maskrune, just return mask now
3) Express __istype via !!__maskrune
4) Use __maskrune in digittoint
1997-09-27 04:22:47 +00:00
ache
a474f1d27c Oops, wrong version of digittoint fix was commited, step back to v1.8
instead just remove '!!' to make digittoint() work and re-arrange
things a little
1997-09-25 22:44:21 +00:00
ache
4a9976d16a Fix digittoint broken long ago
Redesign to allow digittoint work for runes too
__maskrune removed, __istype become a macro, __runeflags added
1997-09-25 22:27:45 +00:00
peter
64d29e3442 Bandaid for the build-breaking reference to _BSD_RUNE_T_. I'm not sure
that this is right, but the old reference defaintely was not.
1997-09-25 03:06:19 +00:00
julian
8bf2631232 Submitted by: Sin'ichiro MIYATANI / Phase One, Inc <siu@phaseone.co.jp>
Basic support for the Shift JIS encoding of japanese.
(and one tiny typo fixed in a comment)
1997-09-24 20:38:12 +00:00
bde
44dda1fbdf Removed installhdrs target. It was an unnecessary complication. 1997-09-16 10:52:59 +00:00
peter
03477138d2 SYSV has both <poll.h> and <sys/poll.h>. (poll.h merely #includes
sys/poll.h).  Just provide a link, it's close enough. :-)  In an ideal
world the prototype for poll() would be in <poll.h> but some code seems
to expect it in <sys/poll.h>, so we can't win there.
1997-09-14 03:32:44 +00:00
brian
3828f693c8 Add "options no_tld_query" to resolv.conf.
Mention the capability in resolver(5).
Mention that RES_OPTIONS can be used in resolver(5).
Discussed with: -hackers
1997-09-01 01:19:23 +00:00
bde
ba137bd5f5 Removed ifndef of AUTH_NONE. The conflict with login_cap.h was fixed
better by not defining AUTH_NONE in login_cap.h.
1997-08-21 19:31:04 +00:00
bde
04de77a71d Don't traverse subdirectories twice for normal installs. 1997-08-21 18:40:04 +00:00
bde
856fd9a972 Fix and simplify installhdrs target. It didn't install the headers in
${HFILES} and it's simpler to install the non-headers in ${XFILES}.
1997-08-21 18:33:13 +00:00
jmg
4a46de0315 fix a problem with headers not being installed properly... basicly the
installhdrs target was not being propagated to the subdirs...

also fix rpcsvc's Makefile to have a installhdrs target to install the
headers..
1997-08-21 09:29:49 +00:00
peter
ed7dc25832 Prototypes for getsid() and getpgid(). Also, prefix type names in
setpgrp() prototype with _ as per style(9).
1997-08-19 06:19:45 +00:00
peter
091d5c1ac7 split beforeinstall hook up so that the header install stuff is reachable
without risking invoking ${SHARED}.
1997-08-18 06:28:47 +00:00
steve
dc1265352a Make this compile with the -traditional cc flag.
PR:		misc/2189
Submitted by:	Lars Koeller <Lars_Koeller@odie.physik2.uni-rostock.de>
1997-08-16 23:32:42 +00:00
fenner
8ec80b77b1 Fix typo: "send" -> "end"
PR:		bin/3474
Submitted by:	graphix@iastate.edu (Kent Vander Velden)
1997-08-11 04:19:11 +00:00
joerg
7b5e03b128 Import strptime(3) into libc. We've got permission by Kevin Ruddy to
modify the original `no modifications' copyright message, and i've
included his mail into the source file.

The common localization functions between strptime(3) and strftime(3)
have been broken out into timelocal.[ch].
1997-08-09 15:43:59 +00:00
jdp
77516da96f Implement dlsym(RTLD_NEXT, symbol). 1997-08-02 04:56:44 +00:00
asami
f664a74eab Use relative symlinks so they work even when ${DESTDIR} is not empty.
Reviewed by:	jkh, bde
1997-07-31 11:32:25 +00:00
peter
1a608ac729 kill the undead 1997-07-13 14:26:00 +00:00
peter
07c1c7a86d merge in bind-4.9.6 changes (only effect is __res_send #define reverted) 1997-06-27 08:32:38 +00:00
msmith
0be19c44c7 Update histedit.h to match the new libedit.
Obtained from:	NetBSD
1997-06-25 09:47:31 +00:00
msmith
80b190ca31 Add stringlist functions from NetBSD. (required for the new ftp(1)
Obtained from:	NetBSD
1997-06-25 08:04:52 +00:00
ache
fdf0c475fd Move machine/types.h to non-standard section
Change order of arc4* functions
Pointed-by: bde
1997-06-14 10:45:25 +00:00
ache
f407905958 Add arc4random family declaration 1997-06-14 01:33:52 +00:00
ache
4a2f1e93f9 Instead of copying fallback code over and over in each program,
implement (better) falback code inside srandomdev() itself.
Change return type from int to void (binary compatibility surprisely
achieved). Userland code will be changed soon.
1997-06-14 00:14:29 +00:00
jkh
fad8799dcf Go to SHARED=copies by default.
Agreed-upon by:	lots-o-folks.
1997-06-05 21:20:58 +00:00
wpaul
a2a0b68044 Undo small change I accidentally left in while testing (files were
installed with wrong ownerships).

Pointed out by: bde
1997-05-28 16:26:05 +00:00
wpaul
86732f9627 Add new files in include/rpc. 1997-05-28 04:46:38 +00:00
wpaul
1d2ffe6fc4 Resolve conflicts. 1997-05-28 04:45:15 +00:00
wpaul
5f7416f0cf This commit was generated by cvs2svn to compensate for changes in r26209,
which included commits to RCS files with non-trunk default branches.
1997-05-28 04:42:53 +00:00
wpaul
089fad5140 Resolve conflicts. 1997-05-28 04:38:30 +00:00
wpaul
34b9627195 This commit was generated by cvs2svn to compensate for changes in r26206,
which included commits to RCS files with non-trunk default branches.
1997-05-28 04:35:55 +00:00
jdp
23d8c620e4 Fill out the ELF header files to make them more or less complete.
Fix a macro name that was misspelled both in brandelf.c and
imgact_elf.h.
1997-05-21 23:07:31 +00:00
peter
22e2fc703b fix missing close comment in login_cap additions 1997-05-18 08:12:14 +00:00
peter
1d22ac4810 struct timespec needs to be useable with just <time.h>, but needs to not
conflict with the kernel visible one.  Make the new stuff not visible if
_ANSI_SOURCE or _POSIX_SOURCE is defined (!) because the new things are
not part of the base 1003.1-1990 standard (or ansi).
1997-05-13 09:33:24 +00:00
peter
93c2da6350 remove stray forward declaration for struct timespec
Pointed out by: bde
1997-05-13 09:25:15 +00:00
ache
8aa848d325 Add clockid_t definition like in sys/types.h to allow time.h
to be included without sys/types.h, it fixes broken groff compilation
1997-05-13 09:25:03 +00:00
peter
f6a5eaf126 Oops, move clock_*() and nanosleep() to time.h
Submitted by: Peter Dufault <dufault@hda.com>
1997-05-12 12:58:40 +00:00
peter
5bf8948bb6 prototype clock_settime(), clock_gettime(), clock_getres(), nanosleep(). 1997-05-12 09:57:39 +00:00
peter
04e5df0a35 Build osreldate.h at build time rather than install time. This fixes
a breakage with 'make reinstall' on a read-only source tree.
1997-05-12 09:50:19 +00:00
davidn
d6c38a2770 Removed login_cap.h, now moved to src/lib/libutil. 1997-05-10 12:50:03 +00:00
eivind
68be876952 Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
eivind
fe5c8cc71f Back out part of yesterdays changes. They were obviously not tested well
enough :-(  (With backout on this file, libc compiles.  'make world' isn't
finished yet.)

Pointed out by: Oliver Roberts
1997-05-07 19:10:49 +00:00
eivind
1da58ff8ab Make a lot of include-files self-contained. I excluded the patches changing
int's to gid_t and uid_t - should I commit these, too?

Closes PR misc/2625.

Submitted by:	Julian Assange <proff@iq.org>
1997-05-07 02:27:18 +00:00
bde
9480252226 Fixed missing __P() to complete the K&R support in this header. 1997-05-07 00:58:23 +00:00
asami
4a99c13863 Don't try to install f2c'h now that it's installed from
/usr/src/usr.bin/f2c. :)
1997-04-25 09:58:24 +00:00
jmz
3bb815e95e This file is a duplicate of src/usr.bin/f2c/f2c.h
Reviewed by:	bde
1997-04-24 17:03:41 +00:00
dfr
7255f3ac31 Add protocol definitions for NFSv3. Use -DWANT_NFS3 with rpcgen to get
the new protocol.

Obtained from: rfc1813
1997-04-18 12:31:27 +00:00
bde
c6bd28908e Fixed spelling of isnetworktty.
Fixed stray whitespace.
1997-04-14 13:33:20 +00:00
bde
424af3040a Fixed some style bugs. 1997-04-13 15:52:26 +00:00
bde
7533d16134 Removed nonstandard #include of <sys/types.h>.
Use _BSD_OFF_T_ instead of off_t so that we're still self-sufficent.

Copied the ftruncate/lseek()/mmap()/truncate() redeclaration hacks
from <sys/types.h> so that things depending on them don't break.
1997-04-13 15:50:07 +00:00
bde
a88742ac00 #ifdef'ed the declaration of lseek() so that -Wredundant-decls doesn't
cause noise.

Duplicated the lseek() redeclaration hack for all functions involving
off_t's (ftruncate(), mmap() and truncate()) to help broken programs
work.
1997-04-13 15:38:10 +00:00
davidn
ca879b247e Add bitflags TTY_NETWORK/TTY_DIALUP and interface functions which
make use of them.
1997-04-13 15:09:46 +00:00
paul
3aafa26aa4 This file is deprecated not "obsoleted". 1997-04-13 11:33:17 +00:00
jmz
7a7394169a Upgrade to the 1997/02/19 version. 1997-04-13 01:13:52 +00:00
peter
6ea1633f1a Declare issetugid()
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3200
1997-04-05 13:03:15 +00:00
peter
aaa9c184d3 Declare lchown().. 1997-03-31 12:52:52 +00:00
ache
124ff081c1 Add srandomdev() prototype 1997-03-23 22:44:27 +00:00
peter
d461670e14 Put text after #endif in a comment (it's illegal otherwise) 1997-03-14 17:53:35 +00:00
peter
c5ebecdfa9 Merge Lite2 changes -
move getopt etc declarations from stdlib.h to unistd.h
1997-03-11 11:18:25 +00:00
peter
05dfcb29c8 Merge Lite2 changes
(Just version number)
1997-03-11 11:16:27 +00:00
peter
8415e98f65 Merge Lite2 changes onto mainline:
- declare opendir2(), which is used to control how readdir() handles
 whiteouts etc.
1997-03-11 11:15:46 +00:00
peter
a7651ae03f This commit was generated by cvs2svn to compensate for changes in r23650,
which included commits to RCS files with non-trunk default branches.
1997-03-11 11:11:37 +00:00
peter
1c9bc538cc Import CSRG 4.4BSD-Lite2 includes onto vendor branch 1997-03-11 11:11:37 +00:00
bde
7caf0a8569 Don't use a dot in the chown command. In fact, don't use a chown command.
Use mtree instead of mkdir+chown+chmod to build the subdirectory hierachy.
The corresponding mtree command in src/etc/Makefile can't be relied on
because the hierachy gets blown away in the default SHARED=symlinks case.
1997-03-09 07:12:37 +00:00
alex
a20a95f89a Comment out _POSIX_THREAD_PRIORITY_SCHEDULING since it's not supported
at this time.

Reviewed by:	John Birrell <jb@cimlogic.com.au>
1997-03-04 01:30:50 +00:00
bde
76be8bdadf Install headers for isofs/cd9660 and msdosfs. The mount utilities need
them now that <sys/mount.h> no longer declares filesytem-specific mount
args structs.

Renamed some macros to be less ufs-centric.

Fixed order of mkdirs.  The order has been broken since the backwards
`.for' loop bug was fixed in `make' on 1996/09/21.
1997-03-02 14:06:24 +00:00
ache
978f7b3034 increase L_cuserid because UT_NAMESIZE increased 1997-03-02 13:41:23 +00:00
peter
0e0dfca0f9 Revert $FreeBSD$ to $Id$ 1997-02-23 09:21:14 +00:00
davidn
32c4d87971 Allow commonly-used "insecure" as a valid keyword in /etc/ttys.
This prevents keywords after "insecure" occurs being errnoeously
parsed as comments.
1997-02-15 05:45:00 +00:00
julian
d1044a244f Submitted by: John Birrell
uthreads update from the author.
1997-02-05 23:26:09 +00:00
mpp
8656d26584 Change to comment for fs_passno to reflect that it applies
to fsck and not dump.
1997-01-28 06:11:45 +00:00
ache
34dcef988f Change XOPEN constants to match FreeBSD reality and add some
comments to describe them
1997-01-16 08:27:18 +00:00
ache
66b5b74d7b Activate _POSIX_* stuff if !_ANSI_SOURCE
Add _XOPEN constants set, needed mainly to sense position arguments
in printf (vi cares at this moment)
Obtained from: NetBSD
1997-01-16 07:57:56 +00:00
jkh
9c0cd3f9df Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
davidn
b48a2f8556 Internationalise "authorize". 1997-01-09 04:16:18 +00:00
davidn
220feab87c Typo fix. 1997-01-07 13:04:38 +00:00
davidn
bd5fb406ac Move typedef for rlim_t into sys/types.h (as per NetBSD). 1997-01-05 18:32:00 +00:00
sos
11df20f961 Add the forgotten login_cap.h 1997-01-04 20:40:34 +00:00
davidn
2c24678255 Header for login class capabilities handling. 1997-01-04 16:43:58 +00:00
ache
a063e1cb61 Oops, remove FNM_NOCASE alias: really I can't remember any system
with this define, it was ftpd-inspired.
1997-01-02 19:05:16 +00:00
ache
ecf9ac6726 Add FNM_NOCASE and FNM_IGNORECASE as synonyms to FNM_CASEFOLD
for better compatibility with other systems
1997-01-02 18:27:22 +00:00
davidn
1b2d31aac3 Added group= facility to /etc/ttys for tty grouping for more
more manageable and convenient referencing by login.conf (login
class database) and (e.g.) login.access.

This is the first of a group of commits which implements the login
class capabilities database.
1997-01-02 08:05:43 +00:00
peter
adf3e68c3f Missed prototype for svc_getreqset2() 1996-12-31 09:08:44 +00:00
peter
87147b124f - Prototypes, including pointers to functions
- C++ safe
1996-12-30 14:01:12 +00:00
peter
01fe186ccd First commit of a series of cleanups for the libc rpc code which has been
suffering a bad case neglect for the last few years.

- Add full prototypes, including to function pointers.
- Make the wire protocols 64-bit type safe, eg: 32 bit quantities are
  int32_t, not long.  The orginal rpc code was implemented when an int
  could be 16 bits.

Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
1996-12-30 13:59:41 +00:00
peter
6c9f5fc903 Update 4.9.4-P1 -> 4.9.5-P1
Included here are definitions for the DNSSEC key management stuff.
1996-12-30 13:10:35 +00:00
peter
7fd89256f8 Update the resolver definitions from bind-4.9.4-P1 to 4.9.5-P1 level.
(More commits to come)
1996-12-30 13:08:54 +00:00
jkh
78628421ee Geeze, I'm really off-target on my Makefile hacking tonite. Guess I'll
go to bed. :-)  Revert this change which would have broken the ${DESTDIR}
relative link when chrooted.

Pointed-Out-To-My-Embarassment-By: bde
1996-12-30 07:38:51 +00:00
jkh
d4fcccc481 Add some missing ${DESTDIR}s here. 1996-12-30 04:52:54 +00:00
imp
ed3b2d55d7 string.h defines nonstandard routines when _POSIX_SOURCE is
defined.  It has been fixed to not do that.

Submitted by:	Jake Hamby <jehamby@lightside.com>
Closes PR:	1954
1996-12-17 19:35:43 +00:00
ache
c16a2f004f Fix compiler warning: /* inside comment
2.2 candidate
1996-12-05 14:46:57 +00:00
jkh
61bb20d91f Bump maximum username length to 16 characters. This brings us into
line with BSD/OS and Linux's username limits, making transitioning from
either operating system a lot easier than it is now.  I'm currently
running with this change on my system, as are several others, and have
experienced no ill effects.

This is not for 2.2!  This needs to get shaken out longer term in 3.0.

Previously-approved-by:  davidg
1996-12-04 11:31:14 +00:00
phk
2d3a80e08a Update to more current reality.
Reviewed by:	phk
Submitted by:	Robin Carey <robin@mailgate.dtc.rankxerox.co.uk>
1996-11-28 09:57:31 +00:00
wollman
8cb5385369 Matching routed.h to go along with latest routed. 1996-11-19 21:22:18 +00:00
hsu
6f7bb7776f Change prototypes for gmtime_r() and localtime_r() in accordance with
IEEE pthreads specification.
1996-11-11 09:22:13 +00:00
hsu
d76a6335ff Prototype pthread_mutexattr_getkind_np() and pthread_mutexattr_setkind_np(). 1996-11-11 09:21:19 +00:00
hsu
81fb20ff55 Moved pthread_mutexattr_default inside #ifndef PTHREAD_KERNEL now that
we use it in the uthreads implementation.
Moved enum pthread_mutextype here from libc_r/uthread/pthread_private.h.
Change prototype for pthread_getspecific().
1996-11-11 09:19:54 +00:00
ache
0333cf4df1 Remove collate_range_cmp 1996-10-31 14:41:30 +00:00
wosch
f334537e79 improve comments for UT_NAMESIZE 1996-10-27 18:13:35 +00:00
bde
ea6cdba879 Fixed tabs and punctuation to match nearby (and KNF) style. Sigh. 1996-10-24 04:05:54 +00:00
ache
0ab3891545 GNU-style changes:
1) Rename FNM_ICASE to FNM_CASEFOLD
2) Add FNM_LEADING_DIR
1996-10-23 16:42:33 +00:00
wosch
7a03305256 add flag FNM_ICASE for case insensitve search
Reviewed by: ache
1996-10-20 15:15:59 +00:00
jkh
91c672ea5c Add back netns 1996-10-17 18:44:56 +00:00
scrappy
8807500c26 Fixed the wrong include file for a "prototype mismatch" error between
dlfcn.h and link.h
1996-10-08 01:38:36 +00:00
scrappy
97f58e564d dlfcn.h and link.h have conflicting declarations for dlopen/dlsym,
with dlfcn.h declaring them as:

void *dlopen __P((const char *, int));
void *dlsym __P((void *, const char *));

while link.h declared them as

extern void *dlopen __P((char *, int));
extern void *dlsym __P((void *, char *));

Fix link.h to match dlfcn.h
1996-10-07 20:49:03 +00:00
peter
b4607335a6 Add support for storing a -R path in ld in the section dispatch table,
support LD_HINTS_VERSION_2 that has the ldconfig pathname stored in the
ld.so.hints file (ie: a new library can be installed and used without
needing to run ldconfig -m first)

Reviewed by: nate, jdp
Obtained from: NetBSD (mostly)
1996-10-01 00:25:32 +00:00
peter
347be85679 Add the linker set stab types: N_SETA N_SETT N_SETD N_SETB N_SETV 1996-10-01 00:01:43 +00:00
bde
b5150c5cb5 Fixed CLEANFILES. osreldate was missing.
Cleaned up LDIRS line.
1996-09-20 13:42:26 +00:00
bde
071f2afd3e Don't use __dead or __pure in user code. They were obfuscations
for gcc >= 2.5 and no-ops for gcc >= 2.6.  Converted to use __dead2
or __pure2 where it wasn't already done, except in math.h where use
of __pure was mostly wrong.
1996-09-14 03:00:32 +00:00
adam
015e1a6e2e install rpc header files 1996-09-01 17:54:25 +00:00
peter
3ed13a096a 'make install' is not supposed to touch anything. 1996-08-30 22:36:45 +00:00
peter
6e0e76e4a6 missed these parts of Bruce's changes last time..
Submitted by: bde (again :-)
1996-08-30 21:57:39 +00:00
peter
becaecdbd6 echo -> ${ECHO}
do the rm -rf and ln -s in two seperate commands to allow a fork/exec
without a "sh -c" in the middle.

Submitted by: bde
1996-08-30 19:37:14 +00:00
peter
dcf42f1da7 Some bmake magic to clean up the install more.
fix another missed -c typo of mine.
clean the rpcgen implicit rule more

Submitted by: bde
1996-08-30 19:31:28 +00:00
peter
c6b65eb556 Hand merge in the bind-4.9.4-P1 resolver updates. 1996-08-29 20:01:00 +00:00
peter
c0fe7826f2 replace cmp -s || install with ${INSTALL} -C, and @for with .for 1996-08-29 19:59:48 +00:00
peter
7ee559d551 Clean up include Makefile:
- use .for loops instead of shell for loops. This means we can be
   shown what is happening while it's going, rather than some pacifier
   "echo" statement.
 - use "${INSTALL} -C", nuke the "cmp -s" hack
 - for "copies" mode,  the include files are no longer touched each time
   the world is built. (ie: no rm -rf.  symlinks are removed, mtree builds
   the new dirs or confirms the existing ones)
 - osreldate.h is build in the local dir and conditionally installed,
   rather than built in /usr/include and either renamed or deleted.
1996-08-29 19:57:48 +00:00
wollman
d3bff4e978 New version of routed.h to match new version of routed. 1996-08-27 16:21:34 +00:00
julian
e9a033ea39 Submitted by: John Birrell <cimaxp1!jb@werple.net.au>
Here are the diffs for libc_r to get it one step closer to P1003.1c
These make most of the thread/mutex/condvar structures opaque to the
user. There are three functions which have been renamed with _np
suffixes because they are extensions to P1003.1c (I did them for JAVA,
which needs to suspend/resume threads and also start threads suspended).

I've created a new header (pthread_np.h) for the non-POSIX stuff.

The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented
doesn't work. I think its best to delete it. I don't think libc_r needs
tags anyway, 'cause most of the source is in libc which does have tags.

also:

Here's the first batch of man pages for the thread functions.
The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was
inherited from /usr/src/lib/libc/Makefile that should only be done with
libc.

also:

I should have sent this diff with the pthread(3) man page.
It allows people to type

make -DWANT_LIBC_R world

to get libc_r built with the rest of the world. I put this in the
pthread(3) man page.  The default is still not to build libc_r.


also:
The diff attached adds a pthread(3) man page to /usr/src/share/man/man3.
The idea is that without libc_r installed, this man page will give people
enough info to know that they have to build libc_r.
1996-08-20 08:22:01 +00:00
ache
638131c27e #if !ANSI !POSIX newly added collate_range_cmp function 1996-08-13 14:01:40 +00:00
ache
1bd0a717c6 There is so many places where range comparation (using collate)
needed (much more than I think initially), so I forced to add
new user-visible non-standard function to libc.
1996-08-12 18:30:43 +00:00
wosch
bbe6406e98 Create FreeBSD copyright (c comment) for OS version 1996-08-04 22:34:23 +00:00
wollman
a4bd388307 New routed.h that goes with the new routed. 1996-07-22 21:14:48 +00:00
bde
389718ae35 Fixed new and old standards conformance bugs. The non-POSIX confstr() was
in the POSIX section for a log time.  The non-POSIX getgrouplist() and
setgroups() were recently added to the POSIX section although setgroups()
was already in the non-POSIX section.
1996-07-17 10:52:38 +00:00
jkh
47de21e822 General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 19:24:27 +00:00
ache
2f0de54430 Add netatalk symlink, ifconfig not compiled in other case 1996-07-09 15:48:20 +00:00
wpaul
f3696d0409 There are a few small additions to the protocol to make it
easier to use in mixed environments:

- Add three new members to the request structure:

  - a filename specification
  - a database type specification
  - a system byte prder specification

  These allow the client to ask the server for a particular type of
  database (Berkeley DB hash/btree/recno, GNU GDBM, dbm, ndbm, etc...)
  and get back a meaningful error if the server doesn't support it.
  The byte order spec is needed if the database type is byte order
  sensntive. You don't, for example, want to read an ndbm database
  from a big endian machine on a little endian machine (the ndbm code
  will explode). The filename spec lets the client handle things like
  ndbm which uses two seperate files per database (foo.dir and foo.pag).
  The client can ask for each half, one at a time.

- Add a list of database types and byte order values. Each list has
  a wildcard 'ANY' entry which lets the client ask for whatever the
  server supports. (XFR_ENDIAN_ANY is useful with the Berkeley DB hash
  method for instance, since it isn't byte order sensitive.)

- Add two newserver failure codes: XFR_DB_TYPE_MISMATCH and
  XFR_DB_ENDIAN_MISMATCH. The server uses these to tell the client
  that it doesn't support the requested type/byte order.

These changes were made at the suggestion of Thorsten Kukuk, the
current maintainer of the Linux ypserv distribution. This allows
Linux and FreeBSD NIS servers to use the same ypxfrd protocol and
avoid accidentally exchanging incompatible map files.
1996-07-04 02:08:17 +00:00
wosch
d26db9c388 remove zopen, zopen is not part of libc. 1996-07-02 23:04:50 +00:00
smpatel
7507c39021 Added missing prototype for sigaltstack() 1996-06-28 04:27:04 +00:00
wollman
6c20d93f4d Add `netkey' to list of kernel directories to include in /usr/include. 1996-06-15 18:05:36 +00:00
wollman
21909e718d Add an independent implementation of addr2ascii(3) and ascii2addr(3)
following the API of the INRIA IPv6 implementation.
1996-06-13 20:45:05 +00:00
wpaul
afb814364a Now that Peter has been nice enough to bail me out of my last little
mishap, it's time to have the Makefile install ypxfrd.x and ypxfrd.h.
1996-06-05 03:47:18 +00:00
wpaul
2209006899 This commit was generated by cvs2svn to compensate for changes in r16119,
which included commits to RCS files with non-trunk default branches.
1996-06-05 02:42:33 +00:00
phk
1f82ebc850 Install pccard includes. 1996-06-04 21:30:35 +00:00
wollman
47ad8ec68d Protocol definitions for RIPv2.
Obtained from: Vernon Schryver <vjs@mica.denver.sgi.com>
1996-05-30 16:31:04 +00:00
peter
efadb5e609 Add an implementation of the gnu-ish asprintf() and vasprintf(). They are
not based on gpl'ed code, just prototype and usage.  I'm not 100% certain
they behave the same while the system is in trouble (eg: malloc() failing)
but in those circumstances all bets would be off anyway.

These routines work like sprintf() and vsprintf(), except that instead of
using a fixed buffer, they allocate memory and return it to the user
and it's the user's responsibility to free() it.  They have allocate as
much memory as they need (and can get), so the size of strings it can deal
with is limited only by the amount of memory it can malloc() on your
behalf.

There are a few gpl'ed programs starting to use this interface, and it's
becoming more common with the scares about security risks with sprintf().
I dont like the look of the code that the various programs (including
cvs, gdb, libg++, etc) provide if configure can't find it on the system.

It should be possible to modify the stdio core code to provide this
interface more efficiently, I was more worried about having something
that worked and was secure.  :-)  (I noticed that there was once intended
to be a smprintf() routine when our stdio was written for 4.4BSD, but it
looks pretty stillborn, and it's intended interface is not clear).  Since
Linux and gnu libc have this interface, it seemed silly to bring yet
another one onto the scene.
1996-05-27 10:49:43 +00:00
bde
ac9086506e Made this work with the documented prerequisite #includes (none). 1996-05-01 00:57:57 +00:00
bde
3554b1c286 Fixed longstanding namespace convolution involving rune_t vs wchar_t.
If _ANSI_SOURCE or _POSIX_SOURCE is defined, then <ctype.h> had to
be included before <stddef.h> or <stdlib.h> to get rune_t declared.
Now rune_t is declared perfectly bogusly in all cases when <ctype.h>
is included.

This change breaks similar (but more convoluted) convolutions in the
stddef.h in gcc distributions.  Ports of gcc should avoid using the
gcc headers.
1996-05-01 00:40:10 +00:00
ache
a87eeed3e9 Fix sgetrune/sputrune arg type: was unsigned int instead of size_t 1996-04-18 07:13:42 +00:00
wpaul
477ce4c789 NIS cleanups and fixes, the next generation.
getnetgrent.c:

- Catch one bogon that snuck by: in _listmatch(), check for '\0'
  rather than '\n'; strings returned from yp_match() are terminated
  with a nul, not a newline.

getpwent.c:

- Rip out all of the +inclusion/-exclusion stuff from before and
  replace it with something a little less grotty. The main problem
  with the old mechanism was that it wasted many cycles processing
  NIS entries even after it already knew they were to be exlcuded
  (or not included, depending on your pointof view). The highlights
  of these changes include:

  o Uses an in-memory hash database table to keep track of all the
    -@netgroup, -user, and -@group exclusions.

  o Tries harder to duplicate the behavior normally obtained when using
    NIS inclusions/exclusions on a flat /etc/passwd file (meaning things
    come out in much the same order).

  o Uses seperate methods for handling getpwent() and getpwnam()/getpwuid()
    operations instead of trying to do everything with one general
    function, which didn't work as well as I thought it would.

  o Uses both getnetgrent() and innetgr() to try to save time where
    possible.

  o Use only one special token in the local password database
    (_PW_KEYYPBYNUM) instead of seperate tokens to mark + and -
    entries (and stop using the counter tokens too). If this new
    token doesn't exist, the code will make due with the standard
    _PW_KEYBYNUM token in order to support older databases that
    won't have the new token in them.

  All this is an attempt to make this stuff work better in environments
  with large NIS passwd databases.
1996-04-16 00:22:41 +00:00
ache
ada009660c Slightly simplify inlined functions 1996-03-25 13:46:21 +00:00
paul
72bc597709 Fix incorrect parameter types for ftell and fgets. 1996-03-24 15:51:45 +00:00
jkh
af6a127808 Don't reference ndbm(3) manpage. Everything is covered by db(3). 1996-03-03 09:04:40 +00:00
pst
4f238e845f Fix conflicts and merge into mainline (this may get cvs admined out and redone properly by Peter later) 1996-02-27 19:42:44 +00:00
pst
4e078a71ec Incorporate v1.85 of the Berkeley DB code into the CSRG branch 1996-02-27 02:40:48 +00:00
wpaul
1c2a645af9 Add structure and procedure definitions for NIS v1. (This information
was reverse-engineered using the <rpcsvc/ypv1_prot.h> file supplied
with SunOS 4.1.3 as a guide.)
1996-02-26 02:22:53 +00:00
peter
3ce8274a11 Add prototype for rfork(). 1996-02-23 19:45:46 +00:00
wollman
a6c3275bd4 Don't install netns, it doesn't exist any more. 1996-02-14 15:17:53 +00:00
wollman
4b61e8528b Don't install netccitt and netiso, they are going away. 1996-02-06 20:42:46 +00:00
hsu
e110ba6bad Remove unnecessary typedef. All inclusions of <rpc/auth.h> in the source
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.
1996-01-31 08:02:11 +00:00
mpp
882eb5d844 Fix a bunch of spelling errors in the comment fields
of a bunch of system include files.
1996-01-30 23:33:04 +00:00
mpp
0f90754a60 Add a missing "chmod 755 /usr/include/ufs" when copies of the include
files are installed instead of symlinks.
1996-01-23 15:56:43 +00:00
julian
7d834f267b Submitted by: john birrel
Obtained from: uthread package

thrreads definitions
1996-01-22 00:24:56 +00:00