#include "array.hpp"
#include "string.hpp"
Go to the source code of this file.
◆ unix_get_process_id()
SN unix_get_process_id |
( |
| ) |
|
◆ unix_system()
Definition at line 202 of file unix_sys_utils.cpp.
203 {
204
205
206
207
208
209 if (
N (
arg) == 0)
return 0;
216 for (
int i= 0; i <
n_in; i++) {
218 pp_in[i].out ()) != 0)
219 return -1;
223 return -1;
225 pp_in[i].in ()) != 0)
226 return -1;
227 }
228 }
229 for (
int i= 0; i <
n_out; i++) {
232 return -1;
235 return -1;
238 return -1;
239 }
241 for (
int j= 0;
j <
N (
arg);
j++)
242 for (
int i= 0; i <
n_in; i++)
251 int status=
255 if (status != 0) {
256 return -1;
257 }
258
259 for (
int i= 0; i <
n_in; i++)
260 close (
pp_in[i].in ());
261 for (
int i= 0; i <
n_out; i++)
263
264
267 for (
int i= 0; i <
n_in; i++) {
271 return -1;
272 }
273
274
277 for (
int i= 0; i <
n_out; i++) {
281 return -1;
282 }
283
291 }
292 }
293
294
297 for (
int i= 0; i <
n_in; i++) {
300 }
301 for (
int i= 0; i <
n_out; i++) {
305 }
306
310}
string recompose(array< string > a, string sep)
string replace(string s, string what, string by)
T * A(array< T > a)
Get a pointer to the first element of the array.
int N(array< T > a)
Get the length of the array.
#define ASSERT(cond, msg)
Macro used to assert that a condition is true, and throw an exception with an error message if the co...
The list class represents a linked list.
void tm_delete_array(C *Ptr)
char * as_charp(string s)
string as_string(int16_t i)
static void * _background_write_task(void *channel_as_void_ptr)
static void * _background_read_task(void *channel_as_void_ptr)
static void _unix_system_warn(pid_t pid, string which, string msg)
◆ unix_get_login()
Definition at line 313 of file unix_sys_utils.cpp.
313 {
317}
list(T item)
Construct a new list object with a single item.
◆ unix_get_username()
Definition at line 320 of file unix_sys_utils.cpp.
320 {
324}
array< string > tokenize(string s, string sep)