Changeset View
Changeset View
Standalone View
Standalone View
ksysguardd/Linux/softraid.c
Show All 15 Lines | 1 | /* | |||
---|---|---|---|---|---|
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software | ||
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "Command.h" | 20 | #include "Command.h" | ||
21 | #include "ksysguardd.h" | 21 | #include "ksysguardd.h" | ||
22 | #include "softraid.h" | 22 | #include "softraid.h" | ||
23 | 23 | | |||
24 | #define _POSIX_C_SOURCE 200809L /* strndup */ | ||||
24 | #include <string.h> /* for strlen, strcat and strcmp */ | 25 | #include <string.h> /* for strlen, strcat and strcmp */ | ||
25 | #include <stdio.h> /* for sprintf */ | 26 | #include <stdio.h> /* for sprintf */ | ||
26 | #include <sys/types.h> /* for open */ | 27 | #include <sys/types.h> /* for open */ | ||
27 | #include <sys/stat.h> /* for open */ | 28 | #include <sys/stat.h> /* for open */ | ||
28 | #include <fcntl.h> /* for open */ | 29 | #include <fcntl.h> /* for open */ | ||
29 | #include <unistd.h> /* for read, close, exec, fork */ | 30 | #include <unistd.h> /* for read, close, exec, fork */ | ||
30 | #include <stdlib.h> /* for exit */ | 31 | #include <stdlib.h> /* for exit */ | ||
31 | #include <sys/wait.h> /* for wait :) */ | 32 | #include <sys/wait.h> /* for wait :) */ | ||
▲ Show 20 Lines • Show All 594 Lines • Show Last 20 Lines |