Tim J. Robbins
45457c7dd2
Note that the lutimes(2) and lchflags(2) syscalls also do not follow symlinks.
...
Remove incorrect examples.
PR: 25016
Submitted by: Martin Kammerhofer, Joshua Goodall
2002-05-26 12:51:38 +00:00
Tim J. Robbins
f59d6e4762
Add lchmod(2) to the list of syscalls that do not follow symbolic links.
2002-05-26 12:12:36 +00:00
Tim J. Robbins
fc482908be
sh appeared in Version 1, not System V.1.
2002-05-25 12:18:27 +00:00
Tim J. Robbins
d513af6a66
Implement `set +o', which displays the currently set options in a format
...
suitable for re-input into the shell.
2002-05-25 12:11:58 +00:00
Tim J. Robbins
09086b0499
Bring back the cd -L and -P options from revision 1.24, but try harder not
...
to fail when the logical current directory no longer exists. Allow changes
to absolute paths when logical cwd is invalid, fall back to physical cd
if logical cd fails.
2002-05-22 05:15:53 +00:00
Tim J. Robbins
baf3e7c14b
Temporarily back out revision 1.24; it seems to handle the case where the
...
current directory no longer exists incorrectly and breaks `make cleandir'.
2002-05-22 03:29:20 +00:00
Tim J. Robbins
178897f127
Add the SUSv3 -L and -P options to the cd and pwd builtin utilities. `Logical'
...
handling of .. is now the default.
2002-05-20 07:54:39 +00:00
Juli Mallett
9e3bfadea8
Remove a small, annoying, nit I ran in to editing this file, a lone tab
...
on a line by itself.
2002-05-19 17:50:23 +00:00
Tim J. Robbins
1b5a48ff88
Implement the -u (-o nounset) option, which gives an error message if
...
an unset variable is expanded.
Obtained from: NetBSD (bjh21, christos)
2002-05-19 08:30:16 +00:00
Tim J. Robbins
addcdbb29f
Make the fg and bg commands give the output required by SUSv3.
...
fg outputs the name of the command, bg outputs the name of the command
and the job id.
2002-05-19 07:27:26 +00:00
Tim J. Robbins
1a958c6653
Implement the -C (-o noclobber) option, which prevents existing regular
...
files from being overwritten by shell redirection.
2002-05-19 06:03:05 +00:00
Tim J. Robbins
94274c73cb
Add missing options required by SUSv3:
...
-m List files across the page, separated by commas.
-p Print a slash after directory names
-x Same as -C but sort across the columns rather than down
Submitted by: Kyle Martin <mkm@ieee.org>
2002-05-19 02:51:36 +00:00
Ian Dowse
85ed93337f
Unconditionally update the maximum field width statistics when we
...
refetch the filesystem information in MNT_WAIT mode. This avoids
incorrect column alignment that sometimes occurs with NFS filesystems.
Submitted by: Ian <freebsd@damnhippie.dyndns.org>
2002-05-18 21:10:40 +00:00
Tim J. Robbins
1e7e78dca4
Back out part of previous commit: make -P the default again until I'm
...
convinced it's a good idea.
2002-05-18 13:52:07 +00:00
Tim J. Robbins
6873c4b7aa
Make -L the default, allow both -L and -P to be specified (last one used
...
matters), fall back to -P mode if we can't get the logical directory.
2002-05-18 02:47:25 +00:00
Andrey A. Chernov
486d038778
Optimize prev. commit code a bit
2002-05-17 12:24:19 +00:00
Andrey A. Chernov
27d3ae3587
Trailing slash fixes.
...
Fix the case:
cp file nonexistent/
which create nonextstent as file while trailing slash clearly indicates
that nonexistent must be a directory.
Also fix the case:
cp file1 file2/
which should produce error.
2002-05-17 11:52:48 +00:00
Juli Mallett
71e092d1bb
Remove local definition of _PATH_CP, and use <paths.h>, _PATH_CP is in the
...
CURRENT <paths.h>.
2002-05-17 11:38:48 +00:00
Josef Karthauser
d883e289b9
The sysctl has changed from 'kern.ps_showallprocs' to
...
'security.bsd.see_other_uids'.
2002-05-16 11:51:05 +00:00
Tom Rhodes
4481bee462
more file system > filesystem
2002-05-16 03:51:38 +00:00
Tom Rhodes
ebd4324457
Consistancy check s/file system/filesystem/
...
Reviewed by: brian
2002-05-16 01:57:20 +00:00
Bill Fumerola
568dcd5fca
restore missing default case removed in ls.c:r1.57
...
add break statements to default cases where missing.
Submitted by: bde
2002-05-15 18:53:56 +00:00
Juli Mallett
0928a7f16f
Make 'user' and 'group' const as to not discard the qualifier from the
...
functions we use to assign them. Doesn't seem to be anything else that
relies on these being non-const.
2002-05-15 09:49:59 +00:00
Juli Mallett
ff5e253326
Remove an empty default case to make this syntactically correct. Not there
...
is as good as blaknk.
2002-05-15 09:43:52 +00:00
Poul-Henning Kamp
532aff98f6
Remove the private code for reading UFS superblocks, this does not belong
...
in df(1) when we have multiple filesystem types, and the complications of
handling UFS2 pushes this over the edge.
Use the .../mount/extern.h to get prototypes of the functions we
borrow from there. Constify things to match. (why aren't these
functions in a lib anyway ?)
Make everything static and set WARNS?=5.
The way the "df diskdevice" thing works for unmounted diskdevices
is not very general.
Sponsored by: DARPA & NAI Labs.
2002-05-12 19:24:09 +00:00
Chris D. Faulhaber
c01df1d365
Add semicolon to empty default case to silence warning.
2002-05-11 03:12:02 +00:00
Garrett Wollman
94a48596a3
EXPR_COMPAT should imply -e, since there is no way to specify it otherwise,
...
and -e reflects the historic behavior of FreeBSD's expr.
2002-05-11 03:08:12 +00:00
Alfred Perlstein
033be9ae81
while i'm breaking stuff, use __dead2 instead of GCC specific __attribute__.
2002-05-11 01:25:54 +00:00
Alfred Perlstein
46d560550a
backout additional include of cdefs.h, it's not helping any.
2002-05-11 01:24:39 +00:00
Alfred Perlstein
dfe7e2f8ff
include cdefs.h for __printf0like to silence warning.
2002-05-11 00:54:33 +00:00
Chris D. Faulhaber
75a011263c
Add semicolon to empty default case to silence warning.
2002-05-11 00:45:01 +00:00
Alfred Perlstein
64baebf95b
Add semicolon to empty default case to silence warning.
2002-05-11 00:21:00 +00:00
Garrett Wollman
1393277e29
The response to my POSIX interpretation request says that `expr'
...
is required to be oblivious to overflow and to use the data type `long'.
(Division by zero is undefined in ISO C so it's still OK to check for it
here.) Add a new `-e' flag to get the old, more useful behavior.
2002-05-10 22:59:29 +00:00
David E. O'Brien
189d266f08
Remove gCC'isms.
2002-05-10 01:48:15 +00:00
Josef Karthauser
1063e12617
Replace /kernel with /boot/kernel/kernel.
...
PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
2002-05-09 11:47:42 +00:00
Dag-Erling Smørgrav
99b82bb76a
Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits.
...
Sponsored by: DARPA, NAI Labs
2002-05-08 00:47:01 +00:00
Juli Mallett
634d96e194
Check for possible overflow from sysconf _SC_ARG_MAX and error out in a
...
correct manner. Revert my incorrect change to use err(3) for malloc(3)
failing. Use a size_t variable to store the size of the argument buffer
we allocate, and remove silly casts as the result of having this around.
Modify the math in some of the paranoid checks for buffer overflow to
account for the fact we now are dealing with the actual size of the
buffer. Remove the static qualifier for arg_max, and the bogus setting
of it to -1.
Include <limits.h> for the definitions we use to check for possible
overflows.
Submitted by: bde
2002-05-05 04:42:50 +00:00
Juli Mallett
3d674c947c
Don't cast incorrectly to malloc(3), and don't use errx(3) if malloc(3)
...
returns NULL, as malloc(3) sets errno. Use err(3).
2002-05-02 05:46:37 +00:00
Mark Murray
4b1b25d919
Reorder for style.
2002-04-28 13:54:45 +00:00
Garrett Wollman
96ab7da385
Provide an environment variabloe, EXPR_COMPAT, which disables option
...
parsing for compatibility with old implementations.
2002-04-22 21:23:09 +00:00
Dag-Erling Smørgrav
d397408818
Usage style sweep: spell "usage" with a small 'u'.
...
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
Philippe Charnier
f4e4fcd30d
Use `The .Nm utility'
2002-04-21 12:53:08 +00:00
Philippe Charnier
874506698f
Use `The .Nm utility'
2002-04-20 11:58:12 +00:00
Maxime Henrion
7eab3d347b
Add a reference to the kenv(2) manpage.
2002-04-18 18:49:41 +00:00
Ruslan Ermilov
71b3ac84e1
Replaced exists() tests with two equivalent defined().
...
LIBDIR is defined in bsd.own.mk but sys.mk no longer
includes bsd.own.mk as of revision 1.60.
2002-04-18 07:01:35 +00:00
Maxime Henrion
41196280ac
Use the new functionalities provided by the kenv(2) syscall.
...
Reviewed by: peter
2002-04-17 13:08:14 +00:00
Philippe Charnier
e004acc891
Use `The .Nm utility'
2002-04-16 20:08:06 +00:00
Philippe Charnier
093e3ce74f
ls(1) is utility not function
2002-04-16 20:03:54 +00:00
Tom Rhodes
63b3046fd5
s/CMOS/hardware as talked about on cvs-committers.
...
Suggested by: sheldonh
Approved by: bde
MFC after: 1 day
2002-04-16 14:28:47 +00:00
Tom Rhodes
dfbea8a5ee
Little nit pick in date(1) manual page, tell users which clock date(1)
...
sets
PR: 35606
2002-04-15 18:05:14 +00:00
George C A Reid
4c7e4a544a
Stop a null pointer dereference in the builtin hash function.
...
PR: 36141
Approved by: cracauer
MFC after: 1 week
2002-04-15 15:49:30 +00:00
John W. De Boskey
b744b6caf9
Document option to option dependancy. Fix typo.
...
MFC after: 1 week
2002-04-15 02:21:12 +00:00
Philippe Charnier
c113db6945
Do not return(f_returning_void());. Spell FALLTHROUGH to make it lint()able.
2002-04-12 20:23:51 +00:00
Bosko Milekic
e5f7f97622
Introduce NO_RCMNDS flag so as to not compile rsh, rlogin, and rcp on will,
...
and document in share/examples/etc/make.conf
Submitted by: Aleksandar Simic <asimic@dsl.pipex.com>
MFC after: 1 week
2002-04-09 18:25:44 +00:00
Chris D. Faulhaber
a5b0f3020c
errx()/strerror() -> err()
2002-04-07 04:59:13 +00:00
Giorgos Keramidas
80c7362ce3
Various mdoc fixes, including a change that corrects spacing as
...
described in PR docs/36461.
PR: docs/36461
Noticed by: Gary W. Swearingen <swear@blarg.net>
Submitted by: ru
2002-03-31 20:49:37 +00:00
Andrey A. Chernov
82ea3997c1
Use intmax_t as quad_t replacement, like in expr
2002-03-28 16:30:42 +00:00
Ian Dowse
62edbd31c7
Make the columns in the output of df(1) line up, even for very large
...
filesystems. We now keep track of the maximum width required for
every variable-width field instead of just the first one.
PR: bin/15510
MFC after: 1 week
2002-03-26 20:32:37 +00:00
Ruslan Ermilov
9f1207d517
Install sys/security/lomac/*.h to /usr/include/security/lomac/.
...
Install sys/<arch>/include/pc/*.h to /usr/include/machine/pc/.
PR: docs/29534
Install sys/netatm/*/*.h to /usr/include/netatm/*/.
Don't install compatibility symlinks for <machine/soundcard.h>
and <machine/joystick.h>. Three years is enough to be aware of
the change, and these weren't visible in the SHARED=symlinks
case.
Back out include/Makefile,v 1.160 that was a null change anyway
due to the bug in the path, and we now don't want to install
these headers because they would otherwise be invisible in the
SHARED=symlinks case.
Don't install IPFILTER headers. Userland utilities fetch them
directly, and they were not visible in the SHARED=symlinks case.
Resurrect SHARED=symlinks in Makefile.inc1.
PR: bin/28002
Prodded by: bde
MFC after: 2 weeks
2002-03-26 16:05:14 +00:00
Mark Murray
55fad6bb0f
Replace use of __progname with the functionally identical and more
...
acceptable getprogname(3).
2002-03-24 14:56:55 +00:00
Garrett Wollman
efbb5e2289
Disable -Werror when building -- the old version of gcc used on IA32 can't
...
deal with C99 formats.
2002-03-23 00:44:00 +00:00
Garrett Wollman
dc2f94a3ff
Typo (if => of).
2002-03-22 20:49:29 +00:00
Garrett Wollman
7316a9465e
Add a word of caution about integer arithmetic range and overflow detection.
2002-03-22 20:46:59 +00:00
Garrett Wollman
f477880a4f
Fix a few formatting brainos and make the formatting of the EXAMPLES
...
section somewhat clearer.
2002-03-22 20:38:44 +00:00
Garrett Wollman
f07e42470f
Make expr POSIX-compliant, and fix some bugs. Specifically:
...
- expr must conform to the Utility Syntax Guidelines, so use
getopt() to eat the (non-existent) options.
- Use the Standard type intmax_t for arithmetic.
- If an argument cannot be *completely* converted to an integer, then
it is a string.
Additionally make some style cleanups near the modified lines. This
utility is still not completely style-compliant.
2002-03-22 20:18:26 +00:00
David E. O'Brien
0302f42b51
Update SCM ID.
2002-03-22 19:52:59 +00:00
David E. O'Brien
12767b8463
Note that -n is non-standard.
2002-03-22 19:52:48 +00:00
Mark Murray
d080dfa558
No need to cast; ().gr_gid is already the correct type.
2002-03-22 15:54:44 +00:00
David E. O'Brien
dce742c573
Add the -n option, which automatically answers "no" to the overwrite question.
2002-03-22 07:45:36 +00:00
Warner Losh
f1bb2cd2aa
remove __P
2002-03-22 01:22:50 +00:00
Ruslan Ermilov
1640d4e019
mdoc(7) police: use precise width specifier.
2002-03-15 14:21:13 +00:00
Robert Watson
7774db9751
NAI DBA update.
2002-03-14 21:51:00 +00:00
Mark Murray
afa5289a98
1) Rev.1.35 of dd.c has a more serious regression. It backs out rev.1.31,
...
thus breaking systems with unpolluted <sys/stat.h>'s.
2) Back out an initialisation of a variable in BSS.
Reported by: bde (1), many(2)
2002-03-07 14:00:33 +00:00
Maxim Konovalov
89a3a364c2
Log:
...
Remove eaccess(2) absence workaround. Add eaccess(2) checks for FILRD,
FILWR, FILEX and FILEXIST cases.
We cannot MFC this because there is no eaccess(2) in -stable yet.
PR: bin/35076
Reviewed by: ru
Approved by: ru
2002-03-06 11:20:13 +00:00
Warner Losh
250a0cef8f
Use ANSI-99 int names (uintXX_t) over traditional BSD int names
...
(u_intXX_t).
2002-03-05 05:28:49 +00:00
Alexey Zelkin
c1633140b7
Use NLSLINKS to setup symbolic links in NLS area
2002-03-04 12:29:21 +00:00
Alexey Zelkin
bd93868f5a
This file is not used anymore
2002-03-04 11:10:17 +00:00
Alexey Zelkin
f66b3927b3
Use bsd.nls.mk for building/installing NLS files
...
XXX: links handling simplify
2002-03-04 10:34:51 +00:00
Alfred Perlstein
6188858ae1
clarify code:
...
add comments.
don't get the length of each arg passed, only the last one.
check against == or != NULL rather than using a pointer value as
truth test.
2002-03-04 05:30:04 +00:00
Doug White
0551940858
Update STANDARDS section on rm(1) to reflect current conformance.
...
PR: 35471
2002-03-02 05:10:11 +00:00
Andrey A. Chernov
5f7ca9ae38
Add (unsigned char) cast lost in WARNS=4 fixes which break 8bit locales
...
PR: 35421
2002-02-28 18:52:47 +00:00
Maxim Sobolev
42d6cdd371
Fix a bug introduced in rev.1.23 - for some reason mkdir("/", ...) system
...
call returns `EISDIR', not `EEXIST', so that be prepared for that. This should
fix number of ports, that often call `mkdir -p //usr/local/foobar'. This
is just a quick workaround, the real fix would be either to avoid calling
mkdir("/", ...) or fix VFS code to return consistent errno for this case.
2002-02-25 09:17:44 +00:00
Bruce Evans
434b6ea45a
#include <time.h> for the definition of time functions instead of
...
depending on namespace pollution 2 layers deep in <sys/stat.h>.
Removed unused includes.
2002-02-25 01:36:59 +00:00
Bruce Evans
9880a81276
Fixed unsorting.
2002-02-23 21:00:14 +00:00
Bruce Evans
b909fa9cd0
Fixed some style bugs in revs 1.1 and 1.4.
2002-02-23 17:05:32 +00:00
Mark Murray
a3dbc1d804
ANSIfy.
2002-02-22 23:31:57 +00:00
Mark Murray
8bd08b5fac
Fix warnings inspired by lint, a commercial lint and WARNS=4.
2002-02-22 21:24:14 +00:00
Mark Murray
ece5764570
Fix a boatload of warnings inspired by lint, a commercial lint
...
and WARNS=4.
2002-02-22 21:21:37 +00:00
Mark Murray
4b23bd7c2a
Warnings fixes.
2002-02-22 21:13:31 +00:00
Mark Murray
4b4ed2fe6a
Fix warnings inspired by lint, a commercial lint and WARNS=4.
2002-02-22 21:11:03 +00:00
Mark Murray
fab912df88
Partially fix (well, work around) warnings inspired by lint, a
...
commercial lint and WARNS=4.
2002-02-22 21:02:58 +00:00
Mark Murray
9b2010a2de
Fix warnings inspired by lint, a commercial lint and WARNS=4.
2002-02-22 21:00:16 +00:00
Mark Murray
39661e26a5
Warnings fixes inspired by lint, a commercial lint and WARNS=4.
2002-02-22 20:57:53 +00:00
Mark Murray
5ca37430d9
Warning fix. Enter into the spirit of getopt(3) a bit more.
2002-02-22 20:55:04 +00:00
Mark Murray
9afa09cd0e
Fix warnings inspired by lint, a commercial lint and WARNS=4.
2002-02-22 20:51:00 +00:00
Mark Murray
71bea4f79d
Fix warnings inspired by lint, a commercial lint and WARNS=4
2002-02-22 20:45:09 +00:00
Matthew Dillon
d9a5f8900a
Revert wchan functionality. Add 'mwchan' to supply new duel mutex/msleep
...
functionality and make it the default.
With additional improvements by: Mark Peek <mp@FreeBSD.org>
2002-02-21 18:27:16 +00:00
Chris D. Faulhaber
95a801b700
Remove extraneous blank line
2002-02-19 02:36:35 +00:00
Chris D. Faulhaber
32e7fd5991
Use acl_dup() to duplicate an ACL instead of rolling our own
2002-02-19 02:36:15 +00:00
Warner Losh
576541a9e6
Fixed divots that I created when I moved prototypes of group_from_gid
...
and user_from_uid to grp.h and pwd.h. Update the man pages.
Submitted by: David Malone
Pointy hat to: imp
2002-02-19 00:05:59 +00:00