/third_party/musl/libc-test/src/functionalext/supplement/malloc/ |
H A D | memalign.c | 30 void *buff = (void *)memalign(align, 8 * align); in memalign_0100() local 31 EXPECT_TRUE("memalign_0100", buff != NULL); in memalign_0100() 32 free(buff); in memalign_0100() 33 buff = NULL; in memalign_0100() 45 void *buff = NULL; in memalign_0200() local 46 buff = (void *)memalign(align, 8 * align); in memalign_0200() 47 EXPECT_TRUE("memalign_0200", buff != NULL); in memalign_0200() 48 free(buff); in memalign_0200() 49 buff = NULL; in memalign_0200() 62 void *buff in memalign_0300() local 78 void *buff = (void *)memalign(align, SIZE_MAX - align + 1); memalign_0400() local 93 void *buff = (void *)memalign(align, align * 1024); memalign_0500() local [all...] |
/third_party/ltp/testcases/kernel/syscalls/statx/ |
H A D | statx01.c | 101 struct statx buff; in test_normal_file() local 103 TEST(statx(AT_FDCWD, TESTFILE, 0, 0, &buff)); in test_normal_file() 106 "statx(AT_FDCWD, %s, 0, 0, &buff)", TESTFILE); in test_normal_file() 109 "statx(AT_FDCWD, %s, 0, 0, &buff)", TESTFILE); in test_normal_file() 111 if (geteuid() == buff.stx_uid) in test_normal_file() 112 tst_res(TPASS, "stx_uid(%u) is correct", buff.stx_uid); in test_normal_file() 115 buff.stx_uid, geteuid()); in test_normal_file() 117 if (getegid() == buff.stx_gid) in test_normal_file() 118 tst_res(TPASS, "stx_gid(%u) is correct", buff.stx_gid); in test_normal_file() 121 buff in test_normal_file() 159 struct statx buff; test_device_file() local [all...] |
/third_party/node/deps/npm/node_modules/socks/build/client/ |
H A D | socksclient.js | 158 const buff = new smart_buffer_1.SmartBuffer(); 159 buff.writeUInt16BE(0); 160 buff.writeUInt8(options.frameNumber || 0); 163 buff.writeUInt8(constants_1.Socks5HostType.IPv4); 164 buff.writeUInt32BE((0, helpers_1.ipv4ToInt32)(options.remoteHost.host)); 167 buff.writeUInt8(constants_1.Socks5HostType.IPv6); 168 buff.writeBuffer((0, helpers_1.ipToBuffer)(options.remoteHost.host)); 171 buff.writeUInt8(constants_1.Socks5HostType.Hostname); 172 buff.writeUInt8(Buffer.byteLength(options.remoteHost.host)); 173 buff [all...] |
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
H A D | ecma-builtin-number-prototype.c | 402 JMEM_DEFINE_LOCAL_ARRAY (buff, buff_size, lit_utf8_byte_t); in ecma_builtin_number_prototype_object_to_string() 409 buff[buff_index++] = (lit_utf8_byte_t) (whole % radix); in ecma_builtin_number_prototype_object_to_string() 416 lit_utf8_byte_t swap = buff[i]; in ecma_builtin_number_prototype_object_to_string() 417 buff[i] = buff[buff_index - i - 1]; in ecma_builtin_number_prototype_object_to_string() 418 buff[buff_index - i - 1] = swap; in ecma_builtin_number_prototype_object_to_string() 445 buff[buff_index++] = digit; in ecma_builtin_number_prototype_object_to_string() 453 if (buff[buff_index] > radix / 2) in ecma_builtin_number_prototype_object_to_string() 456 buff[buff_index - 1]++; in ecma_builtin_number_prototype_object_to_string() 459 for (int i = buff_index - 1; i > 0 && buff[ in ecma_builtin_number_prototype_object_to_string() [all...] |
/third_party/FatFs/source/ |
H A D | diskio.c | 83 BYTE *buff, /* Data buffer to store read data */
in disk_read() 91 result = los_part_read((int)pdrv, (void *)buff, sector, (UINT32)count, TRUE);
in disk_read() 98 return (DRESULT)g_diskDrv.drv[pdrv]->disk_read(g_diskDrv.lun[pdrv], buff, sector, count);
in disk_read() 105 BYTE *buff, /* Data buffer to store read data */
in disk_read_readdir() 112 result = los_part_read((int)pdrv, (void *)buff, sector, (UINT32)count, FALSE);
in disk_read_readdir() 123 DRESULT disk_raw_read (int id, void *buff, LBA_t sector, UINT32 count)
in disk_raw_read() argument 127 result = los_disk_read(id, buff, sector, count, TRUE);
in disk_raw_read() 146 const BYTE *buff, /* Data to be written */
in disk_write() 154 result = los_part_write((int)pdrv, (void *)buff, sector, (UINT32)count);
in disk_write() 161 return (DRESULT)g_diskDrv.drv[pdrv]->disk_write(g_diskDrv.lun[pdrv], buff, secto in disk_write() 81 disk_read( BYTE pdrv, BYTE *buff, LBA_t sector, UINT count ) disk_read() argument 103 disk_read_readdir( BYTE pdrv, BYTE *buff, LBA_t sector, UINT count ) disk_read_readdir() argument 144 disk_write( BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count ) disk_write() argument 166 disk_raw_write(int id, void *buff, QWORD sector, UINT32 count) disk_raw_write() argument [all...] |
H A D | diskio.h | 40 DRESULT disk_read (BYTE pdrv, BYTE* buff, LBA_t sector, UINT count);
41 DRESULT disk_write (BYTE pdrv, const BYTE* buff, LBA_t sector, UINT count);
43 DRESULT disk_read_readdir (BYTE pdrv, BYTE* buff, LBA_t sector, UINT count);
44 DRESULT disk_raw_read (int id, void* buff, LBA_t sector, UINT32 count);
45 DRESULT disk_raw_write (int id, void* buff, LBA_t sector, UINT32 count);
47 DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
49 DRESULT disk_read_readdir (BYTE pdrv, BYTE* buff, LBA_t sector, UINT count);
|
/third_party/icu/tools/colprobe/ |
H A D | line.cpp | 85 Line::Line(const char *buff, int32_t buffLen, UErrorCode &status) : in Line() argument 91 initFromString(buff, buffLen, status); in Line() 512 Line::write(char *buff, int32_t, UErrorCode &) in write() argument 539 sprintf(buff+resLen, "%04X", name[0]); in write() 542 sprintf(buff+resLen, " %04X", name[i]); in write() 545 sprintf(buff+resLen, "/"); in write() 550 sprintf(buff+resLen, "%04X", expansionString[0]); in write() 553 sprintf(buff+resLen, " %04X", expansionString[i]); in write() 557 sprintf(buff+resLen, "; "); in write() 560 sprintf(buff in write() 589 initFromString(const char *buff, int32_t, UErrorCode &) initFromString() argument 659 UChar buff[256]; swapCase() local 688 char *buff = buffer; dumpSortkey() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | sdp.c | 60 static void sdp_write_address(char *buff, int size, const char *dest_addr, in sdp_write_address() argument 69 av_strlcatf(buff, size, "c=IN %s %s/%d\r\n", dest_type, dest_addr, ttl); in sdp_write_address() 71 av_strlcatf(buff, size, "c=IN %s %s\r\n", dest_type, dest_addr); in sdp_write_address() 76 static void sdp_write_header(char *buff, int size, struct sdp_session_level *s) in sdp_write_header() argument 78 av_strlcatf(buff, size, "v=%d\r\n" in sdp_write_header() 84 sdp_write_address(buff, size, s->dst_addr, s->dst_type, s->ttl); in sdp_write_header() 85 av_strlcatf(buff, size, "t=%d %d\r\n" in sdp_write_header() 143 char buff[64]; in sdp_get_address() local 145 if (av_find_info_tag(buff, sizeof(buff), "tt in sdp_get_address() 511 sdp_write_media_attributes(char *buff, int size, const AVStream *st, int payload_type, AVFormatContext *fmt) sdp_write_media_attributes() argument 811 ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx, const char *dest_addr, const char *dest_type, int port, int ttl, AVFormatContext *fmt) ff_sdp_write_media() argument 915 ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx, const char *dest_addr, const char *dest_type, int port, int ttl, AVFormatContext *fmt) ff_sdp_write_media() argument [all...] |
H A D | rtpenc.h | 89 void ff_rtp_send_aac(AVFormatContext *s1, const uint8_t *buff, int size); 90 void ff_rtp_send_latm(AVFormatContext *s1, const uint8_t *buff, int size); 91 void ff_rtp_send_amr(AVFormatContext *s1, const uint8_t *buff, int size); 93 void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size); 95 void ff_rtp_send_vp8(AVFormatContext *s1, const uint8_t *buff, int size); 96 void ff_rtp_send_vp9(AVFormatContext *s1, const uint8_t *buff, int size); 97 void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buff, int size);
|
/third_party/node/benchmark/buffers/ |
H A D | buffer-write.js | 74 const buff = buf === 'fast' ? 80 benchSpecialInt(buff, fn, n); 82 benchBigInt(buff, fn, BigInt(n)); 84 benchInt(buff, fn, n); 86 benchFloat(buff, fn, n); 89 function benchBigInt(buff, fn, n) { 93 buff[fn](i & m, 0); 98 function benchInt(buff, fn, n) { 102 buff[fn](i & m, 0); 107 function benchSpecialInt(buff, f [all...] |
/third_party/node/deps/v8/src/debug/wasm/gdb-server/ |
H A D | target.cc | 57 char buff[16]; in InitQueryPropertyMap() local 58 snprintf(buff, sizeof(buff), "QC%x", kThreadId); in InitQueryPropertyMap() 59 query_properties_["C"] = buff; in InitQueryPropertyMap() 320 uint8_t buff[Transport::kBufSize]; in ProcessPacket() local 323 gdb_server_->GetWasmModuleBytes(wasm_addr, buff, length); in ProcessPacket() 325 pkt_out->AddBlock(buff, read); in ProcessPacket() 532 uint8_t buff[16]; in ProcessQueryPacket() local 534 if (gdb_server_->GetWasmGlobal(frame_index, index, buff, 16, &size)) { in ProcessQueryPacket() 535 pkt_out->AddBlock(buff, siz in ProcessQueryPacket() 553 uint8_t buff[16]; ProcessQueryPacket() local 574 uint8_t buff[16]; ProcessQueryPacket() local 597 uint8_t buff[Transport::kBufSize]; ProcessQueryPacket() local 621 uint8_t buff[Transport::kBufSize]; ProcessQueryPacket() local 656 char buff[64]; SetStopReply() local [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | fchown.c | 38 struct stat buff; in fchown_0100() local 40 stat("test.txt", &buff); in fchown_0100() 41 EXPECT_EQ("fchown_0100", buff.st_uid, COUNT_ZERO); in fchown_0100() 55 struct stat buff; in fchown_0200() local 57 stat("test.txt", &buff); in fchown_0200() 58 EXPECT_EQ("fchown_0200", buff.st_uid, COUNT_ZERO); in fchown_0200() 72 struct stat buff; in fchown_0300() local 74 stat("test.txt", &buff); in fchown_0300() 75 EXPECT_EQ("fchown_0300", buff.st_gid, COUNT_ZERO); in fchown_0300()
|
/third_party/ltp/testcases/kernel/io/ltp-aiodio/ |
H A D | common.h | 60 char buff[4096]; in io_read() local 76 for (i = 0; i < filesize + 1; i += sizeof(buff)) { in io_read() 77 r = SAFE_READ(0, fd, buff, sizeof(buff)); in io_read() 79 bufoff = check_zero(buff, r); in io_read() 83 offset + (bufoff - buff)); in io_read() 101 char buff[4096]; in io_read_eof() local 116 r = SAFE_READ(0, fd, buff, sizeof(buff)); in io_read_eof() 118 bufoff = check_zero(buff, in io_read_eof() [all...] |
/third_party/toybox/toys/pending/ |
H A D | getty.c | 43 char buff[128]; 188 size = readall(STDIN_FILENO, TT.buff, sizeof(TT.buff)-1); in sense_baud() 190 for (ptr = TT.buff; ptr < TT.buff+size; ptr++) { in sense_baud() 221 char buff[20] = {0,}; in write_issue() local 227 while ((size = readall(fd, buff, 1)) > 0) { in write_issue() 228 char *ch = buff; in write_issue() 231 if (readall(fd, buff, 1) <= 0) perror_exit("readall"); in write_issue() 250 TT.buff[ in read_login_name() [all...] |
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/ |
H A D | epoll_wait06.c | 60 char buff[write_size]; in run() local 78 memset(buff, 'a', write_size); in run() 79 SAFE_WRITE(SAFE_WRITE_ANY, fds[1], buff, write_size); in run() 80 TST_EXP_FAIL(write(fds[1], buff, write_size), EAGAIN, "write() failed"); in run() 88 memset(buff, 0, write_size); in run() 89 SAFE_READ(1, fds[0], buff, read_size); in run() 95 SAFE_READ(1, fds[0], buff + read_size, read_size); in run() 96 TST_EXP_FAIL(read(fds[0], buff, read_size), EAGAIN, "read() failed"); in run()
|
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
H A D | inet_addr.c | 28 char buff[] = "127.0.0.1"; in inet_addr_0100() local 29 int result = inet_addr(buff); in inet_addr_0100() 41 char buff[] = "-127.0.0.1"; in inet_addr_0200() local 42 int result = inet_addr(buff); in inet_addr_0200() 54 char buff[] = "127.0.256.1"; in inet_addr_0300() local 55 int result = inet_addr(buff); in inet_addr_0300()
|
/third_party/benchmark/src/ |
H A D | sysinfo.cc | 112 DataPtr buff; member 115 ValueUnion() : size(0), buff(nullptr, &std::free) {} in ValueUnion() 119 buff(::new (std::malloc(size)) DataT(), &std::free) {} in ValueUnion() 123 explicit operator bool() const { return bool(buff); } in operator bool() 125 char* data() const { return buff->bytes; } in data() 130 if (size == sizeof(buff->int32_value)) in GetAsInteger() 131 return buff->int32_value; in GetAsInteger() 132 else if (size == sizeof(buff->int64_value)) in GetAsInteger() 133 return buff->int64_value; in GetAsInteger() 153 ValueUnion buff(sizeo in GetSysctlImp() 182 auto buff = GetSysctlImp(name); GetSysctl() local 192 auto buff = GetSysctlImp(name); GetSysctl() local 200 auto buff = GetSysctlImp(name); GetSysctl() local [all...] |
/third_party/FatFs/documents/res/ |
H A D | app2.c | 58 TCHAR buff[256];
in main() local 65 _tcscpy(buff, _T("5:dir"));
in main() 68 fr = delete_node(buff, sizeof buff / sizeof buff[0], &fno);
in main() 75 _tprintf(_T("The directory and the contents have successfully been deleted.\n"), buff);
in main()
|
/third_party/rust/crates/rustix/tests/io/ |
H A D | pipe.rs | 11 let mut buff = vec![]; in test_splice_cursor() variables 23 dest.read_to_end(&mut buff).unwrap(); in test_splice_cursor() 24 assert_eq!(buff, b"world"); in test_splice_cursor() 37 let mut buff = vec![]; in test_splice_offset() variables 62 dest.read_to_end(&mut buff).unwrap(); in test_splice_offset() 63 assert_eq!(buff, b"hello"); in test_splice_offset() 76 let mut buff = [0; 5]; in test_splice_pipe2pipe() variables 80 read(&read_p2, &mut buff).unwrap(); in test_splice_pipe2pipe() 82 assert_eq!(&buff, b"hello"); in test_splice_pipe2pipe()
|
/third_party/musl/libc-test/src/functionalext/supplement/process/ |
H A D | execvp.c | 51 char *buff = getenv("ls"); in execvp_0200() local 54 setenv("ls", buff, 1); in execvp_0200() 83 char buff[300]; in execvp_0400() local 85 buff[i] = 'a'; in execvp_0400() 88 int ret = execvp(buff, argv); in execvp_0400()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/ |
H A D | gmtime_sup.c | 495 char buff[gBufferSize]; in gmtime_0100() local 496 int cnt = sprintf(buff, in gmtime_0100() 510 EXPECT_STREQ("gmtime_0100", gResultData[i].result, buff); in gmtime_0100() 538 char buff[gBufferSize]; in gmtime64_0100() local 539 int cnt = sprintf(buff, in gmtime64_0100() 553 EXPECT_STREQ("gmtime64_0100", gResultData[i].result, buff); in gmtime64_0100()
|
/third_party/musl/libc-test/src/functionalext/time/ |
H A D | localtime.c | 46 char buff[gBufferSize]; in localtime_0100() local 47 int cnt = sprintf(buff, "%d-%d-%d %d:%d:%d wday=%d,yday=%d,isdst=%d,gmtoff=%ld,zone=%s", in localtime_0100() 52 EXPECT_STREQ("localtime_0100", test_localtime_data[i].result, buff); in localtime_0100() 75 char buff[gBufferSize]; in localtime64_0100() local 76 int cnt = sprintf(buff, "%d-%d-%d %d:%d:%d wday=%d,yday=%d,isdst=%d,gmtoff=%ld,zone=%s", in localtime64_0100() 81 EXPECT_STREQ("localtime64_0100", test_localtime_data[i].result, buff); in localtime64_0100()
|
H A D | localtime_r.c | 47 char buff[gBufferSize]; in localtime_r_0100() local 48 int cnt = sprintf(buff, "%d-%d-%d %d:%d:%d wday=%d,yday=%d,isdst=%d,gmtoff=%ld,zone=%s", in localtime_r_0100() 53 EXPECT_STREQ("localtime_r_0100", test_localtime_data[i].result, buff); in localtime_r_0100() 77 char buff[gBufferSize]; in localtime64_r_0100() local 78 int cnt = sprintf(buff, "%d-%d-%d %d:%d:%d wday=%d,yday=%d,isdst=%d,gmtoff=%ld,zone=%s", in localtime64_r_0100() 83 EXPECT_STREQ("localtime64_r_0100", test_localtime_data[i].result, buff); in localtime64_r_0100()
|
/third_party/pulseaudio/speex/libspeexdsp/ |
H A D | scal.c | 76 float *buff; member 100 st->buff = speex_alloc(channels*2*frame_size*sizeof(float)); in speex_decorrelate_new() 160 float *buff; in speex_decorrelate() local 166 buff = st->buff+ch*2*st->frame_size; in speex_decorrelate() 173 buff[i] = buff[i+st->frame_size]; in speex_decorrelate() 175 buff[i+st->frame_size] = in[i*st->channels+ch]; in speex_decorrelate() 177 x = buff+st->frame_size; in speex_decorrelate() 233 frame[i] = buff[ in speex_decorrelate() [all...] |
/third_party/lame/frontend/ |
H A D | mp3rtp.c | 103 char buff[] = "| . | . | . | . | . | . | . | . | . | . | \r"; in levelmessage() local 106 buff[tmp] = '+'; in levelmessage() 108 if (tmp > sizeof(buff) - 2) in levelmessage() 109 tmp = sizeof(buff) - 2; in levelmessage() 112 buff[max] = 'x'; in levelmessage() 113 buff[tmp] = '#'; in levelmessage() 114 console_printf(buff); in levelmessage()
|