summaryrefslogtreecommitdiffstats
path: root/Documentation/CodingGuidelines
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/CodingGuidelines')
-rw-r--r--Documentation/CodingGuidelines6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines
index b8670751f5..b9a29e39f2 100644
--- a/Documentation/CodingGuidelines
+++ b/Documentation/CodingGuidelines
@@ -681,6 +681,12 @@ For C programs:
char *dogs[] = ...;
walk_all_dogs(dogs);
+ - For file timestamps, do not use "st_mtim" (and other timestamp
+ members in "struct stat") unconditionally; not everybody is POSIX
+ (grep for USE_ST_TIMESPEC). If you only need a timestamp in whole
+ second resolution, "st_mtime" should work fine everywhere.
+
+
For Perl programs:
- Most of the C guidelines above apply.