Home
last modified time | relevance | path

Searched refs:bufptr (Results 1 – 25 of 99) sorted by relevance

1234

/aosp_15_r20/external/libcups/cups/
H A Dipp-support.c663 char *bufptr, /* Pointer into buffer */ in ippAttributeString() local
679 bufptr = buffer; in ippAttributeString()
689 if (buffer && bufptr < bufend) in ippAttributeString()
690 *bufptr++ = ','; in ippAttributeString()
692 bufptr ++; in ippAttributeString()
700 if (buffer && bufptr < bufend) in ippAttributeString()
701 strlcpy(bufptr, ptr, (size_t)(bufend - bufptr + 1)); in ippAttributeString()
703 bufptr += strlen(ptr); in ippAttributeString()
707 if (buffer && bufptr < bufend) in ippAttributeString()
708 bufptr += snprintf(bufptr, (size_t)(bufend - bufptr + 1), "%d", val->integer); in ippAttributeString()
[all …]
H A Dsnprintf.c30 char *bufptr, /* Pointer to position in buffer */ in _cups_vsnprintf() local
50 bufptr = buffer; in _cups_vsnprintf()
63 if (bufptr && bufptr < bufend) *bufptr++ = *format; in _cups_vsnprintf()
183 if (bufptr) in _cups_vsnprintf()
185 if ((bufptr + templen) > bufend) in _cups_vsnprintf()
187 strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); in _cups_vsnprintf()
188 bufptr = bufend; in _cups_vsnprintf()
192 memcpy(bufptr, temp, templen + 1); in _cups_vsnprintf()
193 bufptr += templen; in _cups_vsnprintf()
215 if (bufptr) in _cups_vsnprintf()
[all …]
H A Dppd-emit.c296 *bufptr; /* Pointer into code */ in ppdEmitFd() local
322 bufptr = buffer; in ppdEmitFd()
328 if ((bytes = (ssize_t)write(fd, bufptr, (unsigned)buflength)) < 0) in ppdEmitFd()
330 if ((bytes = write(fd, bufptr, buflength)) < 0) in ppdEmitFd()
340 bufptr += bytes; in ppdEmitFd()
616 *bufptr, /* Pointer into buffer */ in ppdEmitString() local
772 for (i = 0, bufptr = buffer; i < count; i ++, bufptr += strlen(bufptr)) in ppdEmitString()
788 for (cptr = choices[i]->code; *cptr && bufptr < bufend;) in ppdEmitString()
821 bufptr = _cupsStrFormatd(bufptr, bufend, in ppdEmitString()
827 snprintf(bufptr, (size_t)(bufend - bufptr), "%d", cparam->current.custom_int); in ppdEmitString()
[all …]
H A Ddebug.c350 char *bufptr, /* Pointer to position in buffer */ in _cups_safe_vsnprintf() local
370 bufptr = buffer; in _cups_safe_vsnprintf()
383 if (bufptr < bufend) in _cups_safe_vsnprintf()
384 *bufptr++ = *format; in _cups_safe_vsnprintf()
495 if (bufptr) in _cups_safe_vsnprintf()
497 strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); in _cups_safe_vsnprintf()
498 bufptr += strlen(bufptr); in _cups_safe_vsnprintf()
525 if (bufptr) in _cups_safe_vsnprintf()
527 strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); in _cups_safe_vsnprintf()
528 bufptr += strlen(bufptr); in _cups_safe_vsnprintf()
[all …]
H A Dsnmp.c931 unsigned char *bufptr, /* Pointer into the data */ in asn1_decode_snmp() local
943 bufptr = buffer; in asn1_decode_snmp()
946 if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_SEQUENCE) in asn1_decode_snmp()
948 else if (asn1_get_length(&bufptr, bufend) == 0) in asn1_decode_snmp()
950 else if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_INTEGER) in asn1_decode_snmp()
952 else if ((length = asn1_get_length(&bufptr, bufend)) == 0) in asn1_decode_snmp()
954 else if ((packet->version = asn1_get_integer(&bufptr, bufend, length)) in asn1_decode_snmp()
957 else if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_OCTET_STRING) in asn1_decode_snmp()
959 else if ((length = asn1_get_length(&bufptr, bufend)) == 0) in asn1_decode_snmp()
963 asn1_get_string(&bufptr, bufend, length, packet->community, in asn1_decode_snmp()
[all …]
H A Dipp.c1153 *bufptr; /* Pointer into buffer */ in ippAddStringfv() local
1155 bufptr = buffer + strlen(buffer) - 1; in ippAddStringfv()
1158 while (bufptr > bufmax) in ippAddStringfv()
1160 if (*bufptr & 0x80) in ippAddStringfv()
1162 while ((*bufptr & 0xc0) == 0x80 && bufptr > buffer) in ippAddStringfv()
1163 bufptr --; in ippAddStringfv()
1166 bufptr --; in ippAddStringfv()
1169 *bufptr = '\0'; in ippAddStringfv()
2869 *bufptr, /* Pointer into buffer */ in ippReadIO() local
3424 bufptr = buffer; in ippReadIO()
[all …]
H A Dstring.c208 char *bufptr, /* Pointer into buffer */ in _cupsStrFormatd() local
252 for (tempptr = temp, bufptr = buf; in _cupsStrFormatd()
253 tempptr < tempdec && bufptr < bufend; in _cupsStrFormatd()
254 *bufptr++ = *tempptr++); in _cupsStrFormatd()
258 if (*tempptr && bufptr < bufend) in _cupsStrFormatd()
260 *bufptr++ = '.'; in _cupsStrFormatd()
262 while (*tempptr && bufptr < bufend) in _cupsStrFormatd()
263 *bufptr++ = *tempptr++; in _cupsStrFormatd()
266 *bufptr = '\0'; in _cupsStrFormatd()
271 bufptr = buf + strlen(buf); in _cupsStrFormatd()
[all …]
H A Ddest-options.c1495 char *bufptr, /* Pointer into buffer */ in cups_collection_string() local
1502 bufptr = buffer; in cups_collection_string()
1511 if (bufptr < bufend) in cups_collection_string()
1512 *bufptr++ = ','; in cups_collection_string()
1514 bufptr ++; in cups_collection_string()
1517 if (bufptr < bufend) in cups_collection_string()
1518 *bufptr++ = '{'; in cups_collection_string()
1520 bufptr ++; in cups_collection_string()
1528 if (bufptr < bufend) in cups_collection_string()
1529 *bufptr++ = ' '; in cups_collection_string()
[all …]
H A Dlanguage.c1773 *bufptr, /* Pointer into buffer */ in cups_read_strings() local
1787 for (bufptr = buffer; *bufptr && isspace(*bufptr & 255); bufptr ++); in cups_read_strings()
1789 if (*bufptr != '\"') in cups_read_strings()
1796 bufptr ++; in cups_read_strings()
1797 for (msg = bufptr; *bufptr && *bufptr != '\"'; bufptr ++) in cups_read_strings()
1798 if (*bufptr == '\\' && bufptr[1]) in cups_read_strings()
1799 bufptr ++; in cups_read_strings()
1801 if (!*bufptr) in cups_read_strings()
1804 *bufptr++ = '\0'; in cups_read_strings()
1813 while (*bufptr && isspace(*bufptr & 255)) in cups_read_strings()
[all …]
H A Dppd-localize.c235 *bufptr, /* Pointer into buffer */ in ppdLocalizeIPPReason() local
310 for (valptr = locattr->value, bufptr = buffer; *valptr && bufptr < bufend;) in ppdLocalizeIPPReason()
320 while (*valptr && !_cups_isspace(*valptr) && bufptr < bufend) in ppdLocalizeIPPReason()
338 *bufptr++ = (char)(ch | (*valptr - '0')); in ppdLocalizeIPPReason()
340 *bufptr++ = (char)(ch | (tolower(*valptr) - 'a' + 10)); in ppdLocalizeIPPReason()
345 *bufptr++ = ' '; in ppdLocalizeIPPReason()
349 *bufptr++ = *valptr++; in ppdLocalizeIPPReason()
370 if (bufptr > buffer) in ppdLocalizeIPPReason()
371 *bufptr = '\0'; in ppdLocalizeIPPReason()
385 for (valptr = locattr->value, bufptr = buffer; *valptr && bufptr < bufend;) in ppdLocalizeIPPReason()
[all …]
H A Dppd-attr.c144 char *bufptr; /* Pointer into buffer */ in _ppdNormalizeMakeAndModel() local
170 if ((bufptr = strrchr(buffer, ')')) != NULL) in _ppdNormalizeMakeAndModel()
171 *bufptr = '\0'; in _ppdNormalizeMakeAndModel()
305 for (bufptr = buffer + strlen(buffer) - 1; in _ppdNormalizeMakeAndModel()
306 bufptr >= buffer && _cups_isspace(*bufptr); in _ppdNormalizeMakeAndModel()
307 bufptr --); in _ppdNormalizeMakeAndModel()
309 bufptr[1] = '\0'; in _ppdNormalizeMakeAndModel()
/aosp_15_r20/external/libcups/filter/
H A Dcommandtops.c131 *bufptr; /* Pointer into buffer */ in auto_configure() local
215 for (bufptr = buffer, valptr = attr->value; *valptr; valptr ++) in auto_configure()
223 *bufptr = '\0'; in auto_configure()
225 bufptr = buffer; in auto_configure()
229 if (bufptr >= (buffer + sizeof(buffer) - 4)) in auto_configure()
231 *bufptr = '\0'; in auto_configure()
233 bufptr = buffer; in auto_configure()
238 *bufptr++ = '\\'; in auto_configure()
239 *bufptr++ = 'r'; in auto_configure()
243 *bufptr++ = '\\'; in auto_configure()
[all …]
/aosp_15_r20/external/libcups/scheduler/
H A Dlog.c771 *bufptr, /* Pointer into buffer */ in cupsdLogPage() local
791 for (format = PageLogFormat, bufptr = buffer; *format; format ++) in cupsdLogPage()
800 if (bufptr < (buffer + sizeof(buffer) - 1)) in cupsdLogPage()
801 *bufptr++ = '%'; in cupsdLogPage()
805 strlcpy(bufptr, job->dest, sizeof(buffer) - (size_t)(bufptr - buffer)); in cupsdLogPage()
806 bufptr += strlen(bufptr); in cupsdLogPage()
810 snprintf(bufptr, sizeof(buffer) - (size_t)(bufptr - buffer), "%d", job->id); in cupsdLogPage()
811 bufptr += strlen(bufptr); in cupsdLogPage()
815 … strlcpy(bufptr, job->username ? job->username : "-", sizeof(buffer) - (size_t)(bufptr - buffer)); in cupsdLogPage()
816 bufptr += strlen(bufptr); in cupsdLogPage()
[all …]
H A Dtype.c760 unsigned char *bufptr; /* Pointer into buffer */ in mime_check_rules() local
817 bufptr = fb->buffer + rules->offset - fb->offset; in mime_check_rules()
819 if ((*bufptr >= 32 && *bufptr <= 126) || in mime_check_rules()
820 (*bufptr >= 8 && *bufptr <= 13) || in mime_check_rules()
821 *bufptr == 26 || *bufptr == 27) in mime_check_rules()
824 bufptr ++; in mime_check_rules()
861 bufptr = fb->buffer + rules->offset - fb->offset; in mime_check_rules()
864 if (*bufptr >= 128 || in mime_check_rules()
865 (*bufptr >= 32 && *bufptr <= 126) || in mime_check_rules()
866 (*bufptr >= 8 && *bufptr <= 13) || in mime_check_rules()
[all …]
/aosp_15_r20/external/libcups/locale/
H A Dstrings2po.c112 char *bufptr; /* Pointer into buffer */ in read_strings() local
122 for (bufptr = buffer + 1; *bufptr && *bufptr != '\"'; bufptr ++) in read_strings()
123 if (*bufptr == '\\') in read_strings()
124 bufptr ++; in read_strings()
126 if (*bufptr != '\"') in read_strings()
129 *bufptr++ = '\0'; in read_strings()
131 while (*bufptr && *bufptr != '\"') in read_strings()
132 bufptr ++; in read_strings()
134 if (!*bufptr) in read_strings()
137 bufptr ++; in read_strings()
[all …]
H A Dpo2strings.c298 char *bufptr = buffer, /* Pointer into buffer */ in normalize_string() local
304 while (*idstr && bufptr < bufend) in normalize_string()
317 *bufptr++ = (char)0xE2; in normalize_string()
318 *bufptr++ = (char)0x80; in normalize_string()
319 *bufptr++ = (char)0xA6; in normalize_string()
330 *bufptr++ = (char)0xE2; in normalize_string()
331 *bufptr++ = (char)0x80; in normalize_string()
332 *bufptr++ = (char)0x9D; in normalize_string()
341 *bufptr++ = (char)0xE2; in normalize_string()
342 *bufptr++ = (char)0x80; in normalize_string()
[all …]
H A Dcheckpo.c296 char *bufptr; /* Pointer into buffer */ in abbreviate() local
299 for (bufptr = buf, bufsize -= 4; *s && bufsize > 0; s ++) in abbreviate()
306 *bufptr++ = '\\'; in abbreviate()
307 *bufptr++ = 'n'; in abbreviate()
315 *bufptr++ = '\\'; in abbreviate()
316 *bufptr++ = 't'; in abbreviate()
324 sprintf(bufptr, "\\%03o", *s); in abbreviate()
325 bufptr += 4; in abbreviate()
330 *bufptr++ = *s; in abbreviate()
336 memcpy(bufptr, "...", 4); in abbreviate()
[all …]
/aosp_15_r20/external/libcups/tools/
H A Dippeveps.c537 *bufptr, /* Pointer info buffer */ in jpeg_to_ps() local
587 for (bufptr = buffer + 2, bufend = buffer + bytes; bufptr < bufend;) in jpeg_to_ps()
593 if (*bufptr == 0xff) in jpeg_to_ps()
595 bufptr ++; in jpeg_to_ps()
597 if (bufptr >= bufend) in jpeg_to_ps()
606 bufptr = buffer; in jpeg_to_ps()
610 if (*bufptr == 0xff) in jpeg_to_ps()
613 if ((bufptr + 16) >= bufend) in jpeg_to_ps()
619 bytes = bufend - bufptr; in jpeg_to_ps()
621 memmove(buffer, bufptr, (size_t)bytes); in jpeg_to_ps()
[all …]
/aosp_15_r20/packages/modules/adb/client/
Dusb_linux.cpp149 unsigned char* bufptr = devdesc; in find_usb_device() local
171 bufend = bufptr + desclength; in find_usb_device()
180 device = (struct usb_device_descriptor*)bufptr; in find_usb_device()
181 bufptr += USB_DT_DEVICE_SIZE; in find_usb_device()
192 config = (struct usb_config_descriptor *)bufptr; in find_usb_device()
193 bufptr += USB_DT_CONFIG_SIZE; in find_usb_device()
201 while (bufptr < bufend) { in find_usb_device()
202 unsigned char length = bufptr[0]; in find_usb_device()
203 unsigned char type = bufptr[1]; in find_usb_device()
206 interface = (struct usb_interface_descriptor *)bufptr; in find_usb_device()
[all …]
/aosp_15_r20/external/libcups/monitor/
H A Dtbcp.c153 char *bufptr; /* Pointer into buffer */ in psgets() local
159 bufptr = buf; in psgets()
162 while ((size_t)(bufptr - buf) < len) in psgets()
181 *bufptr++ = '\r'; in psgets()
187 *bufptr++ = (char)ch; in psgets()
196 if ((size_t)(bufptr - buf) < len) in psgets()
197 *bufptr++ = (char)ch; in psgets()
206 *bufptr = '\0'; in psgets()
207 *bytes = (size_t)(bufptr - buf); in psgets()
209 if (ch == EOF && bufptr == buf) in psgets()
H A Dbcp.c164 char *bufptr; /* Pointer into buffer */ in psgets() local
170 bufptr = buf; in psgets()
173 while ((size_t)(bufptr - buf) < len) in psgets()
192 *bufptr++ = '\r'; in psgets()
198 *bufptr++ = (char)ch; in psgets()
207 if ((size_t)(bufptr - buf) < len) in psgets()
208 *bufptr++ = (char)ch; in psgets()
217 *bufptr = '\0'; in psgets()
218 *bytes = (size_t)(bufptr - buf); in psgets()
220 if (ch == EOF && bufptr == buf) in psgets()
/aosp_15_r20/external/ltp/testcases/kernel/io/ltp-aiodio/
H A Ddio_truncate.c54 char *bufptr; in dio_read() local
59 bufptr = SAFE_MEMALIGN(align, bs); in dio_read()
68 r = read(fd, bufptr, 64 * 1024); in dio_read()
70 bufoff = check_zero(bufptr, r); in dio_read()
73 offset + (bufoff - bufptr)); in dio_read()
74 free(bufptr); in dio_read()
83 free(bufptr); in dio_read()
/aosp_15_r20/external/libcups/cgi-bin/
H A Dadmin.c1631 *bufptr, /* Pointer into buffer */ in do_config_server() local
1728 for (bufptr = buffer; in do_config_server()
1729 bufptr < bufend && (ch = cupsFileGetChar(cupsd)) != EOF;) in do_config_server()
1733 *bufptr++ = '\\'; in do_config_server()
1734 *bufptr++ = (char)ch; in do_config_server()
1738 *bufptr++ = '\\'; in do_config_server()
1739 *bufptr++ = 'n'; in do_config_server()
1743 *bufptr++ = '\\'; in do_config_server()
1744 *bufptr++ = 't'; in do_config_server()
1747 *bufptr++ = (char)ch; in do_config_server()
[all …]
/aosp_15_r20/external/libvpx/vp8/decoder/
H A Ddboolhuff.c39 const unsigned char *bufptr = br->user_buffer; in vp8dx_bool_decoder_fill() local
43 size_t bytes_left = br->user_buffer_end - bufptr; in vp8dx_bool_decoder_fill()
51 br->decrypt_cb(br->decrypt_state, bufptr, decrypted, (int)n); in vp8dx_bool_decoder_fill()
52 bufptr = decrypted; in vp8dx_bool_decoder_fill()
63 value |= (VP8_BD_VALUE)*bufptr << shift; in vp8dx_bool_decoder_fill()
64 ++bufptr; in vp8dx_bool_decoder_fill()
/aosp_15_r20/external/libgav1/src/utils/
H A Dcommon_test.cc57 auto* const bufptr = buf.get(); in TEST() local
58 ASSERT_EQ(reinterpret_cast<uintptr_t>(bufptr) % 1024, 0); in TEST()
65 EXPECT_EQ(AlignAddr(bufptr, alignment), bufptr); in TEST()
66 EXPECT_EQ(AlignAddr(bufptr + 1, alignment), bufptr + alignment); in TEST()
67 EXPECT_EQ(AlignAddr(bufptr + alignment + 1, alignment), in TEST()
68 bufptr + 2 * alignment); in TEST()
70 EXPECT_EQ(AlignAddr(bufptr + alignment - 1, alignment), in TEST()
71 bufptr + alignment); in TEST()
72 EXPECT_EQ(AlignAddr(bufptr + 2 * alignment - 1, alignment), in TEST()
73 bufptr + 2 * alignment); in TEST()

1234