Changeset View
Changeset View
Standalone View
Standalone View
sbin/devfs/rule.c
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
/* | /* | ||||
* Input rules from a file (probably the standard input). This | * Input rules from a file (probably the standard input). This | ||||
* differs from the other rulespec_in*() routines in that it also | * differs from the other rulespec_in*() routines in that it also | ||||
* calls ioctl() for the rules, since it is impractical (and not very | * calls ioctl() for the rules, since it is impractical (and not very | ||||
* useful) to return a list (or array) of rules, just so the caller | * useful) to return a list (or array) of rules, just so the caller | ||||
* can call call ioctl() for each of them. | * can call ioctl() for each of them. | ||||
*/ | */ | ||||
static void | static void | ||||
rulespec_infp(FILE *fp, unsigned long request, devfs_rsnum rsnum) | rulespec_infp(FILE *fp, unsigned long request, devfs_rsnum rsnum) | ||||
{ | { | ||||
struct devfs_rule dr; | struct devfs_rule dr; | ||||
char *line; | char *line; | ||||
int rv; | int rv; | ||||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |