Next: , Previous: , Up: glibc   [Index]


5.4 Temporary files and directories

The following bindings are exported by the (vicare glibc) library.

Function: mkstemp template

Interface to the C function mkstemp(), (libc)mkstemp. Create a temporary file, create it and open a file descriptor for reading and writing. template must be a mutable bytevector holding a template pathname on entering and the actual pathname on returning. If successful return a file descriptor, else raise an exception.

Function: mkdtemp template

Interface to the C function mkdtemp(), (libc)mkdtemp. Create a temporary directory for reading and writing. template must be a mutable bytevector holding a template pathname on entering and the actual pathname on returning. If successful return template itself, else raise an exception.