diff options
| author | manuel <manuel@mausz.at> | 2012-03-26 12:54:45 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2012-03-26 12:54:45 +0200 |
| commit | b5f0874cd96ee2a62aabc645b9626c2749cb6a01 (patch) | |
| tree | 1262e4bbe0634de6650be130c36e0538240f4cbf /pintos-progos/filesys/off_t.h | |
| download | progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.gz progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.bz2 progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.zip | |
initial pintos checkin
Diffstat (limited to 'pintos-progos/filesys/off_t.h')
| -rw-r--r-- | pintos-progos/filesys/off_t.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pintos-progos/filesys/off_t.h b/pintos-progos/filesys/off_t.h new file mode 100644 index 0000000..9caff4d --- /dev/null +++ b/pintos-progos/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 */ | ||
