]> git.ipfire.org Git - thirdparty/glibc.git/blame - posix/spawni.c
2.5-18.1
[thirdparty/glibc.git] / posix / spawni.c
CommitLineData
986ad61e
RM
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.
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
AJ
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. */
986ad61e
RM
19
20#include <errno.h>
21#include <spawn.h>
22#include "spawn_int.h"
23
24
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
31
32
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. */
35int
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)
40{
41 __set_errno (ENOSYS);
42 return -1;
43}
44
45stub_warning (__spawni)
46#include <stub-tag.h>