X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffilesys%2Foff_t.h;h=9caff4dbae88823f109b1d3ee99c7535f79a55ce;hb=73a641b917fca65bab31677f27ab76b7bb280f3b;hp=84475e11dd3c7ad1b56dfa4886aa851e9f1605ef;hpb=97dcefb4742e13df9eb22c3aa00bb802bdc55c60;p=pintos-anon diff --git a/src/filesys/off_t.h b/src/filesys/off_t.h index 84475e1..9caff4d 100644 --- a/src/filesys/off_t.h +++ b/src/filesys/off_t.h @@ -1,5 +1,5 @@ -#ifndef HEADER_OFF_T_H -#define HEADER_OFF_T_H 1 +#ifndef FILESYS_OFF_T_H +#define FILESYS_OFF_T_H #include @@ -8,4 +8,8 @@ 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 */