Searched refs:av (Results 1 - 25 of 201) sorted by relevance

123456789

/freebsd-10-stable/usr.sbin/devctl/
H A Ddevctl.c42 int (*handler)(int ac, char **av);
56 devctl_ ## name ## _table_handler(int ac, char **av) \
59 SET_LIMIT(DEVCTL_DATASET(name)), ac, av)); \
64 struct devctl_command **end, int ac, char **av);
86 struct devctl_command **end, int ac, char **av)
91 warnx("The %s command requires a sub-command.", av[0]);
95 if (strcmp((*cmd)->name, av[1]) == 0)
96 return ((*cmd)->handler(ac - 1, av + 1));
99 warnx("%s is not a valid sub-command of %s.", av[1], av[
85 devctl_table_handler(struct devctl_command **start, struct devctl_command **end, int ac, char **av) argument
113 attach(int ac, char **av) argument
133 detach(int ac, char **av) argument
167 disable(int ac, char **av) argument
193 enable(int ac, char **av) argument
213 set_driver(int ac, char **av) argument
247 clear_driver(int ac, char **av) argument
273 main(int ac, char *av[]) argument
[all...]
/freebsd-10-stable/sbin/ipfw/
H A Dmain.c90 * The pointers (av[]) and data are in a single chunk of memory.
91 * av[0] points to the original program name, all other entries
99 char **av, **save_av; local
102 int av_size; /* compute the av size */
103 char *av_p; /* used to build the av list */
156 av = safe_calloc(av_size, 1);
160 * and copy arguments from arg[] to av[]. For each one,
163 av_p = (char *)&av[ac+1];
169 av[ac] = av_p;
194 av
450 ipfw_readfile(int ac, char *av[]) argument
590 main(int ac, char *av[]) argument
[all...]
H A Dipfw2.h239 #define NEED1(msg) {if (!(*av)) errx(EX_USAGE, msg);}
285 void ipfw_add(char *av[]);
286 void ipfw_show_nat(int ac, char **av);
287 void ipfw_config_pipe(int ac, char **av);
288 void ipfw_config_nat(int ac, char **av);
289 void ipfw_sets_handler(char *av[]);
290 void ipfw_table_handler(int ac, char *av[]);
291 void ipfw_sysctl_handler(char *av[], int which);
292 void ipfw_delete(char *av[]);
294 void ipfw_zero(int ac, char *av[], in
[all...]
H A Dipfw2.c87 if (!av[0]) \
89 if (_substrcmp(*av, "tablearg") == 0) { \
98 _xval = strtol(*av, &end, 10); \
100 if (!isdigit(**av) || *end != '\0' || (_xval == 0 && errno == EINVAL)) \
102 match_value(s_x, tok), *av); \
106 match_value(s_x, tok), min, max, *av); \
110 match_value(s_x, tok), *av); \
702 fill_newports(ipfw_insn_u16 *cmd, char *av, int proto, int cblen) argument
706 char *s = av;
709 a = strtoport(av,
751 fill_dscp(ipfw_insn *cmd, char *av, int cblen) argument
1012 fill_icmptypes(ipfw_insn_u32 *cmd, char *av) argument
1848 ipfw_sets_handler(char *av[]) argument
1956 ipfw_sysctl_handler(char *av[], int which) argument
1989 ipfw_list(int ac, char *av[], int show_counters) argument
2205 fill_ip(ipfw_insn_ip *cmd, char *av, int cblen) argument
2453 ipfw_delete(char *av[]) argument
2600 fill_comment(ipfw_insn *cmd, char **av, int cblen) argument
2645 add_mac(ipfw_insn *cmd, char *av[], int cblen) argument
2664 add_mactype(ipfw_insn *cmd, char *av, int cblen) argument
2678 add_proto0(ipfw_insn *cmd, char *av, u_char *protop) argument
2697 add_proto(ipfw_insn *cmd, char *av, u_char *protop) argument
2718 add_proto_compat(ipfw_insn *cmd, char *av, u_char *protop) argument
2739 add_srcip(ipfw_insn *cmd, char *av, int cblen) argument
2756 add_dstip(ipfw_insn *cmd, char *av, int cblen) argument
2773 add_ports(ipfw_insn *cmd, char *av, u_char proto, int opcode, int cblen) argument
2787 add_src(ipfw_insn *cmd, char *av, u_char proto, int cblen) argument
2818 add_dst(ipfw_insn *cmd, char *av, u_char proto, int cblen) argument
2861 ipfw_add(char *av[]) argument
4038 ipfw_zero(int ac, char *av[], int optname ) argument
4163 ipfw_table_handler(int ac, char *av[]) argument
[all...]
/freebsd-10-stable/contrib/gcc/config/i386/
H A Dcygwin2.c39 char **av; local
41 for (av = cvt_to_mingw; *av; av++)
44 while ((p = strstr (*av, "-cygwin")))
55 if (!sawcygwin && !strstr (*av, "mingw"))
56 strcat (*av, CYGWIN_MINGW_SUBDIR);
/freebsd-10-stable/usr.sbin/ngctl/
H A Dconnect.c46 static int ConnectCmd(int ac, char **av);
61 ConnectCmd(int ac, char **av) argument
69 path = av[1];
71 av++;
74 snprintf(con.path, sizeof(con.path), "%s", av[1]);
75 snprintf(con.ourhook, sizeof(con.ourhook), "%s", av[2]);
76 snprintf(con.peerhook, sizeof(con.peerhook), "%s", av[3]);
H A Dmkpeer.c46 static int MkPeerCmd(int ac, char **av);
61 MkPeerCmd(int ac, char **av) argument
69 path = av[1];
71 av++;
74 snprintf(mkp.type, sizeof(mkp.type), "%s", av[1]);
75 snprintf(mkp.ourhook, sizeof(mkp.ourhook), "%s", av[2]);
76 snprintf(mkp.peerhook, sizeof(mkp.peerhook), "%s", av[3]);
H A Ddebug.c47 static int DebugCmd(int ac, char **av);
61 DebugCmd(int ac, char **av) argument
68 if (!strcmp(av[1], "+"))
70 else if (!strcmp(av[1], "-"))
72 else if ((level = atoi(av[1])) < 0)
H A Drmhook.c46 static int RmHookCmd(int ac, char **av);
59 RmHookCmd(int ac, char **av) argument
67 path = av[1];
69 av++;
72 snprintf(rmh.ourhook, sizeof(rmh.ourhook), "%s", av[1]);
H A Dshutdown.c46 static int ShutdownCmd(int ac, char **av);
57 ShutdownCmd(int ac, char **av) argument
64 path = av[1];
H A Dwrite.c50 static int WriteCmd(int ac, char **av);
62 WriteCmd(int ac, char **av) argument
76 hook = av[1];
79 if (strcmp(av[2], "-f") == 0) {
82 if ((fp = fopen(av[3], "r")) == NULL) {
83 warn("can't read file \"%s\"", av[3]);
88 warn("can't read file \"%s\"", av[3]);
90 warnx("file \"%s\" is empty", av[3]);
97 if (sscanf(av[i], "%i", &byte) != 1
99 warnx("invalid byte \"%s\"", av[
[all...]
H A Dname.c47 static int NameCmd(int ac, char **av);
58 NameCmd(int ac, char **av) argument
66 path = av[1];
67 snprintf(name.name, sizeof(name.name), "%s", av[2]);
/freebsd-10-stable/lib/libdwarf/
H A Ddwarf_attrval.c37 Dwarf_AttrValue av; local
39 STAILQ_FOREACH(av, &die->die_attrval, av_next) {
40 if (av->av_attrib == attr)
44 return av;
50 Dwarf_AttrValue av; local
53 if ((av = malloc(sizeof(struct _Dwarf_AttrValue))) == NULL) {
58 memcpy(av, avref, sizeof(struct _Dwarf_AttrValue));
61 STAILQ_INSERT_TAIL(&die->die_attrval, av, av_next);
64 if (av->av_attrib == DW_AT_name)
65 switch (av
85 Dwarf_AttrValue av; local
122 Dwarf_AttrValue av; local
163 Dwarf_AttrValue av; local
200 Dwarf_AttrValue av; local
[all...]
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mthca/
H A Dmthca_av.c159 struct mthca_av *av = NULL; local
164 ah->av = kmalloc(sizeof *ah->av, GFP_ATOMIC);
165 if (!ah->av)
169 av = ah->av;
178 av = kmalloc(sizeof *av, GFP_ATOMIC);
179 if (!av)
189 ah->av
[all...]
/freebsd-10-stable/sbin/devfs/
H A Drule.c53 static void rulespec_intok(struct devfs_rule *dr, int ac, char **av,
82 rule_main(int ac, char **av) argument
89 while ((ch = getopt(ac, av, "s:")) != -1)
98 av += optind;
103 if (strcmp(c->name, av[0]) == 0)
104 exit((*c->handler)(ac, av));
105 errx(1, "unknown command: %s", av[0]);
109 rule_add(int ac, char **av) argument
116 if (strcmp(av[1], "-") == 0)
119 rulespec_intok(&dr, ac - 1, av
169 rule_del(int ac __unused, char **av) argument
205 rule_show(int ac __unused, char **av) argument
247 ruleset_main(int ac, char **av) argument
295 char **av; local
310 rulespec_intok(struct devfs_rule *dr, int ac __unused, char **av, devfs_rsnum rsnum) argument
[all...]
/freebsd-10-stable/sbin/mount/
H A Dvfslist.c63 const char **av; local
76 if ((av = malloc((size_t)(i + 2) * sizeof(char *))) == NULL) {
82 av[i++] = nextcp;
85 av[i++] = nextcp;
87 av[i++] = NULL;
88 return (av);
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/jdtrace/
H A Djdtrace.c38 char **av, **p; local
41 av = p = alloca(sizeof (char *) * ac);
55 (void) execvp(av[0], av);
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mlx4/
H A Dah.c69 ah->av.ib.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24));
70 ah->av.ib.g_slid = ah_attr->src_path_bits;
72 ah->av.ib.g_slid |= 0x80;
73 ah->av.ib.gid_index = ah_attr->grh.sgid_index;
74 ah->av.ib.hop_limit = ah_attr->grh.hop_limit;
75 ah->av.ib.sl_tclass_flowlabel |=
78 memcpy(ah->av.ib.dgid, ah_attr->grh.dgid.raw, 16);
81 ah->av.ib.dlid = cpu_to_be16(ah_attr->dlid);
83 ah->av.ib.stat_rate = ah_attr->static_rate + MLX4_STAT_RATE_OFFSET;
84 while (ah->av
[all...]
/freebsd-10-stable/usr.bin/killall/
H A Dkillall.c91 main(int ac, char **av) argument
135 av++;
139 if (strcmp(*av, "-l") == 0) {
143 if (strcmp(*av, "-help") == 0)
145 if (**av == '-') {
146 ++*av;
147 switch (**av) {
149 ++*av;
150 if (**av == '\0') {
151 ++av;
[all...]
/freebsd-10-stable/usr.sbin/procctl/
H A Dprocctl.c57 main(int ac, char **av) { argument
64 snprintf(buf, sizeof(buf), "/proc/%s/mem", av[i]);
69 warn("cannot open pid %s", av[i]);
73 warn("cannot clear process %s's event mask", av[i]);
75 warn("cannot continue process %s", av[i]);
/freebsd-10-stable/contrib/dialog/
H A Ddialog.c36 #define PASSARGS t, av, offset_add
37 #define CALLARGS const char *t, char *av[], int *offset_add
575 numeric_arg(char **av, int n) argument
579 if (n < dlg_count_argv(av)) {
582 result = (int) strtol(av[n], &last, 10);
585 sprintf(msg, "Expected a number for token %d of %.20s", n, av[0]);
593 optional_str(char **av, int n, char *dft) argument
596 if (arg_rest(av) > n)
597 ret = av[n];
603 optional_num(char **av, in argument
[all...]
/freebsd-10-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_ah.c61 memcpy(ah->av.rgid, &ah_attr->grh.dgid, 16);
62 ah->av.grh_gid_fl = cpu_to_be32(ah_attr->grh.flow_label |
65 ah->av.hop_limit = ah_attr->grh.hop_limit;
66 ah->av.tclass = ah_attr->grh.traffic_class;
69 ah->av.stat_rate_sl = (ah_attr->static_rate << 4);
78 mlx5_ib_resolve_grh(ah_attr, ah->av.rmac, NULL);
79 ah->av.udp_sport = mlx5_get_roce_udp_sport(
84 ah->av.stat_rate_sl |= (ah_attr->sl & 0x7) << 1;
85 ah->av.hop_limit = ah_attr->grh.hop_limit;
88 ah->av
[all...]
/freebsd-10-stable/usr.sbin/mptutil/
H A Dmptutil.c80 version(int ac, char **av) argument
93 main(int ac, char **av) argument
98 while ((ch = getopt(ac, av, "u:")) != -1) {
108 av += optind;
111 /* getopt() eats av[0], so we can't use mpt_table_handler() directly. */
116 if (strcmp((*cmd)->name, av[0]) == 0) {
117 if ((*cmd)->handler(ac, av))
123 warnx("Unknown command %s.", av[0]);
/freebsd-10-stable/usr.sbin/mfiutil/
H A Dmfi_volume.c183 process_cache_command(int ac, char **av, struct mfi_ld_props *props) argument
188 if (strcmp(av[0], "all") == 0 || strcmp(av[0], "enable") == 0) {
195 if (strcmp(av[0], "none") == 0 || strcmp(av[0], "disable") == 0) {
200 if (strcmp(av[0], "reads") == 0) {
206 if (strcmp(av[0], "writes") == 0) {
214 if (strcmp(av[0], "write-back") == 0) {
219 if (strcmp(av[0], "write-through") == 0) {
223 if (strcmp(av[
287 volume_cache(int ac, char **av) argument
391 volume_name(int ac, char **av) argument
446 volume_progress(int ac, char **av) argument
[all...]
/freebsd-10-stable/sys/contrib/octeon-sdk/cvmx-malloc/
H A Dmalloc.c2245 static void malloc_init_state(mstate av) argument
2247 static void malloc_init_state(av) mstate av;
2255 bin = bin_at(av,i);
2259 set_noncontiguous(av);
2261 set_max_fast(av, DEFAULT_MXFAST);
2263 av->top = initial_top(av);
2316 static void do_check_chunk(mstate av, mchunkptr p) argument
2318 static void do_check_chunk(av,
2365 do_check_free_chunk(mstate av, mchunkptr p) argument
2403 do_check_inuse_chunk(mstate av, mchunkptr p) argument
2445 do_check_remalloced_chunk(mstate av, mchunkptr p, INTERNAL_SIZE_T s) argument
2474 do_check_malloced_chunk(mstate av, mchunkptr p, INTERNAL_SIZE_T s) argument
2508 do_check_malloc_state(mstate av) argument
2871 mstate av; local
2908 _int_malloc(mstate av, size_t bytes) argument
3285 _int_free(mstate av, Void_t* mem) argument
3422 malloc_consolidate(mstate av) argument
3524 _int_realloc(mstate av, Void_t* oldmem, size_t bytes) argument
3699 _int_memalign(mstate av, size_t alignment, size_t bytes) argument
3885 mALLINFo(mstate av) argument
[all...]

Completed in 170 milliseconds

123456789