From: Dirk Vogt Date: Fri, 25 Feb 2011 12:25:03 +0000 (+0000) Subject: incoporate davman into server/rs X-Git-Tag: v3.2.0~639 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/man.7.txt?a=commitdiff_plain;h=77fa5b41167ccc9502a0418e6e0c2070d13e3cd9;p=minix.git incoporate davman into server/rs --- diff --git a/commands/service/service.c b/commands/service/service.c index c9b3d34c7..deee6e543 100644 --- a/commands/service/service.c +++ b/commands/service/service.c @@ -82,6 +82,7 @@ PRIVATE char *known_requests[] = { #define ARG_ARGS "-args" /* list of arguments to be passed */ #define ARG_DEV "-dev" /* major device number for drivers */ +#define ARG_MAJOR "-major" /* major number */ #define ARG_DEVSTYLE "-devstyle" /* device style */ #define ARG_PERIOD "-period" /* heartbeat period in ticks */ #define ARG_SCRIPT "-script" /* name of the script to restart a @@ -94,6 +95,8 @@ PRIVATE char *known_requests[] = { #define ARG_LU_STATE "-state" /* the live update state required */ #define ARG_LU_MAXTIME "-maxtime" /* max time to prepare for the update */ +#define ARG_DEVMANID "-devid" /* the id of the devman device this + driver should be able to access */ #define SERVICE_LOGIN "service" /* passwd file entry for services */ @@ -110,6 +113,7 @@ PRIVATE char *req_path = NULL; PRIVATE char *req_path_self = SELF_REQ_PATH; PRIVATE char *req_args = ""; PRIVATE int req_major = 0; +PRIVATE int devman_id = 0; PRIVATE int req_dev_style = STYLE_NDEV; PRIVATE long req_period = 0; PRIVATE char *req_script = NULL; @@ -133,9 +137,9 @@ PRIVATE void print_usage(char *app_name, char *problem) fprintf(stderr, "Warning, %s\n", problem); fprintf(stderr, "Usage:\n"); fprintf(stderr, - " %s [%s %s %s %s] (up|run|edit|update) [%s ] [%s ] [%s