x86: Support IBT and SHSTK in Intel CET [BZ #21598]
[glibc.git] / posix / spawni.c
blob3c99f097056b975e45121e678e3b8d5927abc7cf
1 /* Guts of POSIX spawn interface. Stub version.
2 Copyright (C) 2001-2018 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
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.
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
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 #include <errno.h>
20 #include <spawn.h>
21 #include "spawn_int.h"
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
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[],
38 char *const envp[], int xflags)
40 __set_errno (ENOSYS);
41 return -1;
44 stub_warning (__spawni)