source: trunk/src/gdllshell/gdllshell.c@ 229

Last change on this file since 229 was 199, checked in by bird, 21 years ago

...

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/* $Id: gdllshell.c 199 2004-12-17 04:51:58Z bird $ */
2/** @file
3 *
4 * dllshell://reference implementation.
5 *
6 * Copyright (c) 2003 knut st. osmundsen <bird-srcspam@anduin.net>
7 *
8 *
9 * This file is part of kBuild.
10 *
11 * kBuild is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * kBuild is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with kBuild; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 *
25 */
26
27
28/*******************************************************************************
29* Header Files *
30*******************************************************************************/
31#include <process.h>
32#include <string.h>
33#include <stdio.h>
34#include <unistd.h>
35
36
37/**
38 * Asynchronusly execute a command. The argument argv and envp together
39 * with the current filehandle configuration is what the command should
40 * should work within.
41 *
42 * @returns pid or fake pid of the command.
43 * Fake pid means a pid number out of the normal pid range, but
44 * still unique for sometime.
45 * @param argv Argument vector.
46 * @param envp Environment vector.
47 * @param status Where to store the status.
48 * @param done Where to flag that the command is completed in one
49 * or another manner.
50 */
51pid_t _System spawn_command(char **argv, char **envp, int *status, char *done)
52{
53 printf("gdllshell: hello\n");
54 return 0;
55}
Note: See TracBrowser for help on using the repository browser.