]>
Commit | Line | Data |
---|---|---|
986ad61e | 1 | /* Guts of POSIX spawn interface. Stub version. |
04277e02 | 2 | Copyright (C) 2001-2019 Free Software Foundation, Inc. |
986ad61e RM |
3 | This file is part of the GNU C Library. |
4 | ||
5 | The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either | |
8 | version 2.1 of the License, or (at your option) any later version. | |
986ad61e RM |
9 | |
10 | The GNU C Library is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 13 | Lesser General Public License for more details. |
986ad61e | 14 | |
41bdb6e2 | 15 | You should have received a copy of the GNU Lesser General Public |
59ba27a6 | 16 | License along with the GNU C Library; if not, see |
5a82c748 | 17 | <https://www.gnu.org/licenses/>. */ |
986ad61e RM |
18 | |
19 | #include <errno.h> | |
20 | #include <spawn.h> | |
21 | #include "spawn_int.h" | |
22 | ||
23 | ||
24 | /* The Unix standard contains a long explanation of the way to signal | |
25 | an error after the fork() was successful. Since no new wait status | |
26 | was wanted there is no way to signal an error using one of the | |
27 | available methods. The committee chose to signal an error by a | |
28 | normal program exit with the exit code 127. */ | |
29 | #define SPAWN_ERROR 127 | |
30 | ||
31 | ||
32 | /* Spawn a new process executing PATH with the attributes describes in *ATTRP. | |
33 | Before running the process perform the actions described in FILE-ACTIONS. */ | |
34 | int | |
35 | __spawni (pid_t *pid, const char *file, | |
36 | const posix_spawn_file_actions_t *file_actions, | |
37 | const posix_spawnattr_t *attrp, char *const argv[], | |
d96de963 | 38 | char *const envp[], int xflags) |
986ad61e RM |
39 | { |
40 | __set_errno (ENOSYS); | |
41 | return -1; | |
42 | } | |
43 | ||
44 | stub_warning (__spawni) |