Mark Murray
4c2fb88368
Better fix for style.
...
Suggested by: ru (but modified a bit by markm)
2002-06-21 11:06:11 +00:00
Mark Murray
796851bb71
Fix warnings generated elsewhere.
2002-06-21 10:22:39 +00:00
Mark Murray
09b904c8e5
Style tidy-up.
2002-06-21 10:21:21 +00:00
Mark Murray
e0761ab1e6
Modernise this code by rounding up the usual suspects: register keyword,
...
consts, ANSIfication of functions, proper use of __FBSDID() and so on.
This commit is non-functional from a code-execution perspective, but
pr(1) now compiles WARNS=6 clean.
2002-06-21 10:14:57 +00:00
Poul-Henning Kamp
0c33afd77a
#include <sys/time.h> before <sys/stat.h> to get timespec.
2002-06-21 09:23:12 +00:00
Tim J. Robbins
382ac430cd
Skip fields in the manner required by POSIX, and the way V7 did it.
...
MFC after: 1 week
2002-06-21 07:59:31 +00:00
Tim J. Robbins
4e774f7fbe
Newline characters should not participate in line comparisons. Only apparent
...
when -s is used or the last line of the file is missing a newline.
Noticed by the textutils test suite.
MFC after: 1 week
2002-06-21 07:08:34 +00:00
Ruslan Ermilov
ea2a88d9fb
Give a C rewriter the necessary credit.
...
Requested by: Daniel Papasian <dpapasia@andrew.cmu.edu>
2002-06-21 06:43:48 +00:00
Kirk McKusick
1c85e6a35d
This commit adds basic support for the UFS2 filesystem. The UFS2
...
filesystem expands the inode to 256 bytes to make space for 64-bit
block pointers. It also adds a file-creation time field, an ability
to use jumbo blocks per inode to allow extent like pointer density,
and space for extended attributes (up to twice the filesystem block
size worth of attributes, e.g., on a 16K filesystem, there is space
for 32K of attributes). UFS2 fully supports and runs existing UFS1
filesystems. New filesystems built using newfs can be built in either
UFS1 or UFS2 format using the -O option. In this commit UFS1 is
the default format, so if you want to build UFS2 format filesystems,
you must specify -O 2. This default will be changed to UFS2 when
UFS2 proves itself to be stable. In this commit the boot code for
reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c)
as there is insufficient space in the boot block. Once the size of the
boot block is increased, this code can be defined.
Things to note: the definition of SBSIZE has changed to SBLOCKSIZE.
The header file <ufs/ufs/dinode.h> must be included before
<ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and
ufs_lbn_t.
Still TODO:
Verify that the first level bootstraps work for all the architectures.
Convert the utility ffsinfo to understand UFS2 and test growfs.
Add support for the extended attribute storage. Update soft updates
to ensure integrity of extended attribute storage. Switch the
current extended attribute interfaces to use the extended attribute
storage. Add the extent like functionality (framework is there,
but is currently never used).
Sponsored by: DARPA & NAI Labs.
Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
2002-06-21 06:18:05 +00:00
Juli Mallett
9f3d7bf758
Fix a bug fixed by NetBSD in revision 1.42 of parse.c by christos which caused
...
an example Makefile I was showing someone just last night to report a variable
as being recursive.
Obtained from: NetBSD
2002-06-20 19:51:13 +00:00
Juli Mallett
7fc2a9f90c
More unsigned char casts to isupper(3).
...
Obtained from: NetBSD
2002-06-20 19:45:44 +00:00
Juli Mallett
536dddacf1
Provide a heuristic for RCS conflicts.
...
Obtained from: NetBSD
2002-06-20 19:44:34 +00:00
Juli Mallett
2431da5c7e
Look for wildcards, and balanced meta-characters such as { and } like NetBSD
...
does.
Obtained from: NetBSD
2002-06-20 19:41:21 +00:00
Juli Mallett
a63d92ee89
Expand a buffer to reduce diffs to NetBSD.
...
Obtained from: NetBSD
2002-06-20 19:31:55 +00:00
Juli Mallett
83739a1077
Diff reduction for great justice against NetBSD, cast to unsigned char when
...
passing an argument to isspace(3).
2002-06-20 19:28:00 +00:00
Juli Mallett
701e9a0054
Whitespace fixes to line-up EOL escapes whose right-most extraints changed in
...
the previous revision due to the biggest line changing.
2002-06-20 11:17:46 +00:00
Juli Mallett
d40d348ceb
Cast sp to uintptr_t when doing a compare of it to STACKMAX which is a size_t.
...
This messes up some indentation in mdef.h for some macros.
2002-06-20 11:14:54 +00:00
Tim J. Robbins
d2979f5673
Style: put static qualifier on definition of static functions.
2002-06-20 07:36:22 +00:00
Tim J. Robbins
51ddbf586b
time(1) does not use the shell to execute the specified utility, remove
...
sentence stating it did.
2002-06-20 07:12:34 +00:00
Tim J. Robbins
3f6c6c912f
Make it obvious that command line arguments may be specified for the utility
...
that is to be invoked on the command line. Use "utility" instead of "command"
in manual page and usage message for consistency with POSIX.
2002-06-20 07:07:00 +00:00
Juli Mallett
d7b8563d55
A function which takes no arguments has an argument list spelled (void) in the
...
world of ANSI C.
2002-06-20 05:35:40 +00:00
Eivind Eklund
0f798c48ed
Make locate.updatedb tell about the security risk when it is run as root.
2002-06-19 19:22:18 +00:00
Juli Mallett
fe36b03b4c
Fix a memory leak from previous commit by freeing the possibly expanded
...
string at the first opportunity, being sure to now always allocate the
new string from VarPossiblyExpand. Oops.
2002-06-19 17:39:36 +00:00
Juli Mallett
0a9c401f9a
Possibly expand the variable name's embedded variables before using it, as
...
seen (somewhat) in NetBSD. This catches a few extra recursion cases that
could be hidden by expanding a NIL variable causing an existing variable to
be returned (which caused infinite looping and climbing memory usage in at
least one case).
Obtained from: NetBSD (in principle)
2002-06-19 17:23:08 +00:00
Tim J. Robbins
12e8db4067
Fix duplicate % in %b format introduced in rev 1.22.
2002-06-19 09:42:20 +00:00
Tim J. Robbins
98dd638658
Let printf(1) tell the difference between zero width/precision and
...
unspecified width/precision.
PR: 39116
Submitted by: Egil Brendsdal <egilb@ife.no>
MFC after: 1 week
2002-06-19 09:24:30 +00:00
Tim J. Robbins
5f19035b04
Allow format strings containing "%%" to be reused.
...
PR: 39116
Submitted by: Egil Brendsdal <egilb@ife.no>
MFC after: 1 week
2002-06-19 08:18:37 +00:00
Tim J. Robbins
37fd459046
Allow `%' to be written out with an octal escape (\45 or \045).
...
PR: 39116
Submitted by: Egil Brendsdal <egilb@ife.no>
MFC after: 1 week
2002-06-19 08:16:14 +00:00
Tim J. Robbins
7e949b63e4
Indicate that env(1) allows you to supply arguments to the utility it
...
executes in the usage() message and manual page. Use "utility" instead of
"command" in both places to emphasise that shell builtins etc. will not work,
and to be consistent with the terminology used by POSIX.
PR: 39210
Submitted by: Danny J. Zerkel <dzerkel@columbus.rr.com>
MFC after: 1 week
2002-06-19 07:09:44 +00:00
Tim J. Robbins
06b959916f
Don't convert a single space before a tab stop into a tab when the
...
-i option is used.
2002-06-19 01:45:03 +00:00
Juli Mallett
be2694ca0e
make(I) appeared in PWB UNIX.
2002-06-17 13:43:15 +00:00
Tim J. Robbins
7d09396dfa
Add Standards section.
2002-06-17 13:37:31 +00:00
Tim J. Robbins
1d600474b1
Sort sections, use Dl for the example so it stands out more.
2002-06-17 13:36:25 +00:00
Tim J. Robbins
b887806d7b
Only advance the column position for printable characters, update manual
...
page to emphasise that we count column positions, not characters.
2002-06-17 12:11:05 +00:00
Maxim Sobolev
33bad4f17d
Kill superfluous blank line.
2002-06-17 08:21:53 +00:00
Greg Lehey
5b40046150
Remove 17 June as German national holiday.
2002-06-16 22:59:21 +00:00
Tim J. Robbins
254fac850d
Correct the handling of (for example) the N command by only zeroing the
...
input space in mf_fgets() if we reach the end of all input files.
2002-06-16 08:44:39 +00:00
Tim J. Robbins
abd0c85dcd
When counting words, check the correct character variable to see whether it's
...
a space or not.
Noticed by: bde
2002-06-16 06:04:43 +00:00
Juli Mallett
9ed3737fca
Remove local prototype for main().
2002-06-15 11:28:09 +00:00
Juli Mallett
cf0def9349
Protoize. Remove un-needed cast to char in switch of getopt(3)'s return value.
...
FBSDID.
2002-06-15 11:26:25 +00:00
Juli Mallett
2c69ee9b45
Remove <sys/types> where we use <sys/param> already.
...
protoize.
2002-06-15 11:03:28 +00:00
Tim J. Robbins
e4bbbf073b
Remove obsolescent -tabstop option from Synopsis (it was already removed
...
from the usage() message). Document what the -t option does in a more
standard place. Add a standard Diagnostics section.
2002-06-15 10:52:20 +00:00
Tim J. Robbins
ec85e6a06c
Allow <blank>s to be used to separate tab stop positions with the -t
...
argument, not just ASCII space characters and commas. Don't count
non-printing characters when determining column position.
2002-06-15 10:16:39 +00:00
Mike Heffner
3ba0209ecf
Update for lukemftp-1.6-beta2.
2002-06-15 09:42:17 +00:00
Tim J. Robbins
fc3b416102
Sort sections.
2002-06-15 08:41:12 +00:00
Tim J. Robbins
a1a27143bd
fstat() returns information about the target of any symbolic link that
...
was opened, not the link itself. Remove dead code.
2002-06-15 08:31:19 +00:00
Tim J. Robbins
232a0ff51d
Improve parsing of character and equivalence classes:
...
[:*] and [=*] are parsed as `infinitely many repetitions of :' (or *)
instead of literal characters (SUSv3)
2002-06-15 07:38:27 +00:00
Tim J. Robbins
dc20d4b9d4
Move the #include and #define's to the top of the file.
2002-06-14 15:56:52 +00:00
Tim J. Robbins
4efc23dabf
Bump the size of the equivalence set to NCHARS; this file was left out
...
of a previous commit implementing equivalence classes.
2002-06-14 15:53:38 +00:00
Tim J. Robbins
2533f1e42a
Use the Cm macro for the clear, init, reset and longname operands.
2002-06-14 15:16:03 +00:00