X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffilesys%2Foff_t.h;h=9caff4dbae88823f109b1d3ee99c7535f79a55ce;hb=fd2a5afa946474ba0839de0e9da238dbaecbd6a5;hp=2b97bca6c700cab021b92a4b80f2cb4dd67f141b;hpb=621963e2a383d53b2c5eca627102625421b46545;p=pintos-anon diff --git a/src/filesys/off_t.h b/src/filesys/off_t.h index 2b97bca..9caff4d 100644 --- a/src/filesys/off_t.h +++ b/src/filesys/off_t.h @@ -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 + +/* 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 */