File: process-testlib.h

package info (click to toggle)
mmlib 1.4.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,716 kB
  • sloc: ansic: 18,071; makefile: 431; sh: 135; python: 63
file content (28 lines) | stat: -rw-r--r-- 482 bytes parent folder | download
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
27
28
/*
   @mindmaze_header@
*/
#ifndef PROCESS_TESTLIB_H
#define PROCESS_TESTLIB_H

#include "mmsysio.h"


#define NUM_FILE        3
#define NUM_ARGS_MAX    4
#define NUM_FDS         (2*NUM_FILE)
#define NUM_FDMAP       (NUM_FILE+1)

struct process_test_data {
	mm_pid_t pid;
	int fds[NUM_FDS];
	int pipe_wr;
	int pipe_rd;
	struct mm_remap_fd fd_map[NUM_FDMAP];
	int argv_data_len;
	char argv_data[NUM_ARGS_MAX][32];
	char cmd[128];
};

intptr_t test_execv_process(void * arg);

#endif