* fhandler_proc.cc (proc_listing): Add entry for "self".

(proc_fhandlers): Add entry for "self".
* fhandler_process.cc (fhandler_process::fstate): Handle "self".
(fhandler_process::open): Handle "self".
This commit is contained in:
Christopher Faylor
2004-12-18 16:37:44 +00:00
parent a9c42bde0b
commit b25e8b65c2
6 changed files with 139 additions and 106 deletions

View File

@ -11,6 +11,17 @@ details. */
#include "tty.h"
#include "security.h"
struct charplus
{
char buf[CYG_MAX_PATH];
char tailch;
char *tail;
operator char * () { return buf; }
operator const char * () const { return buf; }
charplus (const char *s) : tailch (0), tail (0) {strcpy (buf, s);}
charplus () : tailch (0), tail (0) {*buf = '\0';}
};
/* Mount table entry */
class mount_item
@ -33,7 +44,7 @@ class mount_item
struct mntent *getmntent ();
int fnmunge (char *, const char *, int&);
int build_win32 (char *, const char *, unsigned *, unsigned);
int build_win32 (char *, const charplus&, unsigned *, unsigned);
};
/* Warning: Decreasing this value will cause cygwin.dll to ignore existing
@ -80,9 +91,9 @@ class mount_info
int del_reg_mount (const char * posix_path, unsigned mountflags);
unsigned set_flags_from_win32_path (const char *path);
int conv_to_win32_path (const char *src_path, char *dst, device&,
int conv_to_win32_path (const charplus& src_path, char *dst, device&,
unsigned *flags = NULL);
int conv_to_posix_path (const char *src_path, char *posix_path,
int conv_to_posix_path (const charplus& src_path, char *posix_path,
int keep_rel_p);
struct mntent *getmntent (int x);