setup_osutil_cffi.py
changeset 29910 a043c6d372db
parent 29600 7a157639b8f2
equal deleted inserted replaced
29909:b60a5fe98b73 29910:a043c6d372db
    43     int attr_dataoffset;
    43     int attr_dataoffset;
    44     int attr_length;
    44     int attr_length;
    45     ...;
    45     ...;
    46 } attrreference_t;
    46 } attrreference_t;
    47 
    47 
       
    48 typedef int ... off_t;
       
    49 
    48 typedef struct val_attrs {
    50 typedef struct val_attrs {
    49     uint32_t          length;
    51     uint32_t          length;
    50     attribute_set_t   returned;
    52     attribute_set_t   returned;
    51     attrreference_t   name_info;
    53     attrreference_t   name_info;
    52     uint32_t          obj_type;
    54     uint32_t          obj_type;
    53     struct timespec   mtime;
    55     struct timespec   mtime;
    54     uint32_t          accessmask;
    56     uint32_t          accessmask;
    55     int               datalength;
    57     off_t             datalength;
    56     ...;
    58     ...;
    57 } val_attrs_t;
    59 } val_attrs_t;
    58 
    60 
    59 /* the exact layout of the above struct will be figured out during build time */
    61 /* the exact layout of the above struct will be figured out during build time */
    60 
    62 
    61 typedef int ... time_t;
    63 typedef int ... time_t;
    62 typedef int ... off_t;
       
    63 
    64 
    64 typedef struct timespec {
    65 typedef struct timespec {
    65     time_t tv_sec;
    66     time_t tv_sec;
    66     ...;
    67     ...;
    67 };
    68 };