mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
parent
c3ed8d6c7f
commit
d769df3482
17 changed files with 102 additions and 155 deletions
|
@ -28,6 +28,7 @@
|
|||
*/
|
||||
FILE *tmpfile(void) {
|
||||
int fd;
|
||||
if ((fd = mkostemps("/tmp/tmp.XXXXXX", 0, 0)) == -1) return NULL;
|
||||
char template[] = "/tmp/tmp.XXXXXX";
|
||||
if ((fd = mkostemps(template, 0, 0)) == -1) return NULL;
|
||||
return fdopen(fd, "w+");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue