diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-07 12:18:36 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-07 12:18:36 +0000 |
commit | d5a47478649b5a61c11248fb8a21b655990f328c (patch) | |
tree | 3b5835c1b6da08110ebdfc247da60d1acc5f46ee | |
parent | 4f9538656143daf16deb2640d8ed498a409df65c (diff) |
Remove birth time from the default formats, we do not support it (yet), but
leave the B format available for the future. ok tedu@ tdeval@ henning@
-rw-r--r-- | usr.bin/stat/stat.1 | 3 | ||||
-rw-r--r-- | usr.bin/stat/stat.c | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/usr.bin/stat/stat.1 b/usr.bin/stat/stat.1 index 7584673e3c3..b8e7dcf2f04 100644 --- a/usr.bin/stat/stat.1 +++ b/usr.bin/stat/stat.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: stat.1,v 1.8 2005/04/04 13:53:15 jmc Exp $ +.\" $OpenBSD: stat.1,v 1.9 2005/04/07 12:18:35 otto Exp $ .\" $NetBSD: stat.1,v 1.11 2003/05/08 13:07:10 wiz Exp $ .\" .\" Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -299,6 +299,7 @@ The time .Ar file was last accessed or modified, or when the inode was last changed, or the birth time of the inode. +If the file system does not support birth time, the value is undefined. .It Cm z The size of .Ar file diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c index fb75869705f..e9b1f6232c7 100644 --- a/usr.bin/stat/stat.c +++ b/usr.bin/stat/stat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stat.c,v 1.6 2005/04/03 18:38:28 deraadt Exp $ */ +/* $OpenBSD: stat.c,v 1.7 2005/04/07 12:18:35 otto Exp $ */ /* $NetBSD: stat.c,v 1.19 2004/06/20 22:20:16 jmc Exp $ */ /* @@ -39,7 +39,7 @@ #ifndef lint static const char rccs_id[] = - "$OpenBSD: stat.c,v 1.6 2005/04/03 18:38:28 deraadt Exp $"; + "$OpenBSD: stat.c,v 1.7 2005/04/07 12:18:35 otto Exp $"; #endif #include <sys/types.h> @@ -58,16 +58,16 @@ static const char rccs_id[] = #include <unistd.h> #define DEF_FORMAT \ - "%d %i %Sp %l %Su %Sg %r %z \"%Sa\" \"%Sm\" \"%Sc\" \"%SB\" " \ + "%d %i %Sp %l %Su %Sg %r %z \"%Sa\" \"%Sm\" \"%Sc\" " \ "%k %b %#Xf %N" -#define RAW_FORMAT "%d %i %#p %l %u %g %r %z %a %m %c %B " \ +#define RAW_FORMAT "%d %i %#p %l %u %g %r %z %a %m %c " \ "%k %b %f %N" #define LS_FORMAT "%Sp %l %Su %Sg %Z %Sm %N%SY" #define LSF_FORMAT "%Sp %l %Su %Sg %Z %Sm %N%T%SY" #define SHELL_FORMAT \ "st_dev=%d st_ino=%i st_mode=%#p st_nlink=%l " \ "st_uid=%u st_gid=%g st_rdev=%r st_size=%z " \ - "st_atime=%a st_mtime=%m st_ctime=%c st_birthtime=%B " \ + "st_atime=%a st_mtime=%m st_ctime=%c " \ "st_blksize=%k st_blocks=%b st_flags=%f" #define LINUX_FORMAT \ " File: \"%N\"%n" \ |