From 47413f8473f7def5e11fe2c4fc26aae76cf766b6 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 2 Jun 2002 16:42:02 +0000 Subject: * fhandler_process.cc (fhandler_process::open): Set fileid. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler_proc.cc | 14 +++++++------- winsup/cygwin/fhandler_process.cc | 1 + 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 90c97d0c6..cf4a6ff7b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2002-06-02 Christopher January + + * fhandler_process.cc (fhandler_process::open): Set fileid. + 2002-06-02 Christopher Faylor Remove unneeded sigproc.h includes throughout. diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index 5d0a5a591..d9fe8a69f 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -317,13 +317,13 @@ fhandler_proc::fill_filebuf () { if (!filebuf) { - struct utsname uts_name; - uname (&uts_name); - bufalloc = strlen (uts_name.sysname) + 1 + strlen (uts_name.release) + - 1 + strlen (uts_name.version) + 2; - filebuf = (char *) cmalloc (HEAP_BUF, bufalloc); - filesize = __small_sprintf (filebuf, "%s %s %s\n", uts_name.sysname, - uts_name.release, uts_name.version); + struct utsname uts_name; + uname (&uts_name); + bufalloc = strlen (uts_name.sysname) + 1 + strlen (uts_name.release) + + 1 + strlen (uts_name.version) + 2; + filebuf = (char *) cmalloc (HEAP_BUF, bufalloc); + filesize = __small_sprintf (filebuf, "%s %s %s\n", uts_name.sysname, + uts_name.release, uts_name.version); } break; } diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index aaeead63a..e918c3e4c 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -226,6 +226,7 @@ fhandler_process::open (path_conv *pc, int flags, mode_t mode) goto out; } + fileid = process_file_no; fill_filebuf (p); if (flags & O_APPEND) -- cgit v1.2.3