summaryrefslogtreecommitdiff
path: root/usr.bin/find/option.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-12-04 22:42:33 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-12-04 22:42:33 +0000
commitc4bfe6718e0319e5b13ff515c6cc82e59856a8a1 (patch)
treefe3e8d21d83e9d1e277ff2bd4773ded9f4c8a208 /usr.bin/find/option.c
parentceeeb976bc6e78e099688b7c197f920dfde608c2 (diff)
o use nanosecond precision with the -newer option
o add -anewer and -cnewer options like GNU find.
Diffstat (limited to 'usr.bin/find/option.c')
-rw-r--r--usr.bin/find/option.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/find/option.c b/usr.bin/find/option.c
index 3ba9338f390..b6a99231038 100644
--- a/usr.bin/find/option.c
+++ b/usr.bin/find/option.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: option.c,v 1.8 1997/11/28 09:39:17 deraadt Exp $ */
+/* $OpenBSD: option.c,v 1.9 1999/12/04 22:42:32 millert Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)option.c 8.1 (Berkeley) 6/6/93";*/
-static char rcsid[] = "$OpenBSD: option.c,v 1.8 1997/11/28 09:39:17 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: option.c,v 1.9 1999/12/04 22:42:32 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -59,9 +59,11 @@ static OPTION options[] = {
{ ")", N_CLOSEPAREN, c_closeparen, O_ZERO },
{ "-a", N_AND, NULL, O_NONE },
{ "-amin", N_AMIN, c_amin, O_ARGV },
+ { "-anewer", N_ANEWER, c_anewer, O_ARGV },
{ "-and", N_AND, NULL, O_NONE },
{ "-atime", N_ATIME, c_atime, O_ARGV },
{ "-cmin", N_CMIN, c_cmin, O_ARGV },
+ { "-cnewer", N_CNEWER, c_cnewer, O_ARGV },
{ "-ctime", N_CTIME, c_ctime, O_ARGV },
{ "-depth", N_DEPTH, c_depth, O_ZERO },
{ "-empty", N_EMPTY, c_empty, O_ZERO },