Commit Graph

50 Commits

Author SHA1 Message Date
Rebecca Cran
1161d4202c Fix some more warnings found by clang. 2010-11-22 20:10:48 +00:00
Ulrich Spörlein
0d9deed52c mdoc: drop redundant .Pp and .LP calls
They have no effect when coming in pairs, or before .Bl/.Bd
2010-10-08 12:40:16 +00:00
Ulrich Spörlein
2b6974bf61 Bump WARNS where possible.
Checked by:	make universe
Approved by:	ed (co-mentor)
2010-02-15 14:07:40 +00:00
Ed Schouten
04e532d50b Allow mknod(8) to be only invoked with a pathname as an argument.
In 99% of the cases people just want to recreate device nodes they
removed from /dev. There is no reason to pass the additional "c 0 0"
anymore.

Also slightly improve the manpage. Remove references to non-existent
device names and platforms.
2010-01-31 11:48:25 +00:00
Christian Brueffer
91b010c9d9 Refine r198714, it's not as easy as just leaving the major number zero.
Submitted by:	ed
MFC after:	1 week
2009-11-01 18:25:11 +00:00
Christian Brueffer
a65653d16a The majors file was removed long ago, 0 should be used instead.
PR:		139230
Submitted by:	pluknet <pluknet@gmail.com>
MFC after:	1 week
2009-10-31 12:22:23 +00:00
Xin LI
98397198e7 In the previous changeset a cast of myminor to u_int were
removed, which will cause problems on architectures where
longs are longer than ints, for instance,
	"mknod foo c 0 0xffff00ff"
would fail in such cases.

Use a proper cast instead.

Prompted by:	bde
2007-06-14 03:16:16 +00:00
Xin LI
5224d0a1d6 WARNS=6 2007-06-13 05:30:07 +00:00
Ruslan Ermilov
8d646af581 Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
Joseph Koshy
f33e5b1ab2 Mark mknod(8) as deprecated. Add text in the 'COMPATIBILITY' section
describing the changes in device management since FreeBSD 4.0.

Reviewed by:	ru
2004-12-17 14:36:02 +00:00
Ruslan Ermilov
9806e23132 Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
Ruslan Ermilov
d04b5dfe6c Assorted markup, grammar, and spelling fixes. 2004-05-17 08:35:43 +00:00
Mark Murray
4c723140a4 Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core, imp
2004-04-09 19:58:40 +00:00
Johan Karlsson
604d24db95 style.Makefile(5):
Use WARNS?= instead of WARNS=.
2004-02-23 20:25:27 +00:00
Alfred Perlstein
8646bf9b68 Document that mknod(8) can be used to undelete entries under devfs. 2003-12-29 00:37:52 +00:00
Tom Rhodes
f91fdfd8e2 Remove some more MAKEDEV information.
PR:		50294
Submitted by:	Sergey A. Osokin <osa@FreeBSD.org.ru>
2003-03-25 18:43:10 +00:00
Ruslan Ermilov
21b4c1da95 Killed one more instance of pseudo-devices. 2003-02-24 22:54:26 +00:00
Tom Rhodes
ce66ddb763 s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
Philippe Charnier
e1205e80e5 The .Nm utility 2002-07-06 19:34:18 +00:00
Dima Dorfman
a697e022f0 Minor English fixes.
PR:		35730
Submitted by:	Gary W. Swearingen <swear@blarg.net>
2002-03-10 08:50:53 +00:00
David E. O'Brien
2d68bf45bf Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by:	mike
2001-12-04 02:19:58 +00:00
Dima Dorfman
76b363a605 Refer people looking to figure out what major to use for a device to
MAKEDEV and sys/conf/majors, not sys/conf/device.<arch>, which has
never existed in the history of FreeBSD (well, at least it isn't in
the repository).

PR:		31558
2001-11-04 23:11:25 +00:00
Dima Dorfman
7ebcc426ef Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
Ruslan Ermilov
9fe48c6e8d mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
Ruslan Ermilov
5521ff5a4d mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2). 2001-07-06 16:46:48 +00:00
Ruslan Ermilov
0a5779d45b - Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:33:27 +00:00
Ruslan Ermilov
fe655281c5 Set the default manual section for sbin/ to 8. 2001-03-20 18:13:31 +00:00
Ruslan Ermilov
46eea498da mdoc(7) police: Change -filled displays (which just happen
to be the same as -ragged in the current implementation) to
-ragged.  With mdocNG, -filled displays produce the correct
output, formatted and justified to both margins.
2001-02-07 13:45:30 +00:00
Ruslan Ermilov
d0353b836e mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
Ruslan Ermilov
1252c1bb05 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
Ruslan Ermilov
7c7fb079b9 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
Mike Pritchard
d105b18b22 Spelling fix. 2000-03-24 01:22:53 +00:00
Sheldon Hearn
ef8f7ac935 Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 11:27:47 +00:00
David E. O'Brien
2dc152529e Add chown(8)-like functionality. This will allow us to not use chown(8)
in MAKEDEV(8) -- removing the need of having /usr mounted.
2000-01-06 05:20:14 +00:00
Matt Jacob
25412fdf38 Cast myminor/mymajor results to u_int so
comparisons to longs work correctly on
alpha.
2000-01-05 20:18:16 +00:00
Peter Wemm
7f3dea244c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
Poul-Henning Kamp
95b9c18a7d Fix mknod which overloaded a little too much on "minor" and "major" 1999-05-10 04:50:27 +00:00
Philippe Charnier
fbb3447f9c Remove unused #include. Add usage(). 1998-07-06 07:06:15 +00:00
Philippe Charnier
86eaffaf51 Use err(3). 1997-06-16 06:35:23 +00:00
Bruce Evans
0622cc3837 Fixed checking for a non-numeric minor number. 1997-03-12 19:03:40 +00:00
Peter Wemm
c0ec1f37ef Revert $FreeBSD$ to $Id$ 1997-02-22 14:40:44 +00:00
David E. O'Brien
21eab473b3 I was porting something from sysV world and found our cross references
not quite as good as I would expect.  So I'm introducing mknod to mkfifo,
and vice-versa.
1997-01-27 19:20:05 +00:00
Jordan K. Hubbard
1130b656e5 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
Mike Pritchard
0f7785061e Use the .At macro where appropriate. 1996-08-23 01:06:24 +00:00
Bruce Evans
6ee990e0d5 Document that the major and minor numbers are parsed by strtoul(). 1996-07-30 17:44:36 +00:00
Bruce Evans
7c9e694fa7 Use strtoul() more carefully.
Check that the major and minor are valid.

Don't print `.' at the end of error messages.

Fixed all warnings from "cc -Wall".
1996-07-30 17:43:21 +00:00
Joerg Wunsch
ce6bb53745 Finally use strtoul() to convert the major an minor numbers, so
proper error-checking can be done, and octal and hexadecimal
numbers are allowed.
1996-07-27 17:24:55 +00:00
Mike Pritchard
097d42f425 Correct some man page cross references and some file
locations.
1996-02-05 17:32:16 +00:00
Garrett Wollman
404c1a5fc1 Convert to our man installation style. Also fixed long-standing bug
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
1994-08-05 02:42:42 +00:00
Rodney W. Grimes
8fae3551ec BSD 4.4 Lite sbin Sources
Note:  XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
1994-05-26 06:35:07 +00:00