OSDN Git Service

Merge branch 'binutils' into tmp
[pf3gnuchains/pf3gnuchains4x.git] / winsup / cygwin / miscfuncs.h
index 489f8b7..9ec6f59 100644 (file)
@@ -1,7 +1,7 @@
 /* miscfuncs.h: main Cygwin header file.
 
    Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-   2005, 2006, 2007, 2008 Red Hat, Inc.
+   2005, 2006, 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.
 
 This file is part of Cygwin.
 
@@ -16,10 +16,15 @@ 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
+BOOL WINAPI CreatePipeOverlapped (PHANDLE read_handle, PHANDLE write_handle,
+                                 LPSECURITY_ATTRIBUTES sa);
+BOOL WINAPI ReadPipeOverlapped (HANDLE h, PVOID buf, DWORD len,
+                               LPDWORD ret_len, DWORD timeout);
+BOOL WINAPI WritePipeOverlapped (HANDLE h, PCVOID buf, DWORD len,
+                                LPDWORD ret_len, DWORD timeout);
+
+extern "C" void yield ();
 
 void backslashify (const char *, char *, bool);
 void slashify (const char *, char *, bool);
@@ -39,4 +44,11 @@ int __stdcall check_invalid_virtual_addr (const void *s, unsigned sz) __attribut
 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)
+
+extern "C" HANDLE WINAPI CygwinCreateThread (LPTHREAD_START_ROUTINE thread_func,
+                                            PVOID thread_arg, PVOID stackaddr,
+                                            ULONG stacksize, ULONG guardsize,
+                                            DWORD creation_flags,
+                                            LPDWORD thread_id);
+
 #endif /*_MISCFUNCS_H*/