GNOME Bugzilla – Bug 704705
use O_TMPFILE
Last modified: 2014-04-06 18:16:09 UTC
Could use O_TMPFILE to create our vtestream temp files. We currently use g_file_open_tmp(), but I think with the limitations of O_TMPFILE that functions can't be switched over to always use O_TMPFILE. So we should wrap that with a function trying O_TMPFILE and only falling back (on old kernel, or !linux) to g_file_open_tmp().
Created attachment 256037 [details] [review] stream: file: Use O_TMPFILE when available
Comment on attachment 256037 [details] [review] stream: file: Use O_TMPFILE when available Looks good. Thanks!