diff options
author | Mark Johnston <markj@FreeBSD.org> | 2019-07-29 19:02:16 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2019-07-29 19:02:16 +0000 |
commit | 076574744c20de3296e8f9f9e0f7ef946a78a431 (patch) | |
tree | 04665d589244b53f1832b69610c41753a73cdd3d /include | |
parent | 4be6714234fbe8c171041fedc2995fe636b932e1 (diff) | |
download | src-test2-076574744c20de3296e8f9f9e0f7ef946a78a431.tar.gz src-test2-076574744c20de3296e8f9f9e0f7ef946a78a431.zip |
Add mkostempsat(3).
This is a variant of mkostemps() which takes a directory descriptor and
returns a descriptor for a tempfile relative to that directory. Unlike
the other mktemp functions, mkostempsat() can be used in capability
mode.
Reviewed by: cem
Discussed with: brooks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21031
Notes
Notes:
svn path=/head/; revision=350420
Diffstat (limited to 'include')
-rw-r--r-- | include/stdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index b2264784ed80..0289980d17f0 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -297,6 +297,7 @@ int mergesort_b(void *, size_t, size_t, int (^)(const void *, const void *)); #endif int mkostemp(char *, int); int mkostemps(char *, int, int); +int mkostempsat(int, char *, int, int); void qsort_r(void *, size_t, size_t, void *, int (*)(void *, const void *, const void *)); int radixsort(const unsigned char **, int, const unsigned char *, |