dufault
d3dd91fcbc
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
a9db700952
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
e28788f2a4
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
f2b0787aaf
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
18e07ad820
Removed _POSIX_SOURCE ifdefs. This is not a POSIX.1 header.
1998-02-25 02:15:59 +00:00
bde
65241a7de7
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
00357bb1bc
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
a73c0d4a85
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
d5b09c81ec
Implement dladdr.
1998-02-06 16:46:46 +00:00
steve
82731c60fb
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
6f27646b4c
kill ufs/lfs so that make installworld completes successfully.
1998-01-31 05:54:54 +00:00
jb
1b94ff5481
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
1f7cb8a6c2
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
008db71717
Added missing declaration of signanosleep().
1998-01-16 12:44:20 +00:00
bde
68d0565288
Fixed pedantic syntax error (trailing comma in enum).
1998-01-16 12:39:20 +00:00
bde
89f57ed5f2
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
ece0494264
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
3b0d032da4
Removed redundant declarations. rpcgen generates `typedef enum foo;'
...
from `enum foo;'.
1998-01-16 12:17:55 +00:00
bde
314aa8496c
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
7664fb36ba
Fixed a missing dependency.
1998-01-16 11:51:19 +00:00
bde
71b8855ac8
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
dd1463a774
Added a forward struct declaration so that this file is less
...
self-insufficent.
1998-01-16 11:46:05 +00:00
bde
dac266151d
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
4b3aac06b9
Translated to `C' - commented out #ident.
1998-01-16 10:31:46 +00:00
jb
8e6eb00a8e
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
a73e9c4936
unborkify osreldate.h install (change \ to / - someone was in DOS mode! ;)
1998-01-02 09:39:12 +00:00
steve
c67ee699e5
Install osreldate.h from ${.OBJDIR}.
...
Submitted by: Bruce Evans <bde@zeta.org.au>
1998-01-01 23:17:05 +00:00
alex
017d9a9242
Added missing caddr_t --> void * conversions for sys/mman.h functions.
...
Submitted by: bde
1998-01-01 17:07:46 +00:00
steve
bbb72b1a27
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
370393763b
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
b62e86b383
Move nlist related defines from link.h into nlist.h. Clean up
...
nlist.h.
1997-12-06 17:59:52 +00:00
jdp
944609b233
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
31e60d8e26
Add Ids, from lite2.
1997-11-24 07:36:46 +00:00
brian
13d351d261
const correctness for dl*()
1997-11-22 03:34:46 +00:00
charnier
e87fe4179c
Remove sccsid, not present in Lite2.
1997-11-20 07:18:07 +00:00
charnier
b4568c0941
Add const to rcsid[] definition so that -Wall will not complain.
1997-10-31 12:26:52 +00:00
ache
d25f1a7e1f
Change usleep return type from void to int to match OpenGroup specs.
1997-10-22 10:57:54 +00:00
joerg
54b3846b38
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
2af063b33b
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
a13ca6e9d2
Changes for KTH KerberosIV.
...
telent.h is installed from libtelnet, not the include dir.
1997-09-28 09:12:04 +00:00
ache
7ff3236447
Oops, fix typo in istype definition
1997-09-27 04:30:50 +00:00
ache
a4d6990ae6
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
a411894a17
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
253e0dc600
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
d84a9433e4
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
60b0e6fbbf
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
6c065dd935
Removed installhdrs target. It was an unnecessary complication.
1997-09-16 10:52:59 +00:00
peter
ab48d764a4
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
a059b2e7c8
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
22cfa5fbad
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
941fd54212
Don't traverse subdirectories twice for normal installs.
1997-08-21 18:40:04 +00:00
bde
834e560c34
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
7e95ba029e
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
c7048791d0
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
0abf5130c2
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
a900aa0a5e
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
e4360f10b8
Fix typo: "send" -> "end"
...
PR: bin/3474
Submitted by: graphix@iastate.edu (Kent Vander Velden)
1997-08-11 04:19:11 +00:00
joerg
7f6efbc9e1
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
2ed649b29b
Implement dlsym(RTLD_NEXT, symbol).
1997-08-02 04:56:44 +00:00
asami
84f21d2d49
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
486333fcfd
kill the undead
1997-07-13 14:26:00 +00:00
peter
43ce060734
merge in bind-4.9.6 changes (only effect is __res_send #define reverted)
1997-06-27 08:32:38 +00:00
msmith
8f700a6d43
Update histedit.h to match the new libedit.
...
Obtained from: NetBSD
1997-06-25 09:47:31 +00:00
msmith
0349f8963a
Add stringlist functions from NetBSD. (required for the new ftp(1)
...
Obtained from: NetBSD
1997-06-25 08:04:52 +00:00
ache
f9302eec85
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
cbd380e632
Add arc4random family declaration
1997-06-14 01:33:52 +00:00
ache
98ddc15c28
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
d1abd2cb44
Go to SHARED=copies by default.
...
Agreed-upon by: lots-o-folks.
1997-06-05 21:20:58 +00:00
wpaul
7b004237fc
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
088fb5121b
Add new files in include/rpc.
1997-05-28 04:46:38 +00:00
wpaul
db46899f5a
Resolve conflicts.
1997-05-28 04:45:15 +00:00
wpaul
3be3c10157
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
fd6d99f49e
Resolve conflicts.
1997-05-28 04:38:30 +00:00
wpaul
4b109a080d
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
a57b7759a5
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
26a980720c
fix missing close comment in login_cap additions
1997-05-18 08:12:14 +00:00
peter
bbffd7053b
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
b5da4216b3
remove stray forward declaration for struct timespec
...
Pointed out by: bde
1997-05-13 09:25:15 +00:00
ache
e43c7e0e2a
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
28bb5a5088
Oops, move clock_*() and nanosleep() to time.h
...
Submitted by: Peter Dufault <dufault@hda.com>
1997-05-12 12:58:40 +00:00
peter
892e2dec90
prototype clock_settime(), clock_gettime(), clock_getres(), nanosleep().
1997-05-12 09:57:39 +00:00
peter
71199e7776
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
4ca868f8b8
Removed login_cap.h, now moved to src/lib/libutil.
1997-05-10 12:50:03 +00:00
eivind
1ab5f06651
Back out all of yesterdays include file changes.
1997-05-07 20:01:10 +00:00
eivind
93aa89ea52
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
379be4bd69
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
173bd2da2e
Fixed missing __P() to complete the K&R support in this header.
1997-05-07 00:58:23 +00:00
asami
90e3a3c005
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
48749204e4
This file is a duplicate of src/usr.bin/f2c/f2c.h
...
Reviewed by: bde
1997-04-24 17:03:41 +00:00
dfr
2a33e0bbd9
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
2e2bf64395
Fixed spelling of isnetworktty.
...
Fixed stray whitespace.
1997-04-14 13:33:20 +00:00
bde
efb4d7374b
Fixed some style bugs.
1997-04-13 15:52:26 +00:00
bde
3db3e02ae7
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
1c9db9a173
#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
3887e465a5
Add bitflags TTY_NETWORK/TTY_DIALUP and interface functions which
...
make use of them.
1997-04-13 15:09:46 +00:00
paul
4e19bb4d34
This file is deprecated not "obsoleted".
1997-04-13 11:33:17 +00:00
jmz
5d93c9d5fb
Upgrade to the 1997/02/19 version.
1997-04-13 01:13:52 +00:00
peter
d68928491c
Declare issetugid()
...
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3200
1997-04-05 13:03:15 +00:00
peter
4731f0b7dd
Declare lchown()..
1997-03-31 12:52:52 +00:00
ache
e53bc8d1c3
Add srandomdev() prototype
1997-03-23 22:44:27 +00:00