![]() ![]() | ![]() |
version 1.7, 2017/07/27 20:01:05 | version 1.8, 2017/12/18 09:12:49 | ||
---|---|---|---|
|
|
||
static volatile pid_t child = -1; | static volatile pid_t child = -1; | ||
int | int | ||
lg_show_version(struct cmd *cmds, char **argv) | |||
{ | |||
struct utsname uts; | |||
if (uname(&uts) >= 0) | |||
printf("%s %s (%s)\n\n", uts.sysname, uts.release, uts.machine); | |||
printf("%s - %s\n", NAME, BRIEF); | |||
return (0); | |||
} | |||
int | |||
lg_checkperm(struct cmd *cmd) | lg_checkperm(struct cmd *cmd) | ||
{ | { | ||
struct stat stbuf; | struct stat stbuf; |