diff options
Diffstat (limited to 'filesys/off_t.h')
| -rw-r--r-- | filesys/off_t.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/filesys/off_t.h b/filesys/off_t.h new file mode 100644 index 0000000..9caff4d --- /dev/null +++ b/filesys/off_t.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef FILESYS_OFF_T_H | ||
| 2 | #define FILESYS_OFF_T_H | ||
| 3 | |||
| 4 | #include <stdint.h> | ||
| 5 | |||
| 6 | /* An offset within a file. | ||
| 7 | This is a separate header because multiple headers want this | ||
| 8 | definition but not any others. */ | ||
| 9 | typedef int32_t off_t; | ||
| 10 | |||
| 11 | /* Format specifier for printf(), e.g.: | ||
| 12 | printf ("offset=%"PROTd"\n", offset); */ | ||
| 13 | #define PROTd PRId32 | ||
| 14 | |||
| 15 | #endif /* filesys/off_t.h */ | ||
