Module rsyscall.stdlib
#include <stdlib.h>
This module contains functionality built on top of Thread.
Expand source code Browse git
"""`#include <stdlib.h>`
This module contains functionality built on top of `rsyscall.Thread`.
"""
from rsyscall.stdlib.mktemp import mkdtemp
__all__ = [
    'mkdtemp',
]Sub-modules
- rsyscall.stdlib.mktemp
- 
Functions for making temporary directories. 
Functions
- async def mkdtemp(thr: Thread, prefix: str = 'mkdtemp') ‑> TemporaryDirectory
- 
Make a temporary directory in thr.environ.tmpdir. Expand source code Browse gitasync def mkdtemp(thr: Thread, prefix: str="mkdtemp") -> 'TemporaryDirectory': "Make a temporary directory in thr.environ.tmpdir." parent = thr.environ.tmpdir name = prefix+"."+random_string(k=8) await thr.task.mkdir(await thr.ram.ptr(parent/name), 0o700) return TemporaryDirectory(thr, parent, name)