Cygwin: Move O_TMPFILE to bin and allow linkat by handle

Along the same lines as the previous patch: By reopening an
O_TMPFILE by handle, we can now move the file to the bin at
open time and thus free'ing up the parent dir and *still*
open the file as /proc/PID/fd/DESCRIPTOR by linkat(2).
This commit is contained in:
Corinna Vinschen
2019-01-05 22:15:58 +01:00
parent a1a750325e
commit 7dbe307e38
3 changed files with 90 additions and 1 deletions

View File

@ -2555,6 +2555,7 @@ class fhandler_process: public fhandler_proc
int __reg3 readdir (DIR *, dirent *);
int open (int flags, mode_t mode = 0);
virtual fhandler_base *fd_reopen (int);
int __reg2 link (const char *);
int __reg2 fstat (struct stat *buf);
bool fill_filebuf ();