mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Improve LLVM compatibility a little bit
This commit is contained in:
parent
3057315a1b
commit
1a3d22b2fd
7 changed files with 14 additions and 12 deletions
|
@ -59,7 +59,7 @@ static int add_to_file_actions(posix_spawn_file_actions_t *file_actions,
|
|||
int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *file_actions,
|
||||
int fildes) {
|
||||
char temp[100];
|
||||
sprintf(temp, "close(%d)", fildes);
|
||||
(sprintf)(temp, "close(%d)", fildes);
|
||||
return add_to_file_actions(file_actions, temp);
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *file_actions,
|
|||
int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *file_actions,
|
||||
int fildes, int newfildes) {
|
||||
char temp[100];
|
||||
sprintf(temp, "dup2(%d,%d)", fildes, newfildes);
|
||||
(sprintf)(temp, "dup2(%d,%d)", fildes, newfildes);
|
||||
return add_to_file_actions(file_actions, temp);
|
||||
}
|
||||
|
||||
|
@ -80,6 +80,6 @@ int posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *file_actions,
|
|||
int fildes, const char *path, int oflag,
|
||||
unsigned mode) {
|
||||
char temp[100];
|
||||
sprintf(temp, "open(%d,%s*%o,%o)", fildes, path, oflag, mode);
|
||||
(sprintf)(temp, "open(%d,%s*%o,%o)", fildes, path, oflag, mode);
|
||||
return add_to_file_actions(file_actions, temp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue