Home
last modified time | relevance | path

Searched refs:fd0 (Results 1 – 25 of 35) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/dup2/
Ddup203.c62 int fd0, fd1, fd2, rval; in main() local
84 if ((fd0 = creat(filename0, 0666)) == -1) in main()
86 if (write(fd0, filename0, strlen(filename0)) == -1) in main()
94 SAFE_CLOSE(cleanup, fd0); in main()
95 if ((fd0 = open(filename0, O_RDONLY)) == -1) in main()
102 TEST(dup2(fd0, fd1)); in main()
120 close(fd0); in main()
135 if ((fd0 = creat(filename0, 0666)) == -1) { in main()
138 if (fcntl(fd0, F_SETFD, 1) == -1) { in main()
151 TEST(dup2(fd0, fd2)); in main()
[all …]
/external/strace/tests-m32/
Dredirect-fds.test38 fd0="$LOG.fd0"
51 rm -f "$LOG" "$fd0" "$fd1" "$fd2"
52 touch "$LOG" "$fd0" ||
64 check_fd "$fd0" "$fd1" "$fd2"
66 check_fd "$fd0" '' "$fd2"
67 check_fd "$fd0" "$fd1" ''
70 check_fd "$fd0" '' ''
/external/strace/tests/
Dredirect-fds.test38 fd0="$LOG.fd0"
51 rm -f "$LOG" "$fd0" "$fd1" "$fd2"
52 touch "$LOG" "$fd0" ||
64 check_fd "$fd0" "$fd1" "$fd2"
66 check_fd "$fd0" '' "$fd2"
67 check_fd "$fd0" "$fd1" ''
70 check_fd "$fd0" '' ''
/external/strace/tests-mx32/
Dredirect-fds.test38 fd0="$LOG.fd0"
51 rm -f "$LOG" "$fd0" "$fd1" "$fd2"
52 touch "$LOG" "$fd0" ||
64 check_fd "$fd0" "$fd1" "$fd2"
66 check_fd "$fd0" '' "$fd2"
67 check_fd "$fd0" "$fd1" ''
70 check_fd "$fd0" '' ''
/external/ltp/testcases/kernel/io/stress_floppy/
Dstress_floppy58 num_device=$(ls /dev | grep fd0 | wc -l)
72 fdformat /dev/fd0
85 tar -C $TCdat/dumpdir -cvf /dev/fd0 $the_file
92 tar -xvf /dev/fd0
120 dump -f /dev/fd0 dumpdir
131 restore -v -r -f /dev/fd0 2>/dev/null
164 echo $the_file | cpio -o > /dev/fd0
176 cpio -i < /dev/fd0
202 dd if=$TCdat/$the_file of=/dev/fd0 ibs=1b obs=90b conv=sync
209 dd if=/dev/fd0 of=$the_file ibs=90b obs=1b conv=sync
[all …]
/external/linux-kselftest/tools/testing/selftests/proc/
Dfd-002-posix-eq.c27 int fd0, fd1, fd2; in main() local
32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
33 assert(fd0 >= 0); in main()
35 snprintf(buf, sizeof(buf), "/proc/self/fd/%u", fd0); in main()
39 snprintf(buf, sizeof(buf), "/proc/thread-self/fd/%u", fd0); in main()
43 rv = fstat(fd0, &st0); in main()
/external/google-breakpad/src/processor/testdata/symbols/microdump/breakpad_unittests/DA7778FB66018A4E9B4110ED06E730D00/
Dbreakpad_unittests.sym1083 14fd0 2 484 85
1907 FUNC 15fd0 c 0 google_breakpad::::CrashGenerationClientImpl::~CrashGenerationClientImpl
1908 15fd0 2 49 0
1912 FUNC 15fd0 c 0 google_breakpad::MinidumpObject::~MinidumpObject
1913 15fd0 2 114 65
1917 FUNC 15fd0 c 0 testing::internal::DefaultDeathTestFactory::~DefaultDeathTestFactory
1918 15fd0 2 148 83
1922 FUNC 15fd0 c 0 testing::internal::DefaultGlobalTestPartResultReporter::~DefaultGlobalTestPartResult…
1923 FUNC 15fd0 c 0 testing::internal::DefaultPerThreadTestPartResultReporter::~DefaultPerThreadTestPart…
1924 15fd0 2 2017 87
[all …]
/external/rust/crates/nix/test/
Dtest_unistd.rs625 let (fd0, fd1) = pipe().unwrap(); in test_pipe()
626 let m0 = stat::SFlag::from_bits_truncate(stat::fstat(fd0).unwrap().st_mode); in test_pipe()
645 let (fd0, fd1) = pipe2(OFlag::O_CLOEXEC).unwrap(); in test_pipe2()
646 let f0 = FdFlag::from_bits_truncate(fcntl(fd0, FcntlArg::F_GETFD).unwrap()); in test_pipe2()
/external/openssh/
Dmonitor.c1532 int r, res, fd0; in mm_answer_pty() local
1573 if ((fd0 = open(_PATH_DEVNULL, O_RDONLY)) == -1) in mm_answer_pty()
1575 if (fd0 != 0) in mm_answer_pty()
1576 error("%s: fd0 %d != 0", __func__, fd0); in mm_answer_pty()
/external/perfetto/src/traced/probes/ftrace/
Dcpu_reader_benchmark.cc285 00000fd0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
Dcpu_reader_unittest.cc1869 00000fd0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
/external/mtools/
Dmtools.info679 file="/dev/fd0" use_xdf=1
740 nodes with configurable geometry ('/dev/fd0', '/dev/fd1' etc), and
973 feature is not really needed, as the /dev/fd0 device is able to handle
979 drive z: file="/dev/fd0"
1130 '/dev/fd0'. Multiple devices are only supported on mtools versions
1149 The following starts a floppy daemon giving access to '/dev/fd0',
1152 floppyd -d /dev/fd0
1158 floppyd -d /dev/fd0
1159 floppyd -d -x :1 -p 5704 /dev/fd0
1171 floppyd-0 stream tcp wait floppy /usr/sbin/floppyd floppyd /dev/fd0
[all …]
Dmtools.texi742 file="/dev/fd0" use_xdf=1
822 with configurable geometry (@file{/dev/fd0}, @file{/dev/fd1} etc),
1104 feature is not really needed, as the /dev/fd0 device is able to handle
1111 drive z: file="/dev/fd0"
1276 is @code{/dev/fd0}. Multiple devices are only supported on mtools
1295 The following starts a floppy daemon giving access to @file{/dev/fd0},
1299 floppyd -d /dev/fd0
1307 floppyd -d /dev/fd0
1308 floppyd -d -x :1 -p 5704 /dev/fd0
1324 floppyd-0 stream tcp wait floppy /usr/sbin/floppyd floppyd /dev/fd0
[all …]
/external/python/pyfakefs/pyfakefs/tests/
Dfake_os_test.py4165 fd0 = self.os.open(file_path, os.O_CREAT | os.O_WRONLY | os.O_TRUNC)
4167 self.os.write(fd0, b'aaaa')
4172 self.os.close(fd0)
4177 fd0 = self.os.open(file_path, os.O_CREAT | os.O_WRONLY | os.O_TRUNC)
4179 self.os.write(fd0, b'aaa')
4184 self.os.close(fd0)
4191 fd0 = self.os.open(file_path, os.O_CREAT)
4193 self.assertEqual(b'', self.os.read(fd0, 0))
4195 self.os.close(fd0)
4200 fd0 = self.os.open(file_path, os.O_CREAT | os.O_WRONLY | os.O_TRUNC)
[all …]
/external/llvm-project/llvm/test/MC/X86/AlignedBundling/
Dautogen-inst-offset-padding.s1298 # CHECK: fd0: incl
2662 # CHECK: 1fd0: incl
Dautogen-inst-offset-align-to-end.s1416 # CHECK: fd0: nop
2887 # CHECK: 1fd0: incl
/external/llvm/test/MC/X86/AlignedBundling/
Dautogen-inst-offset-padding.s1298 # CHECK: fd0: incl
2662 # CHECK: 1fd0: incl
Dautogen-inst-offset-align-to-end.s1416 # CHECK: fd0: nop
2887 # CHECK: 1fd0: incl
/external/google-breakpad/src/processor/testdata/symbols/libgcc_s.so.1/18B180F90887D8F8B5C35D185444AF4C0/
Dlibgcc_s.so.1.sym55 PUBLIC 4fd0 0 __fixunsdfti
211 STACK CFI INIT 4fd0 97 .cfa: $rsp 8 + .ra: .cfa -8 + ^
/external/python/cpython3/Lib/test/
Dtest_socket.py3517 fd0, fd1 = self.newFDs(2)
3521 array.array("i", [fd0])),
3544 fd0, fd1 = self.newFDs(2)
3548 array.array("i", [fd0])),
3619 fd0, fd1 = self.newFDs(2)
3624 array.array("i", [fd0, self.badfd]).tobytes()[:-1]),
/external/ltp/doc/
Dtest-writing-guidelines.txt360 static int fd0, fd1, mount_flag;
373 fd0 = SAFE_OPEN(cleanup, FILE1, O_CREAT | O_RDWR, 0666);
391 if (fd0 > 0)
392 SAFE_CLOSE(fd0);
/external/mesa3d/src/freedreno/.gitlab-ci/reference/
Dcrash.log2749 000fd0: f4fefd9f df7993f4 9599efc7 6a489bed |......y.......Hj|
3339 000fd0: 7fb8fc5c 6da32a12 aa3d9dc3 51502eca |\....*.m..=...PQ|
3706 000fd0: 98fa276a c25f4f51 76294261 d3f545be |j'..QO_.aB)v.E..|
3962 001fd0: 20010001 42100001 fffffff9 01000000 |... ...B........|
4385 000fd0: d97a274f a5e54053 c421a72b 09cacc65 |O'z.S@..+.!.e...|
4641 001fd0: 00000000 204cc3b4 00000000 204cc3b8 |......L ......L |
5925 000fd0: deafbead deafbead deafbead deafbead |................|
6181 001fd0: 00000000 00000000 00000000 00000000 |................|
/external/google-breakpad/src/processor/testdata/symbols/null_read_av/7B7D1968FF0D47AE4366E9C3A7E1B6750/
Dnull_read_av.sym1240 4fd0 1c 824 23
1611 5fd0 5 998 23
3226 9fd0 7 86 29
/external/google-breakpad/src/processor/testdata/symbols/overflow/B0E1FC01EF48E39CAF5C881D2DF0C3840/
Doverflow.sym834 3fd0 f 246 33
2267 7fd0 1b 379 41
6021 STACK CFI 7fd0 .cfa: $rsp 96 +
/external/google-breakpad/src/processor/testdata/symbols/microdump/breakpad_unittests/D6D1FEC9A15DE7F38A236898871A2E770/
Dbreakpad_unittests.sym959 21fd0 14 117 30
1373 22fd0 14 183 34
2018 23fd0 8 910 6
2538 24fd0 8 441 126
4635 29fd0 14 937 6
7375 30fd0 4 256 82
8705 33fd0 8 302 82
10379 37fd0 14 385 25
10842 38fd0 8 68 115
15902 44fd0 1c 143 43
[all …]

12