File: process.ih

package info (click to toggle)
yodl 4.04.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,720 kB
  • sloc: ansic: 7,803; perl: 683; cpp: 570; sh: 411; xml: 190; makefile: 164
file content (26 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "process.h"

#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/wait.h>

#include "../new/new.h"
#include "../message/message.h"

typedef enum
{
    READ = 0,
    WRITE = 1
}
READWRITE;
                        /* writePipe, readPipe: pipes as seen by the parent */
                        /* process                                          */
bool    p_check_status(Process *pp, int status);    /* true: ok, else: warn */
int     p_child(Process *pp, int *writePipe, int *readPipe);
void    p_fill_output(Process *pp, int fd);
int     p_parent(Process *pp, int *readPipe, int *writePipe);
char  **p_split(Process *pp);