X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/974e388456677d82eb6d10d4fd72390641a5bdfe..507116e319a1470bb0a5040d4d23e5c76955ef97:/stdio/FreeBSD/mktemp.3 diff --git a/stdio/FreeBSD/mktemp.3 b/stdio/FreeBSD/mktemp.3 index d4072c6..3a55c7f 100644 --- a/stdio/FreeBSD/mktemp.3 +++ b/stdio/FreeBSD/mktemp.3 @@ -34,9 +34,12 @@ .Nm mktemp , .Nm mkstemp , .Nm mkdtemp , +.Nm mkdtempat_np , .Nm mkstemps , +.Nm mkstempsat_np , .Nm mkostemp , -.Nm mkostemps +.Nm mkostemps , +.Nm mkostempsat_np .Nd make temporary file name (unique) .Sh LIBRARY .Lb libc @@ -54,12 +57,23 @@ .Fo mkdtemp .Fa "char *template" .Fc +.Ft char * +.Fo mkdtempat_np +.Fa "int dfd" +.Fa "char *template" +.Fc .Ft int .Fo mkstemps .Fa "char *template" .Fa "int suffixlen" .Fc .Ft int +.Fo mkstempsat_np +.Fa "int dfd" +.Fa "char *template" +.Fa "int suffixlen" +.Fc +.Ft int .Fo mkostemp .Fa "char *template" .Fa "int oflags" @@ -70,6 +84,13 @@ .Fa "int suffixlen" .Fa "int oflags" .Fc +.Ft int +.Fo mkostempsat_np +.Fa "int dfd" +.Fa "char *template" +.Fa "int suffixlen" +.Fa "int oflags" +.Fc .Sh DESCRIPTION The .Fn mktemp @@ -147,6 +168,25 @@ and .Fn mkostemps functions are told the length of the suffix string. +.Pp +The +.Fn mkdtempat_np , +.Fn mkstempsat_np , +and +.Fn mkostempsat_np +functions +act the same as +.Fn mkdtemp , +.Fn mkstemps , +and +.Fn mkostemps +respectively, +except in the case where the +.Ar path +specifies a relative path. +In this case, path is treated as relative to the directory associated with the file descriptor +.Ar fd +instead of the current working directory. .Sh RETURN VALUES The .Fn mktemp