Commit Graph

280 Commits

Author SHA1 Message Date
John Birrell
013239afdf 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
Bill Paul
813907f9ec 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
Bruce Evans
70c780fe61 Added missing declaration of signanosleep(). 1998-01-16 12:44:20 +00:00
Bruce Evans
b68659fc63 Fixed pedantic syntax error (trailing comma in enum). 1998-01-16 12:39:20 +00:00
Bruce Evans
a67d6a5933 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
Bruce Evans
ab111c13d5 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
Bruce Evans
2ab72cf580 Removed redundant declarations. rpcgen generates `typedef enum foo;'
from `enum foo;'.
1998-01-16 12:17:55 +00:00
Bruce Evans
cb4b2fb400 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
Bruce Evans
25776f4cf7 Fixed a missing dependency. 1998-01-16 11:51:19 +00:00
Bruce Evans
c62130b382 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
Bruce Evans
9a03398dd1 Added a forward struct declaration so that this file is less
self-insufficent.
1998-01-16 11:46:05 +00:00
Bruce Evans
03061ce6e5 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
Bruce Evans
826a60e79e Translated to `C' - commented out #ident. 1998-01-16 10:31:46 +00:00
John Birrell
7357ff3f14 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
Jordan K. Hubbard
8510110314 unborkify osreldate.h install (change \ to / - someone was in DOS mode! ;) 1998-01-02 09:39:12 +00:00
Steve Price
953757afd3 Install osreldate.h from ${.OBJDIR}.
Submitted by:	Bruce Evans <bde@zeta.org.au>
1998-01-01 23:17:05 +00:00
Alexander Langer
de17eb59b4 Added missing caddr_t --> void * conversions for sys/mman.h functions.
Submitted by:	bde
1998-01-01 17:07:46 +00:00
Steve Price
14d96c0846 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
Alexander Langer
372787c102 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
John Polstra
befb229b6f Move nlist related defines from link.h into nlist.h. Clean up
nlist.h.
1997-12-06 17:59:52 +00:00
John Polstra
937ef9c494 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
Philippe Charnier
d95c2f3a27 Add Ids, from lite2. 1997-11-24 07:36:46 +00:00
Brian Somers
9822c98d98 const correctness for dl*() 1997-11-22 03:34:46 +00:00
Philippe Charnier
e84f19ceda Remove sccsid, not present in Lite2. 1997-11-20 07:18:07 +00:00
Philippe Charnier
468b39106c Add const to rcsid[] definition so that -Wall will not complain. 1997-10-31 12:26:52 +00:00
Andrey A. Chernov
c692d76dae Change usleep return type from void to int to match OpenGroup specs. 1997-10-22 10:57:54 +00:00
Joerg Wunsch
d88dbcf043 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
Mark Murray
bd00bedcd6 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
Mark Murray
2ca29c4475 Changes for KTH KerberosIV.
telent.h is installed from libtelnet, not the include dir.
1997-09-28 09:12:04 +00:00
Andrey A. Chernov
659ad3a4a1 Oops, fix typo in istype definition 1997-09-27 04:30:50 +00:00
Andrey A. Chernov
917065108a 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
Andrey A. Chernov
80fd925122 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
Andrey A. Chernov
9f05e73cd2 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 Wemm
985ae608d7 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 Elischer
16f76e6f06 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
Bruce Evans
3b6f5a5bdd Removed installhdrs target. It was an unnecessary complication. 1997-09-16 10:52:59 +00:00
Peter Wemm
c4ea5f72e6 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 Somers
a367bd9e25 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
Bruce Evans
2de8d1f69c 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
Bruce Evans
cfca13bf11 Don't traverse subdirectories twice for normal installs. 1997-08-21 18:40:04 +00:00
Bruce Evans
41b5513403 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
John-Mark Gurney
4604167e0a 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 Wemm
b2794e33ec 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 Wemm
ef75e7acaa 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 Price
fcd57f5cca 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
Bill Fenner
e3a52c6d4d Fix typo: "send" -> "end"
PR:		bin/3474
Submitted by:	graphix@iastate.edu (Kent Vander Velden)
1997-08-11 04:19:11 +00:00
Joerg Wunsch
37486f035f 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
John Polstra
7e7344e2f4 Implement dlsym(RTLD_NEXT, symbol). 1997-08-02 04:56:44 +00:00
Satoshi Asami
3b29be9bb9 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 Wemm
65b3003d2d kill the undead 1997-07-13 14:26:00 +00:00