Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: src/trusted/service_runtime/include/sys/fcntl.h

Issue 57663004: Add struct flock to newlib fcntl.h. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698