Warning, file /frameworks/kinit/src/kdeinit/kinit.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 1999-2000 Waldo Bastian <bastian@kde.org>
0004     SPDX-FileCopyrightText: 1999 Mario Weilguni <mweilguni@sime.com>
0005     SPDX-FileCopyrightText: 2001 Lubos Lunak <l.lunak@kde.org>
0006     SPDX-FileCopyrightText: 2016 René J.V. Bertin <rjvbertin@gmail.com>
0007 
0008     SPDX-License-Identifier: LGPL-2.0-only
0009 */
0010 
0011 #ifndef _KINIT_H
0012 
0013 /* Group data */
0014 static struct {
0015     int maxname;
0016     int fd[2];
0017     int launcher[2]; /* socket pair for launcher communication */
0018     int deadpipe[2]; /* pipe used to detect dead children */
0019     int initpipe[2];
0020     int wrapper; /* socket for wrapper communication */
0021     int accepted_fd; /* socket accepted and that must be closed in the child process */
0022     char result;
0023     int exit_status;
0024     pid_t fork;
0025     pid_t launcher_pid;
0026     pid_t kded_pid;
0027     int n;
0028     char **argv;
0029     int (*func)(int, char *[]);
0030     int (*launcher_func)(int);
0031     bool debug_wait;
0032     QByteArray errorMsg;
0033     bool launcher_ok;
0034     bool suicide;
0035 } d;
0036 
0037 struct child {
0038     pid_t pid;
0039     int sock; /* fd to write message when child is dead*/
0040     struct child *next;
0041 };
0042 
0043 /*
0044  * Close fd's which are only useful for the parent process.
0045  * Restore default signal handlers.
0046  */
0047 extern void close_fds();
0048 extern void setup_tty(const char *tty);
0049 extern QByteArray execpath_avoid_loops(const QByteArray &exec, int envc, const char *envs, bool avoid_loops);
0050 extern void reset_oom_protect();
0051 
0052 #define _KINIT_H
0053 #endif