1 /* fhandler_process_fd.cc: fhandler for the /dev/{fd,std{in,out,err}} symlinks
3 This file is part of Cygwin.
5 This software is a copyrighted work licensed under the terms of the
6 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
13 fhandler_dev_fd::fhandler_dev_fd ():
19 fhandler_dev_fd::exists ()
25 fhandler_dev_fd::fstat (struct stat
*buf
)
27 const char *path
= get_name ();
28 debug_printf ("fstat (%s)", path
);
30 fhandler_base::fstat (buf
);
32 buf
->st_mode
= S_IFLNK
| STD_RBITS
| S_IWUSR
| S_IWGRP
| S_IWOTH
| STD_XBITS
;
33 buf
->st_ino
= get_ino ();
39 fhandler_dev_fd::fill_filebuf ()
41 const char *path
= get_name ();
42 debug_printf ("fill_filebuf (%s)", path
);
44 const char *native
= get_native_name ();
51 filebuf
= cstrdup (native
);