Chromium Code Reviews| Index: src/trusted/service_runtime/include/sys/fcntl.h |
| diff --git a/src/trusted/service_runtime/include/sys/fcntl.h b/src/trusted/service_runtime/include/sys/fcntl.h |
| index fce6b0e9b280bb707c6c002b4085eb9f0346436d..cb4715eb00dd3771eea1e6eee7e2ee8e92b1dd13 100644 |
| --- a/src/trusted/service_runtime/include/sys/fcntl.h |
| +++ b/src/trusted/service_runtime/include/sys/fcntl.h |
| @@ -67,6 +67,16 @@ |
| #endif /* !_POSIX_SOURCE */ |
| #ifdef __native_client__ |
| +/* file segment locking set data type - information passed to system by user */ |
| +struct flock { |
| + short l_type; /* F_RDLCK, F_WRLCK, or F_UNLCK */ |
| + short l_whence; /* flag to choose starting offset */ |
| + long l_start; /* relative offset, in bytes */ |
|
Mark Seaborn
2013/11/08 22:32:35
The Linux fcntl(2) man page says that l_start and
Sam Clegg
2013/11/25 19:50:25
Done.
|
| + long l_len; /* length, in bytes; 0 means lock to EOF */ |
| + short l_pid; /* returned with F_GETLK */ |
|
Mark Seaborn
2013/11/08 22:32:35
The Linux fcntl(2) man page says that l_pid is of
Sam Clegg
2013/11/25 19:50:25
Done.
|
| + short l_xxx; /* reserved for future use */ |
| +}; |
| + |
| #ifdef __cplusplus |
| extern "C" { |
| #endif /* __cplusplus */ |