Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Typedefs | Functions
process.cpp File Reference
#include <ctype.h>
#include <errno.h>
#include <signal.h>
#include <stddef.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <rw_process.h>
#include <rw_driver.h>
#include <rw_printf.h>
#include <sys/wait.h>
#include <unistd.h>
#include <setjmp.h>
#include <time.h>
Include dependency graph for process.cpp:

Go to the source code of this file.

Macros

#define _RWSTD_TEST_SRC
 
#define E2BIG   7 /* AIX, HP-UX, Linux, Solaris */
 
#define EINTR   4
 
#define SIGCHLD   18
 
#define SIGALRM   14
 
#define SIGHUP   1
 
#define SIGQUIT   3
 
#define SIGKILL   9
 

Typedefs

typedef void(* signal_handler_t) (int)
 

Functions

_TEST_EXPORT int rw_vasnprintf (char **, size_t *, const char *, va_list)
 
_TEST_EXPORT int rw_system (const char *cmd,...)
 
_TEST_EXPORT rw_pid_t rw_process_create (const char *cmd,...)
 
_TEST_EXPORT rw_pid_t rw_process_create (const char *path, char *const argv[])
 
_TEST_EXPORT rw_pid_t rw_waitpid (rw_pid_t pid, int *presult, int timeout)
 
_TEST_EXPORT int rw_process_kill (rw_pid_t pid, int signo)
 

Macro Definition Documentation

◆ _RWSTD_TEST_SRC

#define _RWSTD_TEST_SRC

process.cpp - definitions of testsuite process helpers

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 28 of file process.cpp.

◆ E2BIG

#define E2BIG   7 /* AIX, HP-UX, Linux, Solaris */

Definition at line 50 of file process.cpp.

◆ EINTR

#define EINTR   4

Definition at line 54 of file process.cpp.

◆ SIGALRM

#define SIGALRM   14

Definition at line 71 of file process.cpp.

◆ SIGCHLD

#define SIGCHLD   18

Definition at line 65 of file process.cpp.

◆ SIGHUP

#define SIGHUP   1

Definition at line 75 of file process.cpp.

◆ SIGKILL

#define SIGKILL   9

Definition at line 83 of file process.cpp.

◆ SIGQUIT

#define SIGQUIT   3

Definition at line 79 of file process.cpp.

Typedef Documentation

◆ signal_handler_t

typedef void(* signal_handler_t) (int)

Definition at line 528 of file process.cpp.

Function Documentation

◆ rw_process_create() [1/2]

_TEST_EXPORT rw_pid_t rw_process_create ( const char *  cmd,
  ... 
)

Definition at line 395 of file process.cpp.

◆ rw_process_create() [2/2]

_TEST_EXPORT rw_pid_t rw_process_create ( const char *  path,
char *const  argv[] 
)

Definition at line 409 of file process.cpp.

◆ rw_process_kill()

_TEST_EXPORT int rw_process_kill ( rw_pid_t  pid,
int  signo 
)

Definition at line 663 of file process.cpp.

◆ rw_system()

_TEST_EXPORT int rw_system ( const char *  cmd,
  ... 
)

Definition at line 328 of file process.cpp.

◆ rw_vasnprintf()

_TEST_EXPORT int rw_vasnprintf ( char **  pbuf,
size_t *  pbufsize,
const char *  fmt,
va_list  varg 
)

Definition at line 946 of file printf.cpp.

◆ rw_waitpid()

_TEST_EXPORT rw_pid_t rw_waitpid ( rw_pid_t  pid,
int *  presult,
int  timeout 
)

Definition at line 533 of file process.cpp.