summaryrefslogtreecommitdiff
path: root/usr.bin/stat/stat.c
AgeCommit message (Expand)Author
2022-06-22Some corrections to stat to make it more reasonable, and comply withkre
2021-08-27stat: fix undefined behavior when calling ctype functionsrillig
2020-09-07avoid a GCC stringop truncate warning.mrg
2019-10-04adjust fallthru comment.mrg
2019-02-04avoid a potential buffer truncation.mrg
2017-09-21Handle the new %f (as an addition to the strftime format - -t arg)kre
2017-09-21KNF, and since this gets compiled as a tool, avoid C99 declarations.kre
2017-09-20Set the default time format for linux mode (-x) in the correct place,kre
2017-09-20- add the sticky bits to modechristos
2017-09-19- if st_dev/st_rdev == NODEV print -1 instead of unsignedchristos
2013-01-03Unset HAVE_DEVNAME for tools build.dsl
2012-12-02Honor the -t option to set the time format when running stat -s.erh
2011-09-22Use vis(3) encoding when a string format is modified by the '#' flag.apb
2011-09-06static + __deadjoerg
2011-02-16Add verbose mode for readlink.christos
2011-01-15Do not crash if a date cannot be represented (localtime returningnjoly
2010-12-16Don't pass unused argument. From Doug Barton.dholland
2010-12-16Use strlcpy, not strncpy, when the desired semantics are strlcpy'sdholland
2010-11-25Improve previous with comments.dholland
2010-11-24Don't printf time_t with %d; fixes PR 44128 from yamt. With this change itdholland
2009-04-13Fix WARNS=4 issues (-Wcast-qual -Wsign-compare)lukem
2008-05-16The ofmt variable is actually a bit mask (not the character that wasatatat
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-02-09Fix a segfault when doing 'stat -f %R' on the stdin file handle, insteadmlelstv
2006-10-07PR/34662: martijnb at atlas dot ipv6 dot stack dot nl: readlink doesn'telad
2005-06-23Bend the 'L', 'M', and 'H' modifiers to work on the size, whereby itatatat
2005-04-22Fix a trivial truncation case, and eliminate a corner case that mightatatat
2005-01-13Now that tools/compat provides a check, make sure st_birthtimensec existsjmc
2004-12-31Add "dirname"- and "basename"-like functionality to stat(1) by way ofatatat
2004-06-20Completely rework how tools/compat is done. Purge all uses/references tojmc
2004-05-28If using stat (the -L flag) and it fails, fall back to lstat(). Itatatat
2003-10-29Take the time to set gottime so that you don't have to waste timeatatat
2003-10-27be consistent using #if HAVE_STRUCT_STAT_ST_xxx (versus #ifdef)lukem
2003-10-27Overhaul how `build.sh tools' are used:lukem
2003-10-26fix for systems which don't have st_*timespec. PR 23214.chs
2003-07-25More properly host-tool-ify statatatat
2003-07-23* don't compile in support for st_birth #ifdef HOSTPROGlukem
2003-07-20first attempt at making this a HOSTPROGlukem
2003-05-08Add %B to print the st_birthtime of an inode (adjusting the "raw"atatat
2002-10-19use readlink with bufsize - 1; approved thorpej.provos
2002-08-13Use limits.h instead of sys/syslimits.h since it's more potrable.atatat
2002-08-13Style sync with FreeBSD. Changes via Doug Barton <DougB@FreeBSD.org>.atatat
2002-07-09Header reorganization makes a shorter list. From Doug Barton <DougB@FreeBSD....atatat
2002-07-09The bitwise or-ing together of letters is almost *guaranteed* to doatatat
2002-07-08A new command line option, -q, suppresses *stat(2) failure messages.atatat
2002-05-31When asked for the string representation of a device that isn'tatatat
2002-05-09Add a simple format that translates to the current file number, fix anatatat
2002-04-27Add a stat(1) program to /usr/bin. It provides a simple formattingatatat