pintos: Avoid literal control character in Perl variable name.
[pintos-anon] / src / filesys / off_t.h
index 2b97bca6c700cab021b92a4b80f2cb4dd67f141b..9caff4dbae88823f109b1d3ee99c7535f79a55ce 100644 (file)
@@ -1,7 +1,15 @@
-#ifndef HEADER_OFF_T_H
-#define HEADER_OFF_T_H 1
+#ifndef FILESYS_OFF_T_H
+#define FILESYS_OFF_T_H
 
 #include <stdint.h>
+
+/* An offset within a file.
+   This is a separate header because multiple headers want this
+   definition but not any others. */
 typedef int32_t off_t;
 
-#endif /* off_t.h */
+/* Format specifier for printf(), e.g.:
+   printf ("offset=%"PROTd"\n", offset); */
+#define PROTd PRId32
+
+#endif /* filesys/off_t.h */