* fhandler_process.cc (fhandler_process::open): Set fileid.

This commit is contained in:
Christopher Faylor 2002-06-02 16:42:02 +00:00
parent afc15fdf49
commit 47413f8473
3 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2002-06-02 Christopher January <chris@atomice.net>
* fhandler_process.cc (fhandler_process::open): Set fileid.
2002-06-02 Christopher Faylor <cgf@redhat.com>
Remove unneeded sigproc.h includes throughout.

View File

@ -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;
}

View File

@ -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)