Jim Meyering
0d148ec872
Handle DOOR.
1999-02-03 05:41:42 +00:00
Jim Meyering
751a3dc73b
(S_ISLNK, S_ISFIFO, S_ISSOCK, S_ISCHR, S_ISBLK, S_ISDOOR):
...
Define to zero if not already defined.
(HAVE_SYMLINKS): Define.
(gobble_file): Remove #ifdef.
(get_link_name, make_link_path): Guard these with #if HAVE_SYMLINKS
rather than #ifdef S_ISLNK.
(print_type_indicator): Remove #ifdefs and reorganize.
(print_color_indicator): Remove #ifdefs.
(length_of_file_name_and_frills): Likewise.
1999-02-03 05:41:18 +00:00
Jim Meyering
43aa4122fc
(print_type_indicator): Print doors as '>'.
...
(length_of_file_name_and_frills): Account for this.
1999-02-03 05:16:22 +00:00
Jim Meyering
015e2e77ed
New version from L. Peter Deutsch.
1999-02-03 02:01:06 +00:00
Jim Meyering
4872440d7a
(do_link): Allow creation of a hard link to a dangling
...
symlink. Reported by Alexey Solovyov:
1999-01-31 18:41:36 +00:00
Jim Meyering
2f07328f17
(main): Call chdir ("/") after chroot.
...
Suggestion from James Youngman.
1999-01-31 17:50:53 +00:00
Jim Meyering
62b3fd4e81
(print_uptime): Use the C numeric locale for sscanf
...
of /proc/uptime data, then restore.
1999-01-31 16:53:28 +00:00
Jim Meyering
eaec7699ac
(copy_internal): Describe any backup-related renaming
...
operations when in verbose mode.
(copy_internal): Likewise.
Based on changes from Marty Leisner.
1999-01-31 15:12:43 +00:00
Jim Meyering
a2f2ba51bc
Use TIME_WITH_SYS_TIME-based #if test rather than
...
TM_IN_SYS_TIME based one (for shred).
1999-01-29 04:58:32 +00:00
Jim Meyering
f525fd81ca
(isaac_seed): Guard clock_gettime with test of
...
HAVE_CLOCK_GETTIME, not CLOCK_REALTIME.
(wipename): Rename local dirfd to dir_fd to avoid shadowing the
function declared in Linux's dirent.h.
1999-01-25 15:13:10 +00:00
Jim Meyering
276d118b10
(usage): Remove static attribute.
1999-01-25 14:33:38 +00:00
Jim Meyering
fe9d964a78
(usage): Remove static attribute.
...
Move function be the first in the file.
1999-01-25 14:31:12 +00:00
Jim Meyering
54f4eb2224
(usage): Remove static attribute.
...
Move function be the first in the file.
1999-01-25 14:30:08 +00:00
Jim Meyering
86fb9cb9ec
(usage): Remove static attribute.
...
Move function be the first in the file.
1999-01-25 14:29:22 +00:00
Jim Meyering
7082d762aa
(usage): Remove static attribute.
...
Move function be the first in the file.
1999-01-25 14:28:31 +00:00
Jim Meyering
22099863b4
(usage): Remove static attribute.
...
Move function be the first in the file.
1999-01-25 14:27:48 +00:00
Jim Meyering
a4c1c9627e
(usage): Remove static attribute.
...
Move function be the first in the file.
1999-01-25 14:26:38 +00:00
Jim Meyering
53ab150d29
(usage): Remove static attribute.
...
Move function be the first in the file.
1999-01-25 14:24:35 +00:00
Jim Meyering
becdfba8b9
New version from L. Peter Deutsch.
1999-01-25 05:50:56 +00:00
Jim Meyering
2ecbb0307d
Exit nonzero upon failed write to stdout.
1999-01-25 00:34:26 +00:00
Jim Meyering
11a5174aa6
(DONT_UNLINK_WHILE_OPEN) [__MSDOS__ || _WIN32]: Define.
1999-01-25 00:18:47 +00:00
Jim Meyering
26756c6f82
(fdatasync): Remove function. instead, ...
...
[! HAVE_FDATASYNC]: Define to fsync.
From Colin Plumb.
1999-01-24 15:10:22 +00:00
Jim Meyering
70db3065cb
(fdatasync) [! HAVE_FDATASYNC]: New function.
1999-01-23 23:07:53 +00:00
Jim Meyering
1b0f03e1da
(wipename): Print the `FILE: deleting' message only when in verbose mode.
1999-01-23 18:55:34 +00:00
Jim Meyering
e21cf52e03
(wipename): Print the `FILE: deleted' message only when in verbose mode.
1999-01-23 18:33:11 +00:00
Jim Meyering
4ab3a8a345
always close stdout
1999-01-23 18:15:41 +00:00
Jim Meyering
35c2b35dbd
fix typos in comments
1999-01-23 17:36:33 +00:00
Jim Meyering
9550ca6b71
(pfstatus): Use __format__ and __printf__.
...
Remove `if __GNUC__ >= 2' guard.
1999-01-23 16:48:36 +00:00
Jim Meyering
b02f28bab4
Bracket pfstatus messages with _().
1999-01-23 16:26:16 +00:00
Jim Meyering
68e327564d
add parens around STREQ
1999-01-23 15:34:18 +00:00
Jim Meyering
e363353a48
restore mistakenly removed stdio.h
...
use error in place of pferror
(pferror): Remove.
(wipefd): Use error in place of fprintf(stderr,... call
s/alllocate/allocate
1999-01-23 15:32:48 +00:00
Jim Meyering
954d1b451f
use `%s' rather than \"%s\" everywhere
1999-01-23 15:22:16 +00:00
Jim Meyering
8b036d56ef
s/sterilize/shred/g
...
Don't include headers already included (and guarded by HAVE_FOO_H tests)
in system.h.
1999-01-23 15:17:54 +00:00
Jim Meyering
758bbda788
use getopt_long
...
(struct Options): Declare.
(usage): New function.
(program_name): Rename from argv0
(FLAG_* macros): Remove.
1999-01-23 05:32:58 +00:00
Jim Meyering
ae7d45cdc9
Include config.h, getopt.h, system.h and error.h.
...
Use #else/#if, not #elif.
1999-01-22 02:19:24 +00:00
Jim Meyering
21cf7cf8c2
indent -- sorry Colin.
1999-01-18 05:49:43 +00:00
Jim Meyering
e11c197cc2
(do_link): Try to remove DEST even after renaming it.
...
This fixes a bug reported by Jamie Lokier.
1999-01-18 02:41:13 +00:00
Jim Meyering
1f4c0ed890
cpp-indent #error line
1999-01-18 00:44:57 +00:00
Jim Meyering
9a6aae1ed7
.
1999-01-18 00:44:18 +00:00
Jim Meyering
ea020acdd2
(same_name): Use SAME_INODE rather than open coding it.
1999-01-17 18:12:19 +00:00
Jim Meyering
d34ec08816
compress copyright
1999-01-17 04:15:12 +00:00
Jim Meyering
cf00554f8f
Don't declare base_name.
1999-01-16 16:22:00 +00:00
Jim Meyering
1b9f58551d
Don't declare base_name.
...
Use function-style XARGMATCH once again.
1999-01-16 16:21:46 +00:00
Jim Meyering
4e83f9789c
(usage): Remove `static'.
...
Use function-style XARGMATCH.
1999-01-16 16:20:02 +00:00
Jim Meyering
29064b5f4f
Remove declarations of base_name and get_version.
...
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it.
Use xget_version and function-style XARGMATCH.
1999-01-16 16:18:26 +00:00
Jim Meyering
fadedac410
Remove declarations of base_name and get_version.
...
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it.
Use xget_version and function-style XARGMATCH.
1999-01-16 16:14:56 +00:00
Jim Meyering
06f14ae760
Remove declarations of base_name and get_version.
...
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it.
Use xget_version and function-style XARGMATCH.
1999-01-16 16:14:31 +00:00
Jim Meyering
1592f752f6
Don't declare base_name.
...
(usage): Don't make it static so that it can be
called from libfu.a by xargmatch.
1999-01-16 16:13:31 +00:00
Jim Meyering
84b4618b26
Remove declarations of base_name and get_version.
...
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it.
Use xget_version and function-style XARGMATCH.
1999-01-16 16:12:05 +00:00
Jim Meyering
ff5b4df30b
Add prototype for base_name.
1999-01-16 15:37:25 +00:00