Next: , Previous: glibc dir, Up: glibc


6.3 Temporary files and directories

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

— Function: mkstemp template

Interface to the C function mkstemp(), 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(), 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.