14 Oct
2010
14 Oct
'10
17:20
El 14/10/10 13:38, Bogdan Cristea escribió:
tmpfile() creates a temporary file which is automatically delete when the file descriptor is closed or the program ends. Just wondering, how this behavior is achieved ?
file is "created" internally with mkstemp(3) and inmediately unlink(2)'ed from the filesystem (the _name_ is gone but the open file descriptor remains available until closing-....) Are there some options passed when the file is created ? the file is opened with O_RDWR|O_CREAT|O_EXCL. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org