Home
last modified time | relevance | path

Searched refs:optptr (Results 1 – 12 of 12) sorted by relevance

/external/toybox/toys/pending/
Ddhcp.c833 static uint8_t *dhcpc_addclientid(uint8_t *optptr) in dhcpc_addclientid() argument
835 *optptr++ = DHCP_OPTION_CLIENTID; in dhcpc_addclientid()
836 *optptr++ = 7; in dhcpc_addclientid()
837 *optptr++ = 1; in dhcpc_addclientid()
838 memcpy(optptr, &state->macaddr, 6); in dhcpc_addclientid()
839 return optptr + 6; in dhcpc_addclientid()
843 static uint8_t *dhcpc_addmsgtype(uint8_t *optptr, uint8_t type) in dhcpc_addmsgtype() argument
845 *optptr++ = DHCP_OPTION_MSG_TYPE; in dhcpc_addmsgtype()
846 *optptr++ = 1; in dhcpc_addmsgtype()
847 *optptr++ = type; in dhcpc_addmsgtype()
[all …]
Ddhcpd.c1036 static uint8_t* set_optval(uint8_t *optptr, uint16_t opt, void *var, size_t len) in set_optval() argument
1038 while (*optptr != DHCP_OPT_END) optptr++; in set_optval()
1039 *optptr++ = (uint8_t)(opt & 0x00FF); in set_optval()
1040 *optptr++ = (uint8_t) len; in set_optval()
1041 memcpy(optptr, var, len); in set_optval()
1042 optptr += len; in set_optval()
1043 *optptr = DHCP_OPT_END; in set_optval()
1044 return optptr; in set_optval()
1047 static uint8_t* set_optval6(uint8_t *optptr, uint16_t opt, void *var, size_t len) in set_optval6() argument
1049 *((uint16_t*)optptr) = htons(opt); in set_optval6()
[all …]
/external/syslinux/com32/lib/
Dgetopt.c14 const char *optptr; member
38 pvt.optptr = NULL; in getopt()
54 if ((uintptr_t) (pvt.optptr - carg) > (uintptr_t) strlen(carg)) { in getopt()
56 pvt.optptr = carg + 1; in getopt()
59 opt = *pvt.optptr++; in getopt()
63 if (*pvt.optptr) { in getopt()
66 optarg = (char *)pvt.optptr; in getopt()
86 if (!*pvt.optptr) in getopt()
93 if (!*pvt.optptr) in getopt()
Dgetopt_long.c19 const char *optptr; member
58 pvt.optptr = NULL; in getopt_long()
109 if ((uintptr_t) (pvt.optptr - carg) > (uintptr_t) strlen(carg)) { in getopt_long()
111 pvt.optptr = carg + 1; in getopt_long()
114 opt = *pvt.optptr++; in getopt_long()
118 if (*pvt.optptr) { in getopt_long()
121 optarg = (char *)pvt.optptr; in getopt_long()
141 if (!*pvt.optptr) in getopt_long()
148 if (!*pvt.optptr) in getopt_long()
/external/syslinux/libinstaller/getopt/
Dgetopt_long.c19 const char *optptr; member
58 pvt.optptr = NULL; in getopt_long()
109 if ((uintptr_t) (pvt.optptr - carg) > (uintptr_t) strlen(carg)) { in getopt_long()
111 pvt.optptr = carg + 1; in getopt_long()
114 opt = *pvt.optptr++; in getopt_long()
118 if (*pvt.optptr) { in getopt_long()
121 optarg = (char *)pvt.optptr; in getopt_long()
141 if (!*pvt.optptr) in getopt_long()
148 if (!*pvt.optptr) in getopt_long()
/external/libcups/cups/
Dppd-mark.c67 cups_option_t *optptr; /* Current option */ in cupsMarkOptions() local
255 for (i = num_options, optptr = options; i > 0; i --, optptr ++) in cupsMarkOptions()
257 if (!_cups_strcasecmp(optptr->name, "media") || in cupsMarkOptions()
258 !_cups_strcasecmp(optptr->name, "output-bin") || in cupsMarkOptions()
259 !_cups_strcasecmp(optptr->name, "output-mode") || in cupsMarkOptions()
260 !_cups_strcasecmp(optptr->name, "print-quality") || in cupsMarkOptions()
261 !_cups_strcasecmp(optptr->name, "sides")) in cupsMarkOptions()
263 else if (!_cups_strcasecmp(optptr->name, "resolution") || in cupsMarkOptions()
264 !_cups_strcasecmp(optptr->name, "printer-resolution")) in cupsMarkOptions()
266 ppd_mark_option(ppd, "Resolution", optptr->value); in cupsMarkOptions()
[all …]
Dppd.c2907 *optptr, /* Option pointer */ in ppd_read() local
3278 optptr = option; in ppd_read()
3284 (optptr - option) >= (PPD_MAX_NAME - 1)) in ppd_read()
3290 *optptr++ = *lineptr++; in ppd_read()
3293 *optptr = '\0'; in ppd_read()
/external/fio/oslib/
Dgetopt_long.c23 const char *optptr; member
64 pvt.optptr = NULL; in getopt_long_only()
141 if ((uintptr_t) (pvt.optptr - carg) > (uintptr_t) strlen(carg)) { in getopt_long_only()
143 pvt.optptr = carg + 1; in getopt_long_only()
146 opt = *pvt.optptr++; in getopt_long_only()
150 if (*pvt.optptr) { in getopt_long_only()
153 optarg = (char *)pvt.optptr; in getopt_long_only()
182 if (!*pvt.optptr) in getopt_long_only()
189 if (!*pvt.optptr) in getopt_long_only()
/external/iputils/
Dping.c1137 unsigned char * optptr; in pr_options() local
1142 optptr = cp; in pr_options()
1145 if (*optptr == IPOPT_EOL) in pr_options()
1147 if (*optptr == IPOPT_NOP) { in pr_options()
1149 optptr++; in pr_options()
1153 cp = optptr; in pr_options()
1154 optlen = optptr[1]; in pr_options()
1277 optptr += optlen; in pr_options()
/external/ppp/pppd/
Doptions.c779 char **optptr = (char **)(opt->addr); local
783 if (*optptr)
784 free(*optptr);
785 *optptr = sv;
/external/valgrind/memcheck/tests/solaris/
Dscalar.stderr.exp223 Syscall param mount(optptr) contains uninitialised byte(s)
245 Syscall param mount(optptr) points to unaddressable byte(s)
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-solaris.c2255 char *, optptr, int, optlen); in PRE()