Home
last modified time | relevance | path

Searched refs:filebuf (Results 1 – 17 of 17) sorted by relevance

/external/u-boot/tools/
Dmkenvimage.c74 unsigned char *filebuf = NULL; in main() local
164 filebuf = realloc(filebuf, filesize + readlen); in main()
165 if (!filebuf) { in main()
169 readbytes = read(txt_fd, filebuf + filesize, readlen); in main()
196 filebuf = mmap(NULL, sizeof(*envptr) * filesize, PROT_READ, in main()
198 if (filebuf == MAP_FAILED) { in main()
204 filebuf = malloc(sizeof(*envptr) * filesize); in main()
205 ret = read(txt_fd, filebuf, sizeof(*envptr) * filesize); in main()
220 if (filebuf[fp] == '\n') { in main()
221 if (fp == 0 || filebuf[fp-1] == '\n') { in main()
[all …]
/external/ltp/testcases/kernel/sched/eas/
Dutil.c60 char *filebuf, *tmp1, *tmp2; in read_capacity_sched_domains() local
73 filebuf = calloc(1, CAP_STATE_FILE_SIZE + 1); in read_capacity_sched_domains()
74 if (!filebuf) { in read_capacity_sched_domains()
78 tmp1 = filebuf; in read_capacity_sched_domains()
90 if (tmp1 - filebuf == CAP_STATE_FILE_SIZE) { in read_capacity_sched_domains()
94 tmp1 = strrchr(filebuf, '\t'); in read_capacity_sched_domains()
95 if (!tmp1 || tmp1 == filebuf ) { in read_capacity_sched_domains()
96 printf("Malformatted cap_states_file (1).\n%s\n", filebuf); in read_capacity_sched_domains()
100 if (!tmp1 || tmp1 == filebuf) { in read_capacity_sched_domains()
101 printf("Malformatted cap_states_file (2).\n%s\n", filebuf); in read_capacity_sched_domains()
[all …]
/external/libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/
Dseekoff.pass.cpp26 typedef std::filebuf::pos_type pos_type; in main()
27 std::filebuf f; in main()
47 typedef std::filebuf::pos_type pos_type; in main()
/external/libcxx/test/std/input.output/file.streams/fstreams/filebuf.members/
Dopen_path.pass.cpp27 std::filebuf f; in main()
33 std::filebuf f; in main()
Dopen_pointer.pass.cpp22 std::filebuf f; in main()
28 std::filebuf f; in main()
/external/libcxx/test/std/input.output/file.streams/fstreams/filebuf.assign/
Dmove_assign.pass.cpp27 std::filebuf f; in main()
34 std::filebuf f2; in main()
Dnonmember_swap.pass.cpp27 std::filebuf f; in main()
34 std::filebuf f2; in main()
Dmember_swap.pass.cpp25 std::filebuf f; in main()
32 std::filebuf f2; in main()
/external/libcxx/test/std/input.output/file.streams/fstreams/filebuf.cons/
Dmove.pass.cpp27 std::filebuf f; in main()
34 std::filebuf f2(move(f)); in main()
Ddefault.pass.cpp23 std::filebuf f; in main()
/external/f2fs-tools/mkfs/
Df2fs_format.c1161 char *filebuf = calloc(F2FS_BLKSIZE, 2); in f2fs_write_default_quota() local
1167 if (filebuf == NULL) { in f2fs_write_default_quota()
1177 memcpy(filebuf, &ddqheader, sizeof(ddqheader)); in f2fs_write_default_quota()
1187 memcpy(filebuf + V2_DQINFOOFF, &ddqinfo, sizeof(ddqinfo)); in f2fs_write_default_quota()
1189 filebuf[1024] = 2; in f2fs_write_default_quota()
1190 filebuf[2048] = 3; in f2fs_write_default_quota()
1191 filebuf[3072] = 4; in f2fs_write_default_quota()
1192 filebuf[4096] = 5; in f2fs_write_default_quota()
1194 filebuf[5120 + 8] = 1; in f2fs_write_default_quota()
1213 memcpy(filebuf + 5136, &dqblk, sizeof(struct v2r1_disk_dqblk)); in f2fs_write_default_quota()
[all …]
/external/libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/
Drdbuf.pass.cpp24 std::filebuf* fb = fs.rdbuf(); in main()
/external/libcxx/test/std/input.output/file.streams/fstreams/ofstream.members/
Drdbuf.pass.cpp26 std::filebuf* fb = fs.rdbuf(); in main()
/external/libcxx/include/
Diosfwd67 typedef basic_filebuf<char> filebuf;
169 typedef basic_filebuf<char> filebuf;
Dfstream64 typedef basic_filebuf<char> filebuf;
/external/libcxx/test/std/input.output/iostream.forward/
Diosfwd.pass.cpp100 test<std::filebuf* >(); in main()
/external/clang/test/
Dcxx-sections.data1357 27.9.1.1 [filebuf]
1358 27.9.1.2 [filebuf.cons]
1359 27.9.1.3 [filebuf.assign]
1360 27.9.1.4 [filebuf.members]
1361 27.9.1.5 [filebuf.virtuals]