rule.c (227081) | rule.c (229778) |
---|---|
1/*- 2 * Copyright (c) 2002 Dima Dorfman. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * SUCH DAMAGE. 25 */ 26 27/* 28 * Rule subsystem manipulation. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Dima Dorfman. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * SUCH DAMAGE. 25 */ 26 27/* 28 * Rule subsystem manipulation. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sbin/devfs/rule.c 227081 2011-11-04 13:36:02Z ed $"); | 32__FBSDID("$FreeBSD: head/sbin/devfs/rule.c 229778 2012-01-07 16:09:33Z uqs $"); |
33 34#include <sys/param.h> 35#include <sys/conf.h> 36#include <sys/ioctl.h> 37 38#include <assert.h> 39#include <err.h> 40#include <errno.h> 41#include <grp.h> 42#include <pwd.h> 43#include <stdio.h> 44#include <stdlib.h> 45#include <string.h> 46#include <unistd.h> 47 48#include "extern.h" 49 | 33 34#include <sys/param.h> 35#include <sys/conf.h> 36#include <sys/ioctl.h> 37 38#include <assert.h> 39#include <err.h> 40#include <errno.h> 41#include <grp.h> 42#include <pwd.h> 43#include <stdio.h> 44#include <stdlib.h> 45#include <string.h> 46#include <unistd.h> 47 48#include "extern.h" 49 |
50static void rulespec_infp(FILE *fp, unsigned long reqest, devfs_rsnum rsnum); | 50static void rulespec_infp(FILE *fp, unsigned long request, devfs_rsnum rsnum); |
51static void rulespec_instr(struct devfs_rule *dr, const char *str, 52 devfs_rsnum rsnum); 53static void rulespec_intok(struct devfs_rule *dr, int ac, char **av, 54 devfs_rsnum rsnum); 55static void rulespec_outfp(FILE *fp, struct devfs_rule *dr); 56 57static command_t rule_add, rule_apply, rule_applyset; 58static command_t rule_del, rule_delset, rule_show, rule_showsets; --- 404 unchanged lines hidden --- | 51static void rulespec_instr(struct devfs_rule *dr, const char *str, 52 devfs_rsnum rsnum); 53static void rulespec_intok(struct devfs_rule *dr, int ac, char **av, 54 devfs_rsnum rsnum); 55static void rulespec_outfp(FILE *fp, struct devfs_rule *dr); 56 57static command_t rule_add, rule_apply, rule_applyset; 58static command_t rule_del, rule_delset, rule_show, rule_showsets; --- 404 unchanged lines hidden --- |