Merge commit 'origin/master' into fedora/master
[glibc.git] / posix / spawni.c
blobc7d5f59ffce140b15d8fb3913712c89c78da6479
1 /* Guts of POSIX spawn interface. Stub version.
2 Copyright (C) 2001 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, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
20 #include <errno.h>
21 #include <spawn.h>
22 #include "spawn_int.h"
25 /* The Unix standard contains a long explanation of the way to signal
26 an error after the fork() was successful. Since no new wait status
27 was wanted there is no way to signal an error using one of the
28 available methods. The committee chose to signal an error by a
29 normal program exit with the exit code 127. */
30 #define SPAWN_ERROR 127
33 /* Spawn a new process executing PATH with the attributes describes in *ATTRP.
34 Before running the process perform the actions described in FILE-ACTIONS. */
35 int
36 __spawni (pid_t *pid, const char *file,
37 const posix_spawn_file_actions_t *file_actions,
38 const posix_spawnattr_t *attrp, char *const argv[],
39 char *const envp[], int use_path)
41 __set_errno (ENOSYS);
42 return -1;
45 stub_warning (__spawni)
46 #include <stub-tag.h>