OSDN Git Service

* external.cc (fillout_pinfo): Set new version field in external_pinfo
authorcgf <cgf>
Wed, 29 May 2002 17:12:05 +0000 (17:12 +0000)
committercgf <cgf>
Wed, 29 May 2002 17:12:05 +0000 (17:12 +0000)
structure.
* include/sys/cygwin.h (external_pinfo): Replace strace_file with version
field.

winsup/cygwin/ChangeLog
winsup/cygwin/external.cc
winsup/cygwin/include/sys/cygwin.h

index e2e1ee4..f55aecb 100644 (file)
@@ -1,3 +1,10 @@
+2002-05-29  Christopher Faylor  <cgf@redhat.com>
+
+       * external.cc (fillout_pinfo): Set new version field in external_pinfo
+       structure.
+       * include/sys/cygwin.h (external_pinfo): Replace strace_file with
+       version field.
+
 2002-05-29  Corinna Vinschen  <corinna@vinschen.de>
 
        Change internal uid datatype from __uid16_t to __uid32_t
index 8a06f02..00ab2ac 100644 (file)
@@ -1,6 +1,6 @@
 /* external.cc: Interface to Cygwin internals from external programs.
 
-   Copyright 1997, 1998, 1999, 2000, 2001 Red Hat, Inc.
+   Copyright 1997, 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
 
    Written by Christopher Faylor <cgf@cygnus.com>
 
@@ -83,7 +83,7 @@ fillout_pinfo (pid_t pid, int winpid)
          ep.rusage_children = p->rusage_children;
          strcpy (ep.progname, p->progname);
          ep.strace_mask = 0;
-         ep.strace_file = 0;
+         ep.version = EXTERNAL_PINFO_VERSION;
 
          ep.process_state = p->process_state;
 
index 90cd075..1e4a094 100644 (file)
@@ -1,6 +1,6 @@
 /* sys/cygwin.h
 
-   Copyright 1997, 1998, 2000, 2001 Red Hat, Inc.
+   Copyright 1997, 1998, 2000, 2001, 2002 Red Hat, Inc.
 
 This file is part of Cygwin.
 
@@ -208,6 +208,8 @@ extern int cygwin_attach_handle_to_fd (char *, int, HANDLE, mode_t, DWORD);
 
 #define TTY_CONSOLE    0x40000000
 
+#define EXTERNAL_PINFO_VERSION 1
+
 #ifndef _SYS_TYPES_H
 typedef unsigned short __uid16_t;
 typedef unsigned short __gid16_t;
@@ -235,7 +237,7 @@ struct external_pinfo
   char progname[MAX_PATH];
 
   DWORD strace_mask;
-  HANDLE strace_file;
+  DWORD version;
 
   DWORD process_state;