/external/clang/test/CodeGen/ |
2003-11-26-PointerShift.c | 3 unsigned long do_csum(const unsigned char *buff, int len, unsigned long result) { 4 if (2 & (unsigned long) buff) result += 1;
|
/bootable/recovery/minadbd/ |
utils.c | 22 buff_addc (char* buff, char* buffEnd, int c) 24 int avail = buffEnd - buff; 27 return buff; 30 buff[0] = 0; 31 return buff + 1; 34 buff[0] = (char) c; /* add char and terminating zero */ 35 buff[1] = 0; 36 return buff + 1; 40 buff_adds (char* buff, char* buffEnd, const char* s) 44 return buff_addb(buff, buffEnd, s, slen) [all...] |
utils.h | 45 char* buff_addc (char* buff, char* buffEnd, int c); 48 char* buff_adds (char* buff, char* buffEnd, const char* s); 53 char* buff_addb (char* buff, char* buffEnd, const void* data, int len); 56 char* buff_add (char* buff, char* buffEnd, const char* format, ... );
|
/system/core/adb/ |
utils.c | 22 buff_addc (char* buff, char* buffEnd, int c) 24 int avail = buffEnd - buff; 27 return buff; 30 buff[0] = 0; 31 return buff + 1; 34 buff[0] = (char) c; /* add char and terminating zero */ 35 buff[1] = 0; 36 return buff + 1; 40 buff_adds (char* buff, char* buffEnd, const char* s) 44 return buff_addb(buff, buffEnd, s, slen) [all...] |
utils.h | 45 char* buff_addc (char* buff, char* buffEnd, int c); 48 char* buff_adds (char* buff, char* buffEnd, const char* s); 53 char* buff_addb (char* buff, char* buffEnd, const void* data, int len); 56 char* buff_add (char* buff, char* buffEnd, const char* format, ... );
|
/bionic/libc/bionic/ |
perror.c | 34 char buff[256]; local 36 strerror_r( errno, buff, sizeof(buff) ); 42 write( 2, buff, strlen(buff) );
|
ptsname.c | 37 static char buff[64]; local 42 snprintf( buff, sizeof(buff), "/dev/pts/%u", pty_num ); 43 return buff;
|
/external/valgrind/main/none/tests/s390x/ |
tr.c | 8 uint8_t buff[40]; variable 24 tr(tran_table, buff, len); 27 printf("%c", buff[i]); 35 run_test((char *)&touppercase, &buff, 0); 36 run_test((char *)&touppercase, &buff, 0); 39 memset(buff, 'a', 1); 40 run_test((char *)&touppercase, &buff, 1); 42 memcpy(buff, "abcdefgh", 8); 43 run_test((char *)&touppercase, &buff, 3); 44 run_test((char *)&touppercase, &buff, 3) [all...] |
cu21.c | 62 uint8_t buff[1000]; /* Large so we con'don't have to worry about it */ variable 135 /* No character will be written to BUFF, i.e. loop in jitted code 137 run_test(buff, sizeof buff, NULL, 1); 138 run_test(buff, sizeof buff, pattern1, 1); 139 run_test(buff, sizeof buff, pattern2, 1); 140 run_test(buff, sizeof buff, pattern3, 1) [all...] |
cu21_1.c | 62 uint8_t buff[1000]; /* Large so we con'don't have to worry about it */ variable 135 /* No character will be written to BUFF, i.e. loop in jitted code 137 run_test(buff, sizeof buff, NULL, 1); 138 run_test(buff, sizeof buff, pattern1, 1); 139 run_test(buff, sizeof buff, pattern2, 1); 140 run_test(buff, sizeof buff, pattern3, 1) [all...] |
cu24.c | 51 uint32_t buff[1000]; /* Large so we con'don't have to worry about it */ variable 129 /* No character will be written to BUFF, i.e. loop in jitted code 131 run_test(buff, sizeof buff, NULL, 1); 132 run_test(buff, sizeof buff, pattern1, 1); 133 run_test(buff, sizeof buff, pattern2, 1); 134 run_test(buff, sizeof buff, pattern2, 2) [all...] |
cu24_1.c | 51 uint32_t buff[1000]; /* Large so we con'don't have to worry about it */ variable 129 /* No character will be written to BUFF, i.e. loop in jitted code 131 run_test(buff, sizeof buff, NULL, 1); 132 run_test(buff, sizeof buff, pattern1, 1); 133 run_test(buff, sizeof buff, pattern2, 1); 134 run_test(buff, sizeof buff, pattern2, 2) [all...] |
cu12.c | 73 uint16_t buff[1000]; /* Large so we con'don't have to worry about it */ variable 163 run_test(buff, sizeof buff, valid, sizeof valid); 178 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); 190 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); 198 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); 216 run_test(buff, sizeof buff, valid, sizeof valid) [all...] |
cu12_1.c | 73 uint16_t buff[1000]; /* Large so we con'don't have to worry about it */ variable 163 run_test(buff, sizeof buff, valid, sizeof valid); 178 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); 190 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); 198 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); 216 run_test(buff, sizeof buff, valid, sizeof valid) [all...] |
cu14.c | 73 uint32_t buff[500]; /* Large so we con'don't have to worry about it */ variable 163 run_test(buff, sizeof buff, valid, sizeof valid); 178 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); 190 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); 198 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); 216 run_test(buff, sizeof buff, valid, sizeof valid) [all...] |
cu14_1.c | 73 uint32_t buff[500]; /* Large so we con'don't have to worry about it */ variable 163 run_test(buff, sizeof buff, valid, sizeof valid); 178 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); 190 run_test(buff, sizeof buff, invalid_char, sizeof invalid_char); 198 run_test(buff, sizeof buff, valid_invalid, sizeof valid_invalid); 216 run_test(buff, sizeof buff, valid, sizeof valid) [all...] |
cu41.c | 63 uint8_t buff[1000]; /* Large so we con'don't have to worry about it */ variable 138 /* No character will be written to BUFF, i.e. loop in jitted code 140 run_test(buff, sizeof buff, NULL, 0); 141 run_test(buff, sizeof buff, NULL, 1); 142 run_test(buff, sizeof buff, NULL, 2); 143 run_test(buff, sizeof buff, NULL, 3) [all...] |
/system/extras/tests/bionic/libc/common/ |
test_strftime_2039.c | 10 char buff[256]; local 17 if (strftime(buff, sizeof buff, "%s", &tm) == 0) { 21 printf("seconds since epoch: %s\n", buff); 24 if (buff[0] == '-') { 30 if (strftime(buff, sizeof buff, "%c", &tm) == 0) { 34 printf("date string : %s\n", buff);
|
test_libgen.c | 65 "KO: basename_r(\"%s\", <buff>, %d) returned %d (expected %d)\n", 73 "KO: basename_r(\"%s\", <buff>, %d) returned -1 with errno=%d (expected %d)\n", 81 "KO: basename_r(\"%s\", <buff>, %d) returned \"%s\", expected \"%s\"\n", 86 printf("OK: basename_r(\"%s\", <buff>, %d) returned \"%s\"\n", 98 "KO: dirname_r(\"%s\", <buff>, %d) returned %d (expected %d)\n", 106 "KO: dirname_r(\"%s\", <buff>, %d) returned -1 with errno=%d (expected %d)\n", 114 "KO: dirname_r(\"%s\", <buff>, %d) returned \"%s\", expected \"%s\"\n", 119 printf("OK: dirname_r(\"%s\", <buff>, %d) returned \"%s\"\n", 176 char buff[256]; local 188 test_basename_r( "", ".", -1, buff, 0, ERANGE ) [all...] |
/external/tagsoup/src/org/ccil/cowan/tagsoup/ |
PYXScanner.java | 48 char[] buff = null; local 52 if (buff == null || buff.length < size) { 53 buff = new char[size]; 55 s.getChars(0, size, buff, 0); 56 switch (buff[0]) { 59 h.stagc(buff, 0, 0); 62 h.gi(buff, 1, size - 1); 67 h.stagc(buff, 0, 0); 70 h.etag(buff, 1, size - 1) [all...] |
ScanHandler.java | 29 public void adup(char[] buff, int offset, int length) throws SAXException; 35 public void aname(char[] buff, int offset, int length) throws SAXException; 41 public void aval(char[] buff, int offset, int length) throws SAXException; 46 public void cdsect(char[] buff, int offset, int length) throws SAXException; 52 public void decl(char[] buff, int offset, int length) throws SAXException; 58 public void entity(char[] buff, int offset, int length) throws SAXException; 64 public void eof(char[] buff, int offset, int length) throws SAXException; 70 public void etag(char[] buff, int offset, int length) throws SAXException; 76 public void gi(char[] buff, int offset, int length) throws SAXException; 82 public void pcdata(char[] buff, int offset, int length) throws SAXException [all...] |
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/ |
Base64.java | 71 byte buff[] = new byte[4]; 86 buff[bpos++] = (byte) (c - 'A'); 90 buff[bpos++] = (byte) ((c - 'a') + 26); 94 buff[bpos++] = (byte) ((c - '0') + 52); 98 buff[bpos++] = 62; 102 buff[bpos++] = 63; 106 buff[bpos++] = 64; 117 if (buff[0] == 64) 120 if (buff[1] == 64) 123 if (buff[2] == 64 [all...] |
/external/libmtp/examples/ |
format.c | 29 char buff[2]; local 33 if ( fgets(buff, sizeof(buff), stdin) == NULL ) { 41 if (buff[0] == 'y') { 43 } else if (buff[0] == 'n') {
|
reset.c | 29 char buff[2]; local 33 if ( fgets(buff, sizeof(buff), stdin) == NULL ) { 41 if (buff[0] == 'y') { 43 } else if (buff[0] == 'n') {
|
/system/core/init/ |
bootchart.c | 50 unix_read(int fd, void* buff, int len) 53 do { ret = read(fd, buff, len); } while (ret < 0 && errno == EINTR); 58 unix_write(int fd, const void* buff, int len) 61 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR); 66 proc_read(const char* filename, char* buff, size_t buffsize) 71 len = unix_read(fd, buff, buffsize-1); 74 buff[len > 0 ? len : 0] = 0; 87 file_buff_open( FileBuff buff, const char* path ) 89 buff->count = 0; 90 buff->fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0755) 187 char buff[65]; local 216 char buff[1024]; local 255 char buff[1024]; local 302 char buff[4]; local 362 char buff[2]; local [all...] |