maxim
7d69422196
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
f0662fdefd
Use ANSI-99 int names (uintXX_t) over traditional BSD int names
...
(u_intXX_t).
2002-03-05 05:28:49 +00:00
phantom
9124a610d0
Use NLSLINKS to setup symbolic links in NLS area
2002-03-04 12:29:21 +00:00
phantom
63f07ef33b
This file is not used anymore
2002-03-04 11:10:17 +00:00
phantom
d12220dfdb
Use bsd.nls.mk for building/installing NLS files
...
XXX: links handling simplify
2002-03-04 10:34:51 +00:00
alfred
fd4aa99c82
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
12798316b8
Update STANDARDS section on rm(1) to reflect current conformance.
...
PR: 35471
2002-03-02 05:10:11 +00:00
ache
4ac9e16668
Add (unsigned char) cast lost in WARNS=4 fixes which break 8bit locales
...
PR: 35421
2002-02-28 18:52:47 +00:00
sobomax
521f052069
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
cf8ef037c8
#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
0a286122a7
Fixed unsorting.
2002-02-23 21:00:14 +00:00
bde
be1787bc6d
Fixed some style bugs in revs 1.1 and 1.4.
2002-02-23 17:05:32 +00:00
markm
5b69d7da62
ANSIfy.
2002-02-22 23:31:57 +00:00
markm
2b941891db
Fix warnings inspired by lint, a commercial lint and WARNS=4.
2002-02-22 21:24:14 +00:00
markm
3ce9528bfb
Fix a boatload of warnings inspired by lint, a commercial lint
...
and WARNS=4.
2002-02-22 21:21:37 +00:00
markm
3b69d13d7c
Warnings fixes.
2002-02-22 21:13:31 +00:00
markm
2e9a506a04
Fix warnings inspired by lint, a commercial lint and WARNS=4.
2002-02-22 21:11:03 +00:00
markm
02fae8d816
Partially fix (well, work around) warnings inspired by lint, a
...
commercial lint and WARNS=4.
2002-02-22 21:02:58 +00:00
markm
d2f778cddf
Fix warnings inspired by lint, a commercial lint and WARNS=4.
2002-02-22 21:00:16 +00:00
markm
1fb3e88343
Warnings fixes inspired by lint, a commercial lint and WARNS=4.
2002-02-22 20:57:53 +00:00
markm
863c4cc748
Warning fix. Enter into the spirit of getopt(3) a bit more.
2002-02-22 20:55:04 +00:00
markm
7b7558d884
Fix warnings inspired by lint, a commercial lint and WARNS=4.
2002-02-22 20:51:00 +00:00
markm
f24931e332
Fix warnings inspired by lint, a commercial lint and WARNS=4
2002-02-22 20:45:09 +00:00
dillon
23fcffffc9
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
8cdc9fd108
Remove extraneous blank line
2002-02-19 02:36:35 +00:00
jedgar
8df81cb659
Use acl_dup() to duplicate an ACL instead of rolling our own
2002-02-19 02:36:15 +00:00
imp
60cc340d82
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
d4f0b8fef8
Remove now-obsolete __STDC__ ifdefs, remove redundant NULL definition and
...
include stdlib.h for NULL.
2002-02-18 06:08:23 +00:00
gshapiro
730b12a9a9
Update build infrastructure for sendmail 8.12.
2002-02-17 22:05:07 +00:00
dillon
77112edb7c
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
66be93a737
Document the 'M' state.
2002-02-16 18:47:22 +00:00
imp
f58558abb7
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
5d2ae7a01f
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
72a803ac5e
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
e9400873cc
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
18a66da4bb
Move the realpath(1) source into its own directory. Previously, it
...
shared sources with pwd(1).
2002-02-11 07:32:17 +00:00
mike
c9034a8d20
Use the getprogname(3) function instead of directly accessing
...
`__progname'.
Submitted by: dd
2002-02-10 05:56:36 +00:00
markm
ae2558974f
Remove leaf node WARNS?=2 (that mainly I added). This should
...
help the GCC3 transition and CURRENT in general.
2002-02-08 22:31:43 +00:00
green
b3206d8278
Correct a logic bug that snuck in and broke multiplication of off_ts.
2002-02-07 02:54:30 +00:00
zarzycki
98e34f92cb
Fix the race between the stat() and the mkdir().
...
Reviewed by: jkh
2002-02-05 21:55:12 +00:00
mike
9ee57bcb7f
Add -L option (SUSv3) to pwd(1). Fix a bug, where realpath(1) would
...
complain about paths starting with `-', by not calling getopt(3).
Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au>
Obtained from: NetBSD (partially)
MFC after: 1 month
2002-02-04 07:26:21 +00:00
kris
a1a10418c8
Correct inadvertent style botches in previous commit.
2002-02-04 03:06:51 +00:00
kris
bb3058824a
Lock down with WFORMAT=1 except those directories with unfixed warnings.
...
Tested on i386 and alpha.
2002-02-04 02:49:19 +00:00
kris
6ca02c8912
__printflike() should really be __printf0like() since verrx() can
...
accept a NULL format string.
2002-02-04 01:11:48 +00:00
kris
51396a4bd6
Add a __printflike() attribute to silence warning with FORMAT_AUDIT=1
2002-02-04 01:07:07 +00:00
markm
2973d46886
Use __FBSDID() and clean up the vendor tags.
2002-02-03 20:55:54 +00:00
markm
1084c0a6b2
WARNS=4 fixes, plus a healthy dose of fixes inspired by lint.
2002-02-03 19:11:32 +00:00
markm
aa05461c14
WARNS=4 fixes (incomplete, so set NO_WERROR), and lots of extra
...
cleanup courtesy of automatic checking (lint).
2002-02-03 14:43:04 +00:00
knu
396a7859f4
Work around a buffer overflow problem on argv that has been exposed
...
after making test(1) a sh(1) builtin; sh(1) coredumps when you run
something like this:
sh -c 'test ! `true 1`'
The cause is that the test(1) code totally depends on the presence of
two extra cells at the end of argv that are filled with NULL's. The
reason why the bug hasn't been exposed would be because the C startup
code kindly prepares argv with some extra zeroed cells for a program.
I know this is not the best fix, but since there are argv++'s without
boundary checks everywhere, I'd rather patch it up like this
(preparing a copy of argv with extra NULL's) for the moment.
MFC after: 3 days
2002-02-03 10:01:49 +00:00
jedgar
2547546bed
Use a more correct method of copying entire ACLs (fixes
...
operation under Linux).
2002-02-03 02:37:43 +00:00