mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 16:28:30 +00:00
Allow MAP_POPULATE under pledge()
This commit is contained in:
parent
53357aa26a
commit
cd52c59552
6 changed files with 3 additions and 305 deletions
19
third_party/make/job.c
vendored
19
third_party/make/job.c
vendored
|
@ -3792,24 +3792,5 @@ construct_command_argv (char *line, char **restp, struct file *file,
|
|||
|
||||
return argv;
|
||||
}
|
||||
|
||||
#if !defined(HAVE_DUP2) && !defined(_AMIGA)
|
||||
int
|
||||
dup2 (int old, int new)
|
||||
{
|
||||
int fd;
|
||||
|
||||
(void) close (new);
|
||||
EINTRLOOP (fd, dup (old));
|
||||
if (fd != new)
|
||||
{
|
||||
(void) close (fd);
|
||||
errno = EMFILE;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return fd;
|
||||
}
|
||||
#endif /* !HAVE_DUP2 && !_AMIGA */
|
||||
|
||||
/* On VMS systems, include special VMS functions. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue