aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_os_lib.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-11-29 10:25:47 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-11-29 10:25:47 +0000
commitd5f83fb8b9a2ae2797b7b0e46bf6cd346743f4b3 (patch)
treea9afdf6ba9fcc2051a5043b061ea9dc86779fb9f /src/include/gnunet_os_lib.h
parentb0c50f22c52535650a7288c32a3ae3ed6336c32f (diff)
downloadgnunet-d5f83fb8b9a2ae2797b7b0e46bf6cd346743f4b3.tar.gz
gnunet-d5f83fb8b9a2ae2797b7b0e46bf6cd346743f4b3.zip
- move do_start_process to util/
Diffstat (limited to 'src/include/gnunet_os_lib.h')
-rw-r--r--src/include/gnunet_os_lib.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h
index 2944f8dfb..5a81fba6f 100644
--- a/src/include/gnunet_os_lib.h
+++ b/src/include/gnunet_os_lib.h
@@ -381,6 +381,33 @@ GNUNET_OS_start_process_v (int pipe_control,
381 381
382 382
383/** 383/**
384 * Start a process. This function is similar to the GNUNET_OS_start_process_*
385 * except that the @a filename and @argv can have whole strings which contain
386 * the arguments. These arguments are to be separated by spaces and are parsed
387 * in the order they appear. Arguments containing spaces can be used by
388 * quoting them with @em ".
389 *
390 * @param pipe_control should a pipe be used to send signals to the child?
391 * @param std_inheritance a set of GNUNET_OS_INHERIT_STD_* flags
392 * @param lsocks array of listen sockets to dup systemd-style (or NULL);
393 * must be NULL on platforms where dup is not supported
394 * @param filename name of the binary. It is valid to have the arguments
395 * in this string when they are separated by spaces.
396 * @param ... more arguments. Should be of type <tt>char *</tt>. It is valid
397 * to have the arguments in these strings when they are separated by
398 * spaces.
399 * @param argv NULL-terminated list of arguments to the process,
400 * including the process name as the first argument
401 * @return pointer to process structure of the new process, NULL on error
402 */
403struct GNUNET_OS_Process *
404GNUNET_OS_start_process_s (int pipe_control,
405 unsigned int std_inheritance,
406 const SOCKTYPE * lsocks,
407 const char *first_arg, ...);
408
409
410/**
384 * Handle to a command action. 411 * Handle to a command action.
385 */ 412 */
386struct GNUNET_OS_CommandHandle; 413struct GNUNET_OS_CommandHandle;