Commit Graph

34 Commits

Author SHA1 Message Date
peter
d53e4c1d80 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
33380017bb sys/dkbad.h is no more. 1999-12-08 19:47:08 +00:00
marcel
c0a34be120 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
945cd94ac2 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
02460f1397 Unbreak build world by readding the necessary ipfilter includes. 1999-11-24 15:38:35 +00:00
dfr
802a7ce1af ioctlname() is actually passed a register_t.
Pointed out by: bde
1999-11-10 08:41:08 +00:00
dfr
dbc696f018 Fix a boatload of warnings in the generated code on the alpha. 1999-11-09 22:32:29 +00:00
peter
a284557f8b 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
20dc07bd66 Don't #include ipfilter includes that aren't there anymore. 1999-10-10 17:49:25 +00:00
n_hibma
5d2d1c27b3 Remove the inclusion of device.h. It's no longer there. 1999-10-06 07:45:30 +00:00
peter
3b842d34e8 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
bde
a76708b594 Decode new ptrace requests PT_GETDBREGS and PT_SETDBREGS. 1999-07-17 09:27:41 +00:00
bde
f1f4d770fd Decode all currently supported values of the ptrace `request' arg. 1999-06-26 07:31:13 +00:00
dt
2dd8d7a0bc 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
810c2d4557 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
c055c252ed we don't have <sys/disk.h> anymore. 1999-05-08 05:48:54 +00:00
bde
6478fc2452 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
7eee0066ae Use err(3). Correct incomplete man page. 1997-07-16 06:49:49 +00:00
charnier
95d8ba3655 Spelling correction (1 bytes' is now printed 1 byte')
PR: bin/3376
Submitted by: me
1997-05-22 06:17:44 +00:00
jmg
4deb06a037 `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
141381e1cb 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
d3ecee07b3 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
3e3088cdcd Fix arg parsing. kdump used to allow a single argument, which it
silently ignored.
1996-11-18 19:37:52 +00:00
phk
880849a80e Remove length field from utrace entries. 1996-09-22 18:18:20 +00:00
phk
df8df7f441 For now we just hexdump the stuff in USER records. 1996-09-19 19:50:45 +00:00
bde
bbeb8f4943 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
fa02871f5a Include queue.h in preparation for upcoming struct socket changes. 1996-03-11 12:56:07 +00:00
ache
cdd7bd00d1 Add setlocale LC_CTYPE 1995-10-26 22:16:45 +00:00
rgrimes
a14d555c87 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
phk
e9b31a47c4 -I${.CURDIR}/../.. 1994-11-21 00:54:28 +00:00
phk
e598e9e0f7 Absolute path to /sys again... 1994-11-21 00:53:32 +00:00
swallace
679fc3dd8e 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
c2ace2b23e 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