4 /* Background code requires socketpair to be available */
5 /* Do not add the background code if it is not supported */
7 # define WITH_BACKGROUND
10 /* Used for parent/child communication. These are numbers that
11 * could not possible be a routine address.
17 /* First argument passed to real functions */
33 typedef struct TaskList
{
38 struct TaskList
*next
;
41 extern struct TaskList
*task_list
;
43 extern int background_wait
;
45 int do_background (char *info
);
46 int background_attention (int fd
, void *xpid
);
47 void tell_parent (int msg
);
48 int parent_call (void *routine
, int argc
, ...);
49 int call_1s (int (*routine
)(enum OperationMode
, char *), char *str
);
51 void unregister_task_running (pid_t
, int fd
);
52 void register_task_running (pid_t
, int, char *);
55 void message_1s (int flags
, char *title
, char *str1
);
56 void message_2s (int flags
, char *title
, char *str1
, char *str2
);
57 void message_3s (int flags
, char *title
, char *str1
, char *str2
, const char *str3
);
58 void message_1s1d (int flags
, char *title
, char *str
, int d
);