]> sourceware.org Git - newlib-cygwin.git/commitdiff
* Makefile.common (CFLAGS_COMMON): Add -Wstrict-aliasing.
authorChristopher Faylor <me@cgf.cx>
Tue, 11 Oct 2005 18:17:59 +0000 (18:17 +0000)
committerChristopher Faylor <me@cgf.cx>
Tue, 11 Oct 2005 18:17:59 +0000 (18:17 +0000)
winsup/ChangeLog
winsup/Makefile.common
winsup/testsuite/winsup.api/mmaptest03.c
winsup/utils/strace.cc
winsup/w32api/include/winbase.h
winsup/w32api/include/winsock.h

index 3885217c5730bb5eda1e5df53ea7e3834a0a5572..b2593c64e950b407a0277387fa95118c74066b51 100644 (file)
@@ -1,3 +1,7 @@
+2005-10-11  Christopher Faylor  <cgf@timesys.com>
+
+       * Makefile.common (CFLAGS_COMMON): Add -Wstrict-aliasing.
+
 2005-03-22  Christopher Faylor  <cgf@timesys.com>
 
        * Makefile.common: Add -dD to options when creating preprocess files.
index 4f397a3d60ceb06c8c6fa4473f812fdf28943080..96e58ef2daad514fc145a4f44b23a5830ffa2290 100644 (file)
@@ -10,7 +10,7 @@
 
 # This makefile requires GNU make.
 
-CFLAGS_COMMON:=-Wall -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0# -finline-functions
+CFLAGS_COMMON:=-Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0# -finline-functions
 MALLOC_DEBUG:=#-DMALLOC_DEBUG -I/cygnus/src/uberbaum/winsup/cygwin/dlmalloc
 MALLOC_OBJ:=#/cygnus/src/uberbaum/winsup/cygwin/dlmalloc/malloc.o
 
index 8046f0bf84b74f4d7df52ac9bbe29cd5f1db7906..b3141d9989b12d2dd40bfbfbd6722c7dc94e2fbb 100644 (file)
@@ -103,6 +103,7 @@ main(int argc, char **argv)
       what = "child";
     }
 
+  if (argc > 1) sleep (10);
   if (pid == -1)
     perror_exit ("fork failed");
 
index 1bd54ced0d6adec35704c8b34777493da765e17e..f601c4418428aab594a3d792f11f3bedef4ce469 100644 (file)
@@ -128,7 +128,7 @@ get_child (DWORD id)
 }
 
 static void
-remove_child (DWORD id)
+remove_child (FILE *ofile, DWORD id)
 {
   child_list *c;
   if (id == lastid)
@@ -138,6 +138,9 @@ remove_child (DWORD id)
       {
        child_list *c1 = c->next;
        c->next = c1->next;
+       DWORD n = 0xdeadbeef;
+       GetExitCodeProcess (c1->hproc, &n);
+       fprintf (ofile, "process %u exited with status %p\n", id, n);
        free (c1);
        return;
       }
@@ -627,7 +630,7 @@ proc_child (unsigned mask, FILE *ofile, pid_t pid)
          break;
 
        case EXIT_PROCESS_DEBUG_EVENT:
-         remove_child (ev.dwProcessId);
+         remove_child (ofile, ev.dwProcessId);
          break;
        case EXCEPTION_DEBUG_EVENT:
          if (ev.u.Exception.ExceptionRecord.ExceptionCode !=
index f05b61ee232ae7f05527b224a792e8d646a0afc8..7db8db54740ed65f81af6340b2c73311b3fe5262 100644 (file)
@@ -1350,6 +1350,7 @@ WINBASEAPI HANDLE WINAPI GetCurrentProcess(void);
 WINBASEAPI DWORD WINAPI GetCurrentProcessId(void);
 WINBASEAPI HANDLE WINAPI GetCurrentThread(void);
 WINBASEAPI DWORD WINAPI GetCurrentThreadId(void);
+WINBASEAPI DWORD WINAPI GetProcessId(HANDLE);
 #define GetCurrentTime GetTickCount
 WINBASEAPI BOOL WINAPI GetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,PDWORD);
 WINBASEAPI BOOL WINAPI GetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,PDWORD);
index d99d84cbcc6744094159835e923b3b4c9c9d31d4..7c3375f934f9bf37d300db47a3dd6b8698b498e9 100644 (file)
@@ -351,8 +351,8 @@ struct sockproto {
 #define PF_INET6       AF_INET6
 #define PF_MAX AF_MAX
 #define SOL_SOCKET     0xffff
-#define SOMAXCONN      5
 #if !(defined (__INSIDE_CYGWIN__) || defined (__INSIDE_MSYS__))
+#define SOMAXCONN      5
 #define MSG_OOB        1
 #define MSG_PEEK       2
 #define MSG_DONTROUTE  4
This page took 0.039556 seconds and 5 git commands to generate.