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:
authorChristopher Faylor <me@cgf.cx>2008-04-07 20:33:44 +0400
committerChristopher Faylor <me@cgf.cx>2008-04-07 20:33:44 +0400
commitf7852548bbf47c13a9c6efbdeec51b5bb3a5f0bf (patch)
treee97932b50ea76a1a6466d55b75c8695717706050 /winsup/cygwin/miscfuncs.h
parentade47a3430eb7ef8b3cdb3d54d47a0c4732ac10d (diff)
add missing file
Diffstat (limited to 'winsup/cygwin/miscfuncs.h')
-rw-r--r--winsup/cygwin/miscfuncs.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/winsup/cygwin/miscfuncs.h b/winsup/cygwin/miscfuncs.h
new file mode 100644
index 000000000..d75c9afcc
--- /dev/null
+++ b/winsup/cygwin/miscfuncs.h
@@ -0,0 +1,39 @@
+/* miscfuncs.h: main Cygwin header file.
+
+ Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+ 2005, 2006, 2007, 2008 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. */
+
+#ifndef _MISCFUNCS_H
+#define _MISCFUNCS_H
+int winprio_to_nice (DWORD) __attribute__ ((regparm (1)));
+DWORD nice_to_winprio (int &) __attribute__ ((regparm (1)));
+
+bool __stdcall create_pipe (PHANDLE, PHANDLE, LPSECURITY_ATTRIBUTES, DWORD)
+ __attribute__ ((regparm (3)));
+#define CreatePipe create_pipe
+
+extern "C" int low_priority_sleep (DWORD) __attribute__ ((regparm (1)));
+#define SLEEP_0_STAY_LOW INFINITE
+
+void backslashify (const char *, char *, bool);
+void slashify (const char *, char *, bool);
+#define isslash(c) ((c) == '/')
+
+/* multibyte stuff */
+bool is_cp_multibyte (UINT cp);
+const unsigned char *next_char (UINT cp, const unsigned char *str,
+ const unsigned char *end);
+
+/* Memory checking */
+int __stdcall check_invalid_virtual_addr (const void *s, unsigned sz) __attribute__ ((regparm(2)));
+
+ssize_t check_iovec (const struct iovec *, int, bool) __attribute__ ((regparm(3)));
+#define check_iovec_for_read(a, b) check_iovec ((a), (b), false)
+#define check_iovec_for_write(a, b) check_iovec ((a), (b), true)
+#endif /*_MISCFUNCS_H*/