/external/libchrome/sandbox/linux/suid/ |
sandbox.c | 122 ssize_t bytes; local 124 bytes = read(sv[0], &msg, 1); 125 } while (bytes == -1 && errno == EINTR); 127 if (bytes == 0) 129 if (bytes != 1) 148 bytes = write(sv[0], &reply, 1); 149 } while (bytes == -1 && errno == EINTR); 151 if (bytes != 1)
|
/external/libcups/cups/ |
ppd-emit.c | 302 ssize_t bytes; /* Bytes written */ local 327 bytes = 0; 332 if ((bytes = (ssize_t)write(fd, bufptr, (unsigned)buflength)) < 0) 334 if ((bytes = write(fd, bufptr, buflength)) < 0) 343 buflength -= (size_t)bytes; 344 bufptr += bytes; 347 status = bytes < 0 ? -1 : 0; 643 * Count the number of bytes that are required to hold all of the 748 DEBUG_printf(("2ppdEmitString: Allocating %d bytes for string..." [all...] |
snmp-private.h | 65 unsigned char bytes[CUPS_SNMP_MAX_STRING]; member in struct:cups_snmp_string_s 66 /* Bytes in string */ 67 unsigned num_bytes; /* Number of bytes */
|
testhttp.c | 221 long bytes; /* Number of bytes read */ local 234 off_t length, total; /* Length and total bytes */ 858 while ((bytes = httpRead2(http, buffer, sizeof(buffer))) > 0) 860 total += bytes; 861 fwrite(buffer, (size_t)bytes, 1, out); 868 printf("\r" CUPS_LLFMT "/" CUPS_LLFMT " bytes (" 869 CUPS_LLFMT " bytes/sec) ", CUPS_LLCAST total,
|
util.c | 788 ssize_t bytes; /* Bytes in buffer */ local 850 (bytes = cupsFileRead(fp, buffer, sizeof(buffer))) > 0) 851 status = cupsWriteRequestData(http, buffer, (size_t)bytes);
|
/external/libdrm/omap/ |
omap_drm.h | 68 uint32_t bytes; /* (for non-tiled formats) */ member in union:omap_gem_size
|
/external/libevent/ |
arc4random.c | 70 /* Add platform entropy 32 bytes (256 bits) at a time. */ 73 /* Re-seed from the platform RNG after generating this many bytes. */ 261 int bytes, n, i, nybbles; local 262 for (bytes = 0; bytes<ADD_ENTROPY; ) { 285 bytes += nybbles/2; 392 * we drop at least 2*256 bytes, with 12*256 as a conservative 472 /* arc4_addrandom() ignores all but the first 256 bytes of
|
bufferevent_async.c | 398 DWORD bytes, flags; local 402 WSAGetOverlappedResult(fd, &eo->overlapped, &bytes, FALSE, &flags);
|
event_tagging.c | 111 * have at least 5 bytes free. 112 * @return the number of bytes written into data. 174 int bytes = 0; local 185 data[bytes++] = lower; 189 evbuffer_add(evbuf, data, bytes); 191 return (bytes); 244 * tag number: one byte; length: var bytes; payload: var bytes
|
/external/libjpeg-turbo/simd/ |
jccolext-altivec.c | 77 /* Load 16 pixels == 48 or 64 bytes */ 81 int bytes = num_cols + offset; local 83 if (bytes < (RGB_PIXELSIZE + 1) * 16 && (bytes & 15)) { 87 * boundary. It could also occur on other rows if the bytes per row 101 if (bytes > 16) 103 if (bytes > 32) 105 if (bytes > 48) 108 if (bytes > 64)
|
/external/liblzf/ |
lzf.c | 226 ssize_t rc, cs, us, bytes, over = 0; local 271 bytes = cs == -1 ? us : cs; 277 if (l > bytes) 279 over = l - bytes; 280 memmove (header, &p[bytes], over); 284 rd = bytes - l;
|
/external/libmojo/base/android/ |
jni_array_unittest.cc | 24 ScopedJavaLocalRef<jbyteArray> bytes = ToJavaByteArray(env, kBytes, kLen); local 25 ASSERT_TRUE(bytes.obj()); 34 JavaByteArrayToByteVector(env, bytes.obj(), &vectorFromBytes); 42 AppendJavaByteArrayToByteVector(env, bytes.obj(), &vectorFromBytes);
|
/external/libogg/include/ogg/ |
ogg.h | 54 unsigned char *body_data; /* bytes from packet bodies */ 92 long bytes; member in struct:__anon23919 125 extern void oggpack_readinit(oggpack_buffer *b,unsigned char *buf,int bytes); 144 extern void oggpackB_readinit(oggpack_buffer *b,unsigned char *buf,int bytes); 173 extern int ogg_sync_wrote(ogg_sync_state *oy, long bytes);
|
/external/libpng/contrib/gregbook/ |
wpng.c | 704 ulg bytes; local 717 bytes = fread(wpng_info.image_data, 1, image_bytes, wpng_info.infile); 718 if (bytes != image_bytes) { 719 fprintf(stderr, PROGNAME ": expected %lu bytes, got %lu bytes\n", 720 image_bytes, bytes); 733 ulg bytes; local 744 bytes = fread(wpng_info.image_data, 1, rowbytes, wpng_info.infile); 745 if (bytes != rowbytes) { 747 ": expected %lu bytes, got %lu bytes (row %ld)\n", rowbytes [all...] |
/external/libtextclassifier/lang_id/ |
lang-id.cc | 67 // Returns total number of bytes of the words from sentence, without the ^ 87 // Using mmap as a fast way to read the model bytes. 91 TC_LOG(ERROR) << "Unable to read model bytes."; 99 // Using mmap as a fast way to read the model bytes. 103 TC_LOG(ERROR) << "Unable to read model bytes."; 250 StringPiece bytes = model_data.GetBytesForInputFile(input_file_name); local 251 if (bytes.data() == nullptr) { 252 TC_LOG(ERROR) << "Unable to get bytes for TaskInput " << input_name; 256 if (!ParseProtoFromMemory(bytes, proto.get())) { 282 StringPiece bytes = model_data.GetBytesForInputFile(input_file_name) local [all...] |
/external/libvorbis/lib/ |
info.c | 48 static void _v_writestring(oggpack_buffer *o,const char *s, int bytes){ 50 while(bytes--){ 55 static void _v_readstring(oggpack_buffer *o,char *buf,int bytes){ 56 while(bytes--){ 355 oggpack_readinit(&opb,op->packet,op->bytes); 383 oggpack_readinit(&opb,op->packet,op->bytes); 462 int bytes = strlen(ENCODE_VENDOR_STRING); local 469 oggpack_write(opb,bytes,32); 470 _v_writestring(opb,ENCODE_VENDOR_STRING, bytes); 558 op->bytes=oggpack_bytes(&opb) [all...] |
psytune.c | 293 /* we cheat on the WAV header; we just bypass 44 bytes and never 305 long bytes=fread(buffer2,1,framesize*2,stdin); local 306 if(bytes<framesize*2) 307 memset(buffer2+bytes,0,framesize*2-bytes); 309 if(bytes!=0){
|
/external/ltp/testcases/kernel/ipc/ipc_stress/ |
pipe_test_02.c | 97 "\t-b totmegs number of bytes to send through pipe\n" \ 153 int mflg = 0; /* Data quantity flag (bytes) */ 174 int n; /* Number of bytes written */ 267 ("\n\tParent: sending %ld packets (%ld bytes) to child processes ...\n", 387 int n; /* Bytes read */ 519 int bytes = 0, megabytes = 0; local 532 case 'b': /* bytes */ 534 bytes = atoi(optarg); 547 num_packets = bytes / sizeof(struct data_packet);
|
shmem_test_04.c | 108 "\t-b totbytes Length in bytes\n" \ 567 int bytes = 0, megabytes = 0; local 589 case 'b': /* length in bytes */ 591 bytes = atoi(optarg); 652 bytes = pgspblks * PAGE_SIZE; 659 * Determine size of region to map in bytes for each process. 664 length = bytes;
|
/external/ltp/testcases/network/sockets/ |
ltpClient.c | 70 void output_to_display(void *netPacket, int bytes, int pid); 382 int bytes; local 387 bytes = 391 if (bytes > 0) 392 output_to_display(packet, bytes, pid); 439 void output_to_display(void *netPacket, int bytes, int pid) 450 for (i = 0; i < bytes; i++) {
|
/external/mesa3d/src/gallium/drivers/i915/ |
i915_debug.c | 905 unsigned long bytes = (unsigned long) (end - start) * 4; local 917 debug_printf( "\n\nBATCH: (%d)\n", (int)bytes / 4); 920 stream.offset < bytes) 925 assert(stream.offset <= bytes &&
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_setup_point.c | 323 unsigned bytes; local 360 &bytes);
|
/external/mesa3d/src/gallium/drivers/nvc0/ |
nvc0_transfer.c | 279 unsigned bytes = MIN2(size, 1 << 17); local 288 PUSH_DATA (push, bytes); 294 srcoff += bytes; 295 dstoff += bytes; 296 size -= bytes;
|
/external/mesa3d/src/gallium/drivers/radeon/MCTargetDesc/ |
SIMCCodeEmitter.cpp | 111 ///getEncodingBytes - Get then size in bytes of this instructions encoding. 134 unsigned bytes = getEncodingBytes(MI); local 135 for (unsigned i = 0; i < bytes; i++) {
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
i915_debug.c | 820 GLuint bytes = (end - start) * 4; local 823 printf("\n\nBATCH: (%d)\n", bytes / 4); 830 stream.offset < bytes && 836 assert(stream.offset <= bytes &&
|