Commit Graph

1311 Commits

Author SHA1 Message Date
markm
fc8356a232 Replace use of __progname with the functionally identical and more
acceptable getprogname(3).
2002-03-24 14:56:55 +00:00
wollman
d85f419c79 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
wollman
1a59c73a2c Typo (if => of). 2002-03-22 20:49:29 +00:00
wollman
b0d54760f5 Add a word of caution about integer arithmetic range and overflow detection. 2002-03-22 20:46:59 +00:00
wollman
27c6accc73 Fix a few formatting brainos and make the formatting of the EXAMPLES
section somewhat clearer.
2002-03-22 20:38:44 +00:00
wollman
4e608fc32e 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
obrien
98f125ea1c Update SCM ID. 2002-03-22 19:52:59 +00:00
obrien
ef059b4011 Note that -n is non-standard. 2002-03-22 19:52:48 +00:00
markm
ec1eb74186 No need to cast; ().gr_gid is already the correct type. 2002-03-22 15:54:44 +00:00
obrien
61a885d56f Add the -n option, which automatically answers "no" to the overwrite question. 2002-03-22 07:45:36 +00:00
imp
0338ac6a1a remove __P 2002-03-22 01:22:50 +00:00
ru
5c6bc34884 mdoc(7) police: use precise width specifier. 2002-03-15 14:21:13 +00:00
rwatson
eabc63e797 NAI DBA update. 2002-03-14 21:51:00 +00:00
markm
0735f3117d 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
631ef59060 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
imp
fb22a358b3 Use ANSI-99 int names (uintXX_t) over traditional BSD int names
(u_intXX_t).
2002-03-05 05:28:49 +00:00
phantom
5f86a18bff Use NLSLINKS to setup symbolic links in NLS area 2002-03-04 12:29:21 +00:00
phantom
f6960e3651 This file is not used anymore 2002-03-04 11:10:17 +00:00
phantom
92d4bb81df Use bsd.nls.mk for building/installing NLS files
XXX: links handling simplify
2002-03-04 10:34:51 +00:00
alfred
390e9a81b4 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
dwhite
02c50f4b23 Update STANDARDS section on rm(1) to reflect current conformance.
PR:		35471
2002-03-02 05:10:11 +00:00
ache
8a51ae78da Add (unsigned char) cast lost in WARNS=4 fixes which break 8bit locales
PR:		35421
2002-02-28 18:52:47 +00:00
sobomax
6f7d309606 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
bde
e8e5e3ae3e #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
bde
483dd817ba Fixed unsorting. 2002-02-23 21:00:14 +00:00
bde
5338b0997f Fixed some style bugs in revs 1.1 and 1.4. 2002-02-23 17:05:32 +00:00
markm
4aa2d4fa00 ANSIfy. 2002-02-22 23:31:57 +00:00
markm
ee2f06b03c Fix warnings inspired by lint, a commercial lint and WARNS=4. 2002-02-22 21:24:14 +00:00
markm
9e35513d0e Fix a boatload of warnings inspired by lint, a commercial lint
and WARNS=4.
2002-02-22 21:21:37 +00:00
markm
03f1496bae Warnings fixes. 2002-02-22 21:13:31 +00:00
markm
b3e4081ec6 Fix warnings inspired by lint, a commercial lint and WARNS=4. 2002-02-22 21:11:03 +00:00
markm
a33cc75ffc Partially fix (well, work around) warnings inspired by lint, a
commercial lint and WARNS=4.
2002-02-22 21:02:58 +00:00
markm
4494bed20d Fix warnings inspired by lint, a commercial lint and WARNS=4. 2002-02-22 21:00:16 +00:00
markm
3842430d9b Warnings fixes inspired by lint, a commercial lint and WARNS=4. 2002-02-22 20:57:53 +00:00
markm
31c872a216 Warning fix. Enter into the spirit of getopt(3) a bit more. 2002-02-22 20:55:04 +00:00
markm
ae5af8bf38 Fix warnings inspired by lint, a commercial lint and WARNS=4. 2002-02-22 20:51:00 +00:00
markm
9174b7094d Fix warnings inspired by lint, a commercial lint and WARNS=4 2002-02-22 20:45:09 +00:00
dillon
53b08a5c9e 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
jedgar
01be043514 Remove extraneous blank line 2002-02-19 02:36:35 +00:00
jedgar
cd6687b75a Use acl_dup() to duplicate an ACL instead of rolling our own 2002-02-19 02:36:15 +00:00
imp
1e7fa14cdb 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
imp
7f908655bc Remove now-obsolete __STDC__ ifdefs, remove redundant NULL definition and
include stdlib.h for NULL.
2002-02-18 06:08:23 +00:00
gshapiro
8dc3819182 Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
dillon
db9a4ef194 When blocked on a mutex, display the mutex name via the wchan string field
so we can at least tell the difference between being blocked in Giant
and being blocked in some other mutex.
2002-02-16 20:10:00 +00:00
des
721caa3de6 Document the 'M' state. 2002-02-16 18:47:22 +00:00
imp
ebadb1bce0 Move user_from_uid to pwd.h
Move group_from_gid to grp.h
Remove from stdlib.h
Make the prototypes match the code
Fix rm and mv to include new files.

NetBSD has these defined in those files, and others too that I've not
done.

Approved by: terminal room kabal
Reviewed by: jhb, phk
2002-02-14 01:59:47 +00:00
mp
26f4e2354e Install complete.tcsh and csh-mode.el into ${SHAREDIR}/examples/tcsh.
PR:		misc/34800 (from Steven Grady)
Submitted by:	phantom (patch)
MFC after:	3 days
2002-02-12 04:50:12 +00:00
mike
daba1c9bf3 Repo-copied src/bin/pwd/realpath.1' to src/bin/realpath/realpath.1',
as part of the move to seperate realpath(1) into its own directory.
2002-02-11 18:45:29 +00:00
mike
8de0de135a o Remove old code from pwd(1); realpath(1) is now in its own directory.
o Fix some unordered includes in pwd(1).
o Connect realpath(1) to the build.
2002-02-11 18:38:54 +00:00
mike
e5c7434c9f Move the realpath(1) source into its own directory. Previously, it
shared sources with pwd(1).
2002-02-11 07:32:17 +00:00