Commit Graph

30 Commits

Author SHA1 Message Date
dogcow 881509a404 The blunt instrument approach to dealing with optional compiler sugar:
arbitrarily use the formerly-unused variable. Everybody's happy.
2007-12-18 07:33:54 +00:00
apb 88718b259c Change O_NDELAY to the POSIX standard O_NONBLOCK. This should fix
a compile error when building as a host tool.
2007-12-17 23:04:37 +00:00
apb 68039cfd90 This is a host tool; include nbtool_config.h 2007-12-17 18:18:21 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
perry d030f331fb __inline__ -> inline
__const__ -> const
2005-12-24 21:35:57 +00:00
dsl 9122339b9f Add (unsigned char) cast to ctype functions 2004-10-30 15:39:39 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
jmc e167e82b65 Don't use L_SET as it's not portable and this is a host tool 2003-11-16 22:47:07 +00:00
kleink d9c0b26cbc <sys/fcntl.h> -> <fcntl.h> in previous. Also, remove inclusion of
<sys/file.h>, which seems to be the intention of the previous change.
2003-11-12 12:06:24 +00:00
matt f851399943 O_* live in <sys/fcntl.h> not <sys/file.h>
Don't use TERMCAP if HOSTPROG.
2003-11-12 02:17:53 +00:00
itojun d9f2774c1e use bounded string op 2003-07-13 12:08:28 +00:00
lukem 826a14607a Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
dbj f1e0ecadf7 remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets.  Commits fix from PR toolchain/21495
2003-05-14 00:24:06 +00:00
thorpej 0164fc61c8 We don't actually need libutil when building as a hostprog. 2003-03-13 04:50:53 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
augustss 889cc758e5 Make this compile on non-NetBSD machines. 2003-02-05 22:47:38 +00:00
uwe 59e06de8b5 When built as a host tool, don't search /dev as we only use sunlabel
on the disk image.  This ifdefs out a call to getrawpartition() so we
don't have to provide a compatibility replacement for it.
2003-01-27 01:29:06 +00:00
lukem 52c78c8a7d - make "device" non optional and remove "-d device", and actually make
it work with "device"...
- tweak the docco a bit
2002-12-21 08:11:28 +00:00
lukem 133ea6e570 improve help display
minor KNF
2002-12-21 06:53:29 +00:00
grant eda9e509bb sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:40:16 +00:00
wiz 77c1358a2b Remove superfluous #endif. bin/16840 by der Mouse. 2002-05-16 09:55:50 +00:00
mrg 9d319aba7a s/Der Mouse/der Mouse/.
reinstate the S_COMMAND #ifdefs.
2002-02-11 03:47:05 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz 633ece12e5 Update re getopt()ing of sunlabel. 2002-01-15 01:58:45 +00:00
wiz 0690e2497a Add sunlabel(8). 2002-01-15 00:57:27 +00:00
christos 03dae382df - KNF... Add NetBSD copyright, pass lint, getopt, modernize, blah. 2002-01-10 21:43:10 +00:00
mrg 4ef0e6e1a3 - add a -h option
- kill warnings
- use getmaxpartitions()

XXX: consider renaming options to more standard names and use getopt(3).
2002-01-10 16:26:01 +00:00
mrg 3b989ef166 makefile for sunlabel. 2002-01-10 16:24:41 +00:00
mrg 2c57f36327 der Mouse's sunlabel.doc 2002-01-10 16:15:37 +00:00
mrg 6659b0b88f der Mouse's sunlabel 2002-01-09 12:59:29 +00:00