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

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..0ee6f6d8a451e56d197d5c0bda13370fc891323f 100644
--- a/src/trusted/service_runtime/include/sys/fcntl.h
+++ b/src/trusted/service_runtime/include/sys/fcntl.h
@@ -67,6 +67,15 @@
#endif /* !_POSIX_SOURCE */
#ifdef __native_client__
+/* file segment locking set data type - information passed to system by user */
+struct flock {
+ short l_type;
+ short l_whence;
+ off_t l_start;
+ off_t l_len;
+ pid_t l_pid;
+};
+
#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