/external/libcups/cups/ |
D | snprintf.c | 34 char *bufptr, /* Pointer to position in buffer */ in _cups_vsnprintf() local 54 bufptr = buffer; in _cups_vsnprintf() 67 if (bufptr && bufptr < bufend) *bufptr++ = *format; in _cups_vsnprintf() 184 if (bufptr) in _cups_vsnprintf() 186 if ((bufptr + templen) > bufend) in _cups_vsnprintf() 188 strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); in _cups_vsnprintf() 189 bufptr = bufend; in _cups_vsnprintf() 193 memcpy(bufptr, temp, templen + 1); in _cups_vsnprintf() 194 bufptr += templen; in _cups_vsnprintf() 215 if (bufptr) in _cups_vsnprintf() [all …]
|
D | ipp-support.c | 622 char *bufptr, /* Pointer into buffer */ in ippAttributeString() local 638 bufptr = buffer; in ippAttributeString() 648 if (buffer && bufptr < bufend) in ippAttributeString() 649 *bufptr++ = ','; in ippAttributeString() 651 bufptr ++; in ippAttributeString() 659 if (buffer && bufptr < bufend) in ippAttributeString() 660 strlcpy(bufptr, ptr, (size_t)(bufend - bufptr + 1)); in ippAttributeString() 662 bufptr += strlen(ptr); in ippAttributeString() 666 if (buffer && bufptr < bufend) in ippAttributeString() 667 bufptr += snprintf(bufptr, (size_t)(bufend - bufptr + 1), "%d", val->integer); in ippAttributeString() [all …]
|
D | debug.c | 336 char *bufptr, /* Pointer to position in buffer */ in _cups_safe_vsnprintf() local 356 bufptr = buffer; in _cups_safe_vsnprintf() 369 if (bufptr < bufend) in _cups_safe_vsnprintf() 370 *bufptr++ = *format; in _cups_safe_vsnprintf() 481 if (bufptr) in _cups_safe_vsnprintf() 483 strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); in _cups_safe_vsnprintf() 484 bufptr += strlen(bufptr); in _cups_safe_vsnprintf() 511 if (bufptr) in _cups_safe_vsnprintf() 513 strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); in _cups_safe_vsnprintf() 514 bufptr += strlen(bufptr); in _cups_safe_vsnprintf() [all …]
|
D | ppd-emit.c | 300 *bufptr; /* Pointer into code */ in ppdEmitFd() local 326 bufptr = buffer; in ppdEmitFd() 332 if ((bytes = (ssize_t)write(fd, bufptr, (unsigned)buflength)) < 0) in ppdEmitFd() 334 if ((bytes = write(fd, bufptr, buflength)) < 0) in ppdEmitFd() 344 bufptr += bytes; in ppdEmitFd() 614 *bufptr, /* Pointer into buffer */ in ppdEmitString() local 764 for (i = 0, bufptr = buffer; i < count; i ++, bufptr += strlen(bufptr)) in ppdEmitString() 780 for (cptr = choices[i]->code; *cptr && bufptr < bufend;) in ppdEmitString() 810 bufptr = _cupsStrFormatd(bufptr, bufend, in ppdEmitString() 816 snprintf(bufptr, (size_t)(bufend - bufptr), "%d", cparam->current.custom_int); in ppdEmitString() [all …]
|
D | dest-localization.c | 487 char *bufptr; /* Pointer into buffer */ in cups_read_strings() local 496 bufptr = cups_scan_strings(buffer); in cups_read_strings() 498 if (*bufptr != '\"') in cups_read_strings() 501 *bufptr++ = '\0'; in cups_read_strings() 503 while (*bufptr && *bufptr != '\"') in cups_read_strings() 504 bufptr ++; in cups_read_strings() 506 if (!*bufptr) in cups_read_strings() 509 *str = bufptr + 1; in cups_read_strings() 510 bufptr = cups_scan_strings(bufptr); in cups_read_strings() 512 if (*bufptr != '\"') in cups_read_strings() [all …]
|
D | snmp.c | 931 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 …]
|
D | string.c | 212 char *bufptr, /* Pointer into buffer */ in _cupsStrFormatd() local 256 for (tempptr = temp, bufptr = buf; in _cupsStrFormatd() 257 tempptr < tempdec && bufptr < bufend; in _cupsStrFormatd() 258 *bufptr++ = *tempptr++); in _cupsStrFormatd() 262 if (*tempptr && bufptr < bufend) in _cupsStrFormatd() 264 *bufptr++ = '.'; in _cupsStrFormatd() 266 while (*tempptr && bufptr < bufend) in _cupsStrFormatd() 267 *bufptr++ = *tempptr++; in _cupsStrFormatd() 270 *bufptr = '\0'; in _cupsStrFormatd() 275 bufptr = buf + strlen(buf); in _cupsStrFormatd() [all …]
|
D | ipp.c | 1157 *bufptr; /* Pointer into buffer */ in ippAddStringfv() local 1159 bufptr = buffer + strlen(buffer) - 1; in ippAddStringfv() 1162 while (bufptr > bufmax) in ippAddStringfv() 1164 if (*bufptr & 0x80) in ippAddStringfv() 1166 while ((*bufptr & 0xc0) == 0x80 && bufptr > buffer) in ippAddStringfv() 1167 bufptr --; in ippAddStringfv() 1170 bufptr --; in ippAddStringfv() 1173 *bufptr = '\0'; in ippAddStringfv() 2873 *bufptr; /* Pointer into buffer */ in ippReadIO() local 3442 bufptr = buffer; in ippReadIO() [all …]
|
D | ppd-attr.c | 146 char *bufptr; /* Pointer into buffer */ in _ppdNormalizeMakeAndModel() local 172 if ((bufptr = strrchr(buffer, ')')) != NULL) in _ppdNormalizeMakeAndModel() 173 *bufptr = '\0'; in _ppdNormalizeMakeAndModel() 307 for (bufptr = buffer + strlen(buffer) - 1; in _ppdNormalizeMakeAndModel() 308 bufptr >= buffer && _cups_isspace(*bufptr); in _ppdNormalizeMakeAndModel() 309 bufptr --); in _ppdNormalizeMakeAndModel() 311 bufptr[1] = '\0'; in _ppdNormalizeMakeAndModel()
|
D | ppd-localize.c | 246 *bufptr, /* Pointer into buffer */ in ppdLocalizeIPPReason() local 363 for (valptr = locattr->value, bufptr = buffer; *valptr && bufptr < bufend;) in ppdLocalizeIPPReason() 373 while (*valptr && !_cups_isspace(*valptr) && bufptr < bufend) in ppdLocalizeIPPReason() 391 *bufptr++ = (char)(ch | (*valptr - '0')); in ppdLocalizeIPPReason() 393 *bufptr++ = (char)(ch | (tolower(*valptr) - 'a' + 10)); in ppdLocalizeIPPReason() 398 *bufptr++ = ' '; in ppdLocalizeIPPReason() 402 *bufptr++ = *valptr++; in ppdLocalizeIPPReason() 423 if (bufptr > buffer) in ppdLocalizeIPPReason() 424 *bufptr = '\0'; in ppdLocalizeIPPReason() 438 for (valptr = locattr->value, bufptr = buffer; *valptr && bufptr < bufend;) in ppdLocalizeIPPReason() [all …]
|
D | tls-boringssl.c | 183 char *bufptr, /* Pointer into buffer */ in http_bssl_make_path() local 188 bufptr = buffer + strlen(buffer); in http_bssl_make_path() 190 while (*filename && bufptr < bufend) in http_bssl_make_path() 193 *bufptr++ = *filename; in http_bssl_make_path() 195 *bufptr++ = '_'; in http_bssl_make_path() 200 if (bufptr < bufend) in http_bssl_make_path() 201 *bufptr++ = '.'; in http_bssl_make_path() 203 strlcpy(bufptr, ext, (size_t)(bufend - bufptr + 1)); in http_bssl_make_path()
|
D | getifaddrs.c | 31 *bufptr, /* Pointer into buffer */ in _cups_getifaddrs() local 86 for (bufptr = buffer, bufend = buffer + conf.ifc_len; in _cups_getifaddrs() 87 bufptr < bufend; in _cups_getifaddrs() 88 bufptr += ifpsize) in _cups_getifaddrs() 94 ifp = (struct ifreq *)bufptr; in _cups_getifaddrs()
|
D | langprintf.c | 34 *bufptr, /* Pointer into buffer */ in _cupsLangPrintError() local 68 bufptr = buffer + strlen(buffer); in _cupsLangPrintError() 71 bufptr = buffer; in _cupsLangPrintError() 73 snprintf(bufptr, sizeof(buffer) - (size_t)(bufptr - buffer), in _cupsLangPrintError()
|
D | hash.c | 294 char *bufptr = buffer; /* Pointer into buffer */ in cupsHashString() local 316 *bufptr++ = hex[*hash >> 4]; in cupsHashString() 317 *bufptr++ = hex[*hash & 15]; in cupsHashString() 323 *bufptr = '\0'; in cupsHashString()
|
/external/libcups/filter/ |
D | commandtops.c | 135 *bufptr; /* Pointer into buffer */ in auto_configure() local 219 for (bufptr = buffer, valptr = attr->value; *valptr; valptr ++) in auto_configure() 227 *bufptr = '\0'; in auto_configure() 229 bufptr = buffer; in auto_configure() 233 if (bufptr >= (buffer + sizeof(buffer) - 4)) in auto_configure() 235 *bufptr = '\0'; in auto_configure() 237 bufptr = buffer; in auto_configure() 242 *bufptr++ = '\\'; in auto_configure() 243 *bufptr++ = 'r'; in auto_configure() 247 *bufptr++ = '\\'; in auto_configure() [all …]
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | dio_truncate.c | 72 void *bufptr; in dio_read() local 74 TEST(posix_memalign(&bufptr, 4096, 64 * 1024)); in dio_read() 90 r = read(fd, bufptr, 64 * 1024); in dio_read() 92 if ((bufoff = check_zero(bufptr, r))) { in dio_read() 108 void *bufptr; in dio_append() local 119 TEST(posix_memalign(&bufptr, 4096, 64 * 1024)); in dio_append() 126 memset(bufptr, fill, 64 * 1024); in dio_append() 129 if ((w = write(fd, bufptr, 64 * 1024)) != 64 * 1024) { in dio_append()
|
D | dio_append.c | 81 void *bufptr; in dio_append() local 92 TEST(posix_memalign(&bufptr, 4096, 64 * 1024)); in dio_append() 99 memset(bufptr, 0, 64 * 1024); in dio_append() 101 if ((w = write(fd, bufptr, 64 * 1024)) != 64 * 1024) { in dio_append()
|
D | aiodio_append.c | 80 void *bufptr; in aiodio_append() local 100 TEST(posix_memalign(&bufptr, 4096, AIO_SIZE)); in aiodio_append() 105 memset(bufptr, 0, AIO_SIZE); in aiodio_append() 106 io_prep_pwrite(&iocb_array[i], fd, bufptr, AIO_SIZE, offset); in aiodio_append()
|
D | dio_sparse.c | 60 void *bufptr; in dio_sparse() local 63 TEST(posix_memalign(&bufptr, align, writesize)); in dio_sparse() 69 memset(bufptr, 0, writesize); in dio_sparse() 72 if ((w = write(fd, bufptr, writesize)) != writesize) { in dio_sparse()
|
/external/libvpx/libvpx/vp8/decoder/ |
D | dboolhuff.c | 35 const unsigned char *bufptr = br->user_buffer; in vp8dx_bool_decoder_fill() local 39 size_t bytes_left = br->user_buffer_end - bufptr; in vp8dx_bool_decoder_fill() 47 br->decrypt_cb(br->decrypt_state, bufptr, decrypted, (int)n); in vp8dx_bool_decoder_fill() 48 bufptr = decrypted; in vp8dx_bool_decoder_fill() 59 value |= (VP8_BD_VALUE)*bufptr << shift; in vp8dx_bool_decoder_fill() 60 ++bufptr; in vp8dx_bool_decoder_fill()
|
/external/ltp/testcases/kernel/io/aio/aio02/ |
D | aio_tio.c | 94 void *bufptr = NULL; in io_tio() local 115 if (posix_memalign(&bufptr, alignment, AIO_BLKSIZE)) { in io_tio() 119 memset(bufptr, 0, AIO_BLKSIZE); in io_tio() 121 io_prep_pwrite(&iocb_array[i], fd, bufptr, in io_tio() 129 if (posix_memalign(&bufptr, alignment, AIO_BLKSIZE)) { in io_tio() 133 memset(bufptr, 0, AIO_BLKSIZE); in io_tio() 135 io_prep_pread(&iocb_array[i], fd, bufptr, in io_tio()
|
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/ |
D | 2008-09-29-ReMatBug.ll | 32 %bufptr.0.lcssa = phi i8* [ null, %bb6 ], [ null, %bb37 ] ; <i8*> [#uses=2] 42 %8 = getelementptr i8* %bufptr.0.lcssa, i32 %totalLength.0.ph ; <i8*> [#uses=1] 62 %bufptr.1.ph = phi i8* [ null, %bb4 ], [ %bufptr.0.lcssa, %bb35 ] ; <i8*> [#uses=2] 71 %12 = icmp eq i8* null, %bufptr.1.ph ; <i1> [#uses=1] 75 call void @quux(i8* %bufptr.1.ph) nounwind nounwind
|
/external/llvm/test/CodeGen/X86/ |
D | 2008-09-29-ReMatBug.ll | 32 %bufptr.0.lcssa = phi i8* [ null, %bb6 ], [ null, %bb37 ] ; <i8*> [#uses=2] 42 %8 = getelementptr i8, i8* %bufptr.0.lcssa, i32 %totalLength.0.ph ; <i8*> [#uses=1] 62 %bufptr.1.ph = phi i8* [ null, %bb4 ], [ %bufptr.0.lcssa, %bb35 ] ; <i8*> [#uses=2] 71 %12 = icmp eq i8* null, %bufptr.1.ph ; <i1> [#uses=1] 75 call void @quux(i8* %bufptr.1.ph) nounwind nounwind
|
/external/llvm/test/CodeGen/Thumb2/ |
D | setjmp_longjmp.ll | 46 %bufptr = bitcast [5 x i8*]* %buf to i8* 55 %setjmpres = call i32 @llvm.eh.sjlj.setjmp(i8* %bufptr) 65 call void @llvm.eh.sjlj.longjmp(i8* %bufptr) 74 %setjmpres2 = call i32 @llvm.eh.sjlj.setjmp(i8* %bufptr) 84 call void @llvm.eh.sjlj.longjmp(i8* %bufptr)
|
/external/clang/test/CodeGen/ |
D | globalinit.c | 24 static char *bufptr = buf; in test() local 26 return c ? buf : bufptr; in test()
|