Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/host_dependent.h')
-rw-r--r--winsup/cygwin/host_dependent.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/winsup/cygwin/host_dependent.h b/winsup/cygwin/host_dependent.h
new file mode 100644
index 000000000..94e1546ca
--- /dev/null
+++ b/winsup/cygwin/host_dependent.h
@@ -0,0 +1,30 @@
+/* host_dependent.h: host dependent Cygwin header file.
+
+ Copyright 2000 Red Hat, Inc.
+
+This file is part of Cygwin.
+
+This software is a copyrighted work licensed under the terms of the
+Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+details. */
+
+/* Portions of the cygwin DLL require special constants whose values
+ are dependent on the host system. Rather than dynamically
+ determine those values whenever they are required, initialize these
+ values once at process start-up. */
+
+class host_dependent_constants
+{
+ public:
+ void init (void);
+
+ /* Used by fhandler_disk_file::lock which needs a platform-specific
+ upper word value for locking entire files. */
+ DWORD win32_upper;
+
+ /* fhandler_base::open requires host dependent file sharing
+ attributes. */
+ int shared;
+};
+
+extern host_dependent_constants host_dependent;