Commit Graph

34 Commits

Author SHA1 Message Date
peter
4a06465a4e Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot).  This is consistant with the other
BSD's who made this change quite some time ago.  More commits to come.
1999-12-29 05:07:58 +00:00
phk
c448976027 sys/dkbad.h is no more. 1999-12-08 19:47:08 +00:00
marcel
bfdf7f2bb1 Avoid hardcoding any paths and variables. The include directory must
now be specified on the command line. Accept a '-s' option which
controls whether a switch-statement is to be used instead of a series
of if-statements.

Replace cpp with gcc -E.

Discussed with: bde
1999-12-03 12:50:02 +00:00
marcel
830ad67ff6 Make sure DESTDIR is set in the environment of mkioctls. This fixes
the breakage people have encountered at certain times (for example
when the altq_*.h files were removed).

$FreeBSD$ tag added.
1999-12-02 13:47:17 +00:00
guido
956fffb8eb Unbreak build world by readding the necessary ipfilter includes. 1999-11-24 15:38:35 +00:00
dfr
d7796f6677 ioctlname() is actually passed a register_t.
Pointed out by: bde
1999-11-10 08:41:08 +00:00
dfr
b19855937b Fix a boatload of warnings in the generated code on the alpha. 1999-11-09 22:32:29 +00:00
peter
d8f099235e Ack, ip_mroute.h is not an ipfilter include. :-/
Submitted by:	Mike Heffner <spock@techfour.net>
1999-10-11 16:14:22 +00:00
peter
d4d3fa3dd7 Don't #include ipfilter includes that aren't there anymore. 1999-10-10 17:49:25 +00:00
n_hibma
107610a72e Remove the inclusion of device.h. It's no longer there. 1999-10-06 07:45:30 +00:00
peter
e4b04a2b21 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
bde
c926ce1665 Decode new ptrace requests PT_GETDBREGS and PT_SETDBREGS. 1999-07-17 09:27:41 +00:00
bde
4befe7d772 Decode all currently supported values of the ptrace `request' arg. 1999-06-26 07:31:13 +00:00
dt
d51b07c3bd Syscall arguments are now properly aligned. Print them, and syscall return
values, as longs, instead of int.
1999-06-16 18:46:40 +00:00
jmz
8fcff942ad FIx the output of long command names.
PR:		bin/10027
Submitted by:	Arne Henrik Juul <arnej@math.ntnu.no>
1999-05-21 01:09:45 +00:00
phk
155ec20505 we don't have <sys/disk.h> anymore. 1999-05-08 05:48:54 +00:00
bde
0e07630ce8 Generate code to interpret ioctl numbers for all ioctls defined in
headers under /usr/include, not just for the ones in <sys/ioctl.h>.
The generated file includes all headers that seem to define ioctls,
so build errors will probably occur if headers become less self-
sufficient than they are already.  This is a feature.  Build errors
shall not be fixed by adding more includes here.

Optionally generate a case statement instead of a list of if
statements.  This source must be edited to change this.  The case
statement should be non-optional.  It currently can't be, because
many ioctl numbers are not unique.
1998-10-16 15:33:17 +00:00
charnier
c41bc83bc1 Use err(3). Correct incomplete man page. 1997-07-16 06:49:49 +00:00
charnier
300ac74a26 Spelling correction (1 bytes' is now printed 1 byte')
PR: bin/3376
Submitted by: me
1997-05-22 06:17:44 +00:00
jmg
68a3846d7e `appears'' -> `appeared'' (closes PR#3393, Submitted-by: Josh Gilliam)
add missing Id's
other minor clean ups
1997-04-27 08:45:46 +00:00
imp
cd84ece5fd compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 04:34:07 +00:00
wollman
e518804de3 Fix up programs which expect <net/if.h> to include <sys/time.h> to instead
do it themselves.  (Some of these programs actually depended on this
beyond compiling the definition of struct ifinfo!)  Also fix up some
other #include messes while we're at it.
1996-12-10 17:11:53 +00:00
fenner
064d2d7b63 Fix arg parsing. kdump used to allow a single argument, which it
silently ignored.
1996-11-18 19:37:52 +00:00
phk
3168c6e5d3 Remove length field from utrace entries. 1996-09-22 18:18:20 +00:00
phk
92dca5bf76 For now we just hexdump the stuff in USER records. 1996-09-19 19:50:45 +00:00
bde
362be1e934 Run the headers through cpp -dM to find the #defines. The direct search
has been broken at least since 4.4Lite moved most of the #defines out of
<sys/ioctl.h>.  This should be done better.  Only a few headers are
searched.

Added some #includes so that ioctl.c compiles.  The networking headers
have a maze of undocumented interdependencies and ioctl.c now actually
supports networking ioctls.
1996-06-23 17:05:10 +00:00
dg
58a6c4ee46 Include queue.h in preparation for upcoming struct socket changes. 1996-03-11 12:56:07 +00:00
ache
5e59c0728e Add setlocale LC_CTYPE 1995-10-26 22:16:45 +00:00
rgrimes
79e59e9123 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
phk
87c94514b6 -I${.CURDIR}/../.. 1994-11-21 00:54:28 +00:00
phk
3c6e7145ab Absolute path to /sys again... 1994-11-21 00:53:32 +00:00
swallace
7309f35e45 Added $DESTDIR to
$DESTDIR/usr/include/sys/ioctl.h $DESTDIR/usr/include/sys/ioctl_compat.h
so ioctl.c is generated properly using 2.0 include files in $DESTDIR.
1994-09-15 05:47:41 +00:00
csgr
adcf2bd479 move #include of <sys/errno.h> so that #defining KERNEL actually has an effect,
and then also add a declaration of ernno as an extern int, because we
lose that due to having KERNEL defined while we include errno.h.
Reviewed by:	Geoff.
1994-08-22 14:28:54 +00:00
rgrimes
f9ab90d9d6 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00