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

12345678

/freebsd-10.1-release/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.h213 #define NEED1(msg) {if (!(*av)) errx(EX_USAGE, msg);}
259 void ipfw_add(char *av[]);
260 void ipfw_show_nat(int ac, char **av);
261 void ipfw_config_pipe(int ac, char **av);
262 void ipfw_config_nat(int ac, char **av);
263 void ipfw_sets_handler(char *av[]);
264 void ipfw_table_handler(int ac, char *av[]);
265 void ipfw_sysctl_handler(char *av[], int which);
266 void ipfw_delete(char *av[]);
268 void ipfw_zero(int ac, char *av[], in
[all...]
H A Dipfw2.c86 if (!av[0]) \
88 if (_substrcmp(*av, "tablearg") == 0) { \
97 _xval = strtol(*av, &end, 10); \
99 if (!isdigit(**av) || *end != '\0' || (_xval == 0 && errno == EINVAL)) \
101 match_value(s_x, tok), *av); \
105 match_value(s_x, tok), min, max, *av); \
109 match_value(s_x, tok), *av); \
701 fill_newports(ipfw_insn_u16 *cmd, char *av, int proto, int cblen) argument
705 char *s = av;
708 a = strtoport(av,
750 fill_dscp(ipfw_insn *cmd, char *av, int cblen) argument
1011 fill_icmptypes(ipfw_insn_u32 *cmd, char *av) argument
1847 ipfw_sets_handler(char *av[]) argument
1955 ipfw_sysctl_handler(char *av[], int which) argument
1988 ipfw_list(int ac, char *av[], int show_counters) argument
2204 fill_ip(ipfw_insn_ip *cmd, char *av, int cblen) argument
2452 ipfw_delete(char *av[]) argument
2599 fill_comment(ipfw_insn *cmd, char **av, int cblen) argument
2644 add_mac(ipfw_insn *cmd, char *av[], int cblen) argument
2663 add_mactype(ipfw_insn *cmd, char *av, int cblen) argument
2677 add_proto0(ipfw_insn *cmd, char *av, u_char *protop) argument
2696 add_proto(ipfw_insn *cmd, char *av, u_char *protop) argument
2717 add_proto_compat(ipfw_insn *cmd, char *av, u_char *protop) argument
2738 add_srcip(ipfw_insn *cmd, char *av, int cblen) argument
2755 add_dstip(ipfw_insn *cmd, char *av, int cblen) argument
2772 add_ports(ipfw_insn *cmd, char *av, u_char proto, int opcode, int cblen) argument
2786 add_src(ipfw_insn *cmd, char *av, u_char proto, int cblen) argument
2817 add_dst(ipfw_insn *cmd, char *av, u_char proto, int cblen) argument
2860 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...]
H A Dipv6.c139 fill_icmp6types(ipfw_insn_icmp6 *cmd, char *av, int cblen) argument
146 while (*av) {
147 if (*av == ',')
148 av++;
149 type = strtoul(av, &av, 0);
150 if (*av != ',' && *av != '\0')
212 fill_ext6hdr( ipfw_insn *cmd, char *av) argument
215 char *s = av;
337 fill_ip6(ipfw_insn_ip6 *cmd, char *av, int cblen) argument
465 fill_flow6( ipfw_insn_u32 *cmd, char *av, int cblen) argument
495 add_srcip6(ipfw_insn *cmd, char *av, int cblen) argument
517 add_dstip6(ipfw_insn *cmd, char *av, int cblen) argument
[all...]
/freebsd-10.1-release/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.1-release/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.1-release/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.1-release/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.1-release/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.1-release/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.1-release/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.1-release/sys/ofed/drivers/infiniband/hw/mlx4/
H A Dah.c70 ah->av.ib.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24));
71 ah->av.ib.g_slid = ah_attr->src_path_bits;
73 ah->av.ib.g_slid |= 0x80;
74 ah->av.ib.gid_index = ah_attr->grh.sgid_index;
75 ah->av.ib.hop_limit = ah_attr->grh.hop_limit;
76 ah->av.ib.sl_tclass_flowlabel |=
79 memcpy(ah->av.ib.dgid, ah_attr->grh.dgid.raw, 16);
82 ah->av.ib.dlid = cpu_to_be16(ah_attr->dlid);
84 ah->av.ib.stat_rate = ah_attr->static_rate + MLX4_STAT_RATE_OFFSET;
85 while (ah->av
[all...]
/freebsd-10.1-release/usr.bin/killall/
H A Dkillall.c91 main(int ac, char **av) argument
134 av++;
138 if (strcmp(*av, "-l") == 0) {
142 if (strcmp(*av, "-help") == 0)
144 if (**av == '-') {
145 ++*av;
146 switch (**av) {
151 ++*av;
152 if (**av == '\0') {
153 ++av;
[all...]
/freebsd-10.1-release/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.1-release/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.1-release/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.1-release/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.1-release/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...]
/freebsd-10.1-release/contrib/ofed/libmthca/src/
H A Dah.c92 ah->av = malloc(sizeof *ah->av);
93 if (!ah->av)
102 pp = ps / (sizeof *ah->av * 8 * sizeof (int));
106 if (page->use_cnt < ps / sizeof *ah->av)
124 ah->av = page->buf.buf +
125 (i * 8 * sizeof (int) + (j - 1)) * sizeof *ah->av;
135 memset(ah->av, 0, sizeof *ah->av);
137 ah->av
[all...]

Completed in 176 milliseconds

12345678