Commit Graph

50 Commits

Author SHA1 Message Date
enami
c1e351a1b2 Don't truncate at microseconds while preserving timestamps.
One of motivation of this change is to make the behavior of test(1)
-nt/ot with preserved copy (like cp -p) closer to the NetBSD 6.
Of course whether full timestamps are kept or not depends also on
underlying file system.

The ifdef added in mv(1) since existing ifdefs was our local change
to compile it on solaris (though I couldn't test it):
http://mail-index.netbsd.org/tech-userlevel/2014/11/28/msg008831.html
2015-03-02 03:17:24 +00:00
pgoyette
93d803dab3 Note that -d, -r, and -t are mutually exclusive and only the last one
is used.

While here, alphabetize the other list of r/d/t flags.
2012-10-24 02:46:25 +00:00
wiz
ee9b5a26a5 Add --date and --reference to SYNOPSIS. 2012-10-23 20:44:22 +00:00
pgoyette
8955665a05 Note that -d flag also precludes historical usage. 2012-10-22 22:59:33 +00:00
christos
730c385f2b Recognize --date and --reference like gnu. 2012-10-22 21:51:58 +00:00
wiz
8a3946005d Mention option arguments in DESCRIPTION. 2012-07-27 18:34:35 +00:00
christos
9c7d3306a7 add an option to parse human dates. 2012-07-25 01:23:46 +00:00
wiz
f602473a1a - Use more consistent wording;
- create separate section, and use `.Ex' macro, for exit status
  information.

From patch by Bug Hunting.

Bump date.
2012-06-20 09:56:18 +00:00
joerg
cd57b1ce2a ANSIfy, static + __dead 2011-09-06 18:33:18 +00:00
wiz
ad04318fa8 Sort sections. 2011-02-22 15:47:02 +00:00
pooka
fbe84585a0 -f no longer has effect. from Snader_LB on irc. 2011-02-22 15:03:30 +00:00
yamt
a26c5cc0c2 remove read-write code because it's dangerous.
there's no point to try this hard anyway.
2009-04-28 02:47:12 +00:00
lukem
98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
dsl
2769bb6a26 Coverty 1212: Avoid close(-1). 2006-03-18 11:15:00 +00:00
tsutsui
6413f86a09 Fix more FALLTHOUGH -> FALLTHROUGH typo. 2005-11-26 13:57:27 +00:00
agc
89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
ross
2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
mycroft
ff488606e6 Nit: In the compatibility case, set the seconds to 0. 1999-11-05 04:54:10 +00:00
ross
f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
mycroft
7eb2b1553a Fix the old-style date parsing code as well. 1998-01-21 00:48:44 +00:00
mycroft
85876e6b32 Minor code rearrangement, and allow less of the time stamp to be specified. 1998-01-21 00:24:46 +00:00
mycroft
651689eea9 Fix a typo. 1998-01-20 21:18:25 +00:00
mycroft
95c66d2a0a Pull in tzfile.h. 1998-01-20 21:04:04 +00:00
mycroft
eeec814a41 Use TM_YEAR_BASE to adjust tm_year, not 1900. 1998-01-20 20:53:32 +00:00
fvdl
0ab13b6dc6 Revert to previous version; new libc function "versioning" works
with the original.
1997-10-22 00:46:20 +00:00
thorpej
f38faa3370 Make this work with the new versioned stat(2) functions. 1997-10-21 18:25:26 +00:00
lukem
d175d28880 WARNSify, fix .Nm usage, getopt returns -1 not EOF 1997-10-20 00:49:53 +00:00
mycroft
7864b49784 Purely cosmetic change. 1997-10-19 14:38:04 +00:00
enami
dd88a36ade Fix typo; symbolic link' -> a symbolic link'. 1997-10-17 08:10:22 +00:00
enami
b34354ff76 Add h option to usage. 1997-10-11 03:12:17 +00:00
enami
7c1dbc2781 Document new flag -h. 1997-10-06 13:52:35 +00:00
enami
d104b0b843 Introduce new flag, -h, to manupilate access/modification time of
symbolic link.
1997-10-06 13:46:52 +00:00
jtc
5b466bef97 Changed order of STANDARDS and HISTORY subheads to conform with
specification in mdoc(7).
1997-09-09 07:26:02 +00:00
jtc
fcf00a7f44 Sync with 44lite2 1995-08-31 22:10:05 +00:00
pk
20a3845e27 Correct description of default century (from Peter Seebach; PR#1423). 1995-08-30 21:21:21 +00:00
cgd
ed7cdf533b can't assume that timeval.ts_sec is same type as time_t. grr. 1995-06-07 16:09:53 +00:00
jtc
9341ecd420 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-12-07 09:19:47 +00:00
jtc
70a4f3c1c1 Fix spelling errors. 1994-01-11 18:49:16 +00:00
jtc
b5cb7536b3 Localization changes + minor bug fix. 1993-12-31 19:33:02 +00:00
cgd
8002428397 fix for "touch -t CCYYMMDDhhmm[.SS]". the CC part didn't work. from
Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
1993-09-16 21:44:35 +00:00
jtc
9b167d5a52 Fix formatting bug. 1993-08-26 23:02:54 +00:00
mycroft
616b65b637 Add 4.4-specific code in `#ifdef notyet's. 1993-08-07 04:50:32 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft
75ff3a90bd Add RCS identifiers. 1993-07-30 23:49:23 +00:00
glass
ed3ef484f2 fix bug in touch's non-posix compatibility support. bug report also
forwarded to CSRG as this is their current 'touch'.  bug reported by
Kim Andersen <kim@dde.dk>
1993-06-02 13:35:40 +00:00
mycroft
627697e07d s/__dead/volatile/ 1993-05-01 16:53:03 +00:00
glass
8b8c96cad4 new touch 1993-04-30 23:07:07 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00