Skip to content

Commit

Permalink
options/posix: Implement mkstemps
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Dec 18, 2023
1 parent a8f7d19 commit f0fb2aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions options/posix/generic/posix_stdlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ int mkostemps(char *pattern, int suffixlen, int flags) {
return mkostemp(pattern, flags);
}

int mkstemps(char *pattern, int suffixlen) {
return mkostemps(pattern, suffixlen, 0);
}

char *mkdtemp(char *pattern) {
mlibc::infoLogger() << "mlibc mkdtemp(" << pattern << ") called" << frg::endlog;
auto n = strlen(pattern);
Expand Down
1 change: 1 addition & 0 deletions options/posix/include/bits/posix/posix_stdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ int unsetenv(const char *);
// ----------------------------------------------------------------------------

int mkstemp(char *);
int mkstemps(char *pattern, int suffixlen);
int mkostemp(char *, int flags);
int mkostemps(char *pattern, int suffixlen, int flags);
char *mkdtemp(char *path);
Expand Down

0 comments on commit f0fb2aa

Please sign in to comment.