udevadm-test-builtin.c | udevadm-test-builtin.c | |||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
*/ | */ | |||
#include <stdlib.h> | #include <stdlib.h> | |||
#include <stddef.h> | #include <stddef.h> | |||
#include <string.h> | #include <string.h> | |||
#include <stdio.h> | #include <stdio.h> | |||
#include <unistd.h> | #include <unistd.h> | |||
#include <errno.h> | #include <errno.h> | |||
#include <dirent.h> | #include <dirent.h> | |||
#include <fcntl.h> | #include <fcntl.h> | |||
#include <syslog.h> | ||||
#include <getopt.h> | #include <getopt.h> | |||
#include <signal.h> | #include <signal.h> | |||
#include <time.h> | #include <time.h> | |||
#include <sys/inotify.h> | #include <sys/inotify.h> | |||
#include <sys/poll.h> | #include <sys/poll.h> | |||
#include <sys/stat.h> | #include <sys/stat.h> | |||
#include <sys/types.h> | #include <sys/types.h> | |||
#include "udev.h" | #include "udev.h" | |||
static void help(struct udev *udev) | static void help(struct udev *udev) { | |||
{ | ||||
fprintf(stderr, "\n"); | fprintf(stderr, "\n"); | |||
fprintf(stderr, "Usage: udevadm builtin [--help] COMMAND SYSPATH\n" ); | fprintf(stderr, "Usage: udevadm builtin [--help] COMMAND SYSPATH\n" ); | |||
udev_builtin_list(udev); | udev_builtin_list(udev); | |||
fprintf(stderr, "\n"); | fprintf(stderr, "\n"); | |||
} | } | |||
static int adm_builtin(struct udev *udev, int argc, char *argv[]) | static int adm_builtin(struct udev *udev, int argc, char *argv[]) { | |||
{ | ||||
static const struct option options[] = { | static const struct option options[] = { | |||
{ "help", no_argument, NULL, 'h' }, | { "help", no_argument, NULL, 'h' }, | |||
{} | {} | |||
}; | }; | |||
char *command = NULL; | char *command = NULL; | |||
char *syspath = NULL; | char *syspath = NULL; | |||
char filename[UTIL_PATH_SIZE]; | char filename[UTIL_PATH_SIZE]; | |||
struct udev_device *dev = NULL; | struct udev_device *dev = NULL; | |||
enum udev_builtin_cmd cmd; | enum udev_builtin_cmd cmd; | |||
int rc = EXIT_SUCCESS, c; | int rc = EXIT_SUCCESS, c; | |||
End of changes. 3 change blocks. | ||||
5 lines changed or deleted | 2 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |