Home
last modified time | relevance | path

Searched refs:fileno (Results 1 – 25 of 116) sorted by relevance

12345

/openbmc/openbmc/poky/bitbake/lib/bb/
H A Ddaemonize.py77 os.dup2(si.fileno(), sys.stdin.fileno())
81 os.dup2(so.fileno(), sys.stdout.fileno())
82 os.dup2(so.fileno(), sys.stderr.fileno())
H A Dprocess.py85 bb.utils.nonblockingfd(pipe.stdout.fileno())
88 bb.utils.nonblockingfd(pipe.stderr.fileno())
91 bb.utils.nonblockingfd(fobj.fileno())
H A Dbuild.py679 osi = [os.dup(sys.stdin.fileno()), sys.stdin.fileno()]
680 oso = [os.dup(sys.stdout.fileno()), sys.stdout.fileno()]
681 ose = [os.dup(sys.stderr.fileno()), sys.stderr.fileno()]
685 os.dup2(si.fileno(), osi[1])
686 os.dup2(logfile.fileno(), oso[1])
687 os.dup2(logfile.fileno(), ose[1])
/openbmc/openbmc/poky/bitbake/bin/
H A Dbitbake-server39 os.dup2(si.fileno(), sys.stdin.fileno())
42 os.dup2(so.fileno(), sys.stdout.fileno())
43 os.dup2(so.fileno(), sys.stderr.fileno())
/openbmc/ipmitool/lib/
H A Dipmi_tsol.c215 if (tcgetattr(fileno(stdout), &_saved_tio) < 0) { in enter_raw_mode()
237 if (tcsetattr(fileno(stdin), TCSADRAIN, &tio) < 0) { in enter_raw_mode()
321 ioctl(fileno(stdout), TIOCSWINSZ, &_saved_winsize); in do_terminal_cleanup()
338 ioctl(fileno(stdout), TIOCGWINSZ, &_saved_winsize); in set_terminal_size()
342 ioctl(fileno(stdout), TIOCSWINSZ, &winsize); in set_terminal_size()
358 ioctl(fileno(stdout), TIOCGWINSZ, &winsize); in print_tsol_usage()
511 fds_wait[1].fd = fileno(stdin); in ipmi_tsol_main()
521 fds_data_wait[1].fd = fileno(stdin); in ipmi_tsol_main()
524 fds_data_wait[2].fd = fileno(stdout); in ipmi_tsol_main()
563 result = read(fileno(stdin), in_buff + in_buff_fill, in ipmi_tsol_main()
[all …]
H A Dipmi_isol.c292 if (tcsetattr(fileno(stdin), TCSADRAIN, &_saved_tio) == -1) in leave_raw_mode()
304 if (tcgetattr(fileno(stdin), &tio) == -1) { in enter_raw_mode()
319 if (tcsetattr(fileno(stdin), TCSADRAIN, &tio) == -1) in enter_raw_mode()
611 numRead = read(fileno(stdin), in ipmi_isol_red_pill()
/openbmc/qemu/tests/avocado/
H A Dmultiprocess.py30 os.set_inheritable(proxy_sock.fileno(), True)
31 os.set_inheritable(remote_sock.fileno(), True)
42 'devid=lsi1,fd='+str(remote_sock.fileno()))
59 'id=lsi1,fd='+str(proxy_sock.fileno()))
H A Dvirtio-gpu.py112 os.set_inheritable(qemu_sock.fileno(), True)
113 os.set_inheritable(vug_sock.fileno(), True)
123 [vug, "--virgl", "--fd=%d" % vug_sock.fileno()],
135 self.vm.add_args("-chardev", "socket,id=vug,fd=%d" % qemu_sock.fileno())
H A Dtcg_plugins.py84 mmap.mmap(lf.fileno(), 0, access=mmap.ACCESS_READ) as s:
115 mmap.mmap(lf.fileno(), 0, access=mmap.ACCESS_READ) as s:
145 mmap.mmap(lf.fileno(), 0, access=mmap.ACCESS_READ) as s:
/openbmc/linux/tools/crypto/ccp/
H A Ddbc.py37 ret = lib.get_nonce(device.fileno(), ctypes.byref(buf), signature)
48 ret = lib.set_uid(device.fileno(), new_uid, signature)
61 ret = lib.process_param(device.fileno(), message[0], ctypes.pointer(sig), ctypes.pointer(arg))
/openbmc/linux/tools/testing/selftests/mm/
H A Dmap_populate.c82 ret = ftruncate(fileno(ftmp), MMAP_SZ); in main()
86 MAP_SHARED, fileno(ftmp), 0); in main()
110 return child_f(sock[0], smap, fileno(ftmp)); in main()
/openbmc/qemu/tests/qemu-iotests/
H A D04546 self.vm.add_fd(self.file0.fileno(), 1, 'image0:r')
47 self.vm.add_fd(self.file1.fileno(), 1, 'image1:w+')
48 self.vm.add_fd(self.file2.fileno(), 0, 'image2:r')
49 self.vm.add_fd(self.file3.fileno(), 2, 'image3:r')
50 self.vm.add_fd(self.file4.fileno(), 2, 'image4:r')
/openbmc/openbmc/poky/scripts/
H A Doepydevshell-internal.py60 cbreaknoecho(sys.stdin.fileno())
81 echonocbreak(sys.stdin.fileno())
83 cbreaknoecho(sys.stdin.fileno())
/openbmc/linux/tools/include/nolibc/
H A Dstdio.h55 int fileno(FILE *stream) in fileno() function
108 if (read(fileno(stream), &ch, 1) <= 0) in fgetc()
129 if (write(fileno(stream), &ch, 1) <= 0) in fputc()
150 int fd = fileno(stream); in _fwrite()
/openbmc/openbmc/poky/bitbake/lib/prserv/
H A Dserv.py202 os.dup2(si.fileno(), sys.stdin.fileno())
207 os.dup2(so.fileno(), sys.stdout.fileno())
211 os.dup2(so.fileno(), sys.stderr.fileno())
/openbmc/linux/drivers/scsi/bfa/
H A Dbfa_cs.h42 u16 fileno; member
46 u16 fileno;
104 __bfa_trc(struct bfa_trc_mod_s *trcm, int fileno, int line, u64 data);
107 __bfa_trc32(struct bfa_trc_mod_s *trcm, int fileno, int line, u32 data);
/openbmc/bmcweb/test/http/
H A Dhttp_response_test.cpp97 res.openFd(fileno(fd)); in TEST()
109 res.openFd(fileno(fd), bmcweb::EncodingType::Base64); in TEST()
151 res.openFd(fileno(f), bmcweb::EncodingType::Base64); in TEST()
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dqemurunner.py39 return os.read(o.fileno(), 1000000).decode("utf-8")
782 poll.register(self.serversock.fileno())
784 poll.register(self.qemuoutput.fileno())
805 elif self.serversock and self.serversock.fileno() == fd:
809 poll.unregister(self.serversock.fileno())
810 poll.register(self.readsock.fileno(), event_read_mask)
816 elif self.readsock and self.readsock.fileno() == fd:
819 elif self.qemuoutput.fileno() == fd:
823 elif self.serialsock and self.serialsock.fileno() == fd:
831 poll.unregister(self.serialsock.fileno())
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/
H A Dfilemap.py44 stat = os.fstat(file_obj.fileno())
98 self.image_size = os.fstat(self._f_image.fileno()).st_size
119 os.fsync(self._f_image.fileno()),
178 return os.lseek(file_obj.fileno(), offset, whence)
229 os.ftruncate(tmp_obj.fileno(), self.block_size)
H A Dpartition.py283 os.ftruncate(sparse.fileno(), rootfs_size * 1024)
359 os.ftruncate(sparse.fileno(), rootfs_size * 1024)
436 os.ftruncate(sparse.fileno(), size * 1024)
457 os.ftruncate(sparse.fileno(), size * 1024)
501 os.ftruncate(sparse.fileno(), self.size * 1024)
/openbmc/openbmc/poky/meta/classes-global/
H A Ddevshell.bbclass71 os.dup2(m, sys.stdin.fileno())
72 os.dup2(m, sys.stdout.fileno())
73 os.dup2(m, sys.stderr.fileno())
/openbmc/skeleton/pyipmitest/
H A Dipmi_debug.py67 flags = fcntl.fcntl(sys.stdin.fileno(), fcntl.F_GETFL)
69 fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL, flags)
/openbmc/openbmc/poky/bitbake/lib/bb/compress/
H A D_pipecompress.py157 def fileno(self): member in PipeFile
158 return self.pipe.fileno()
/openbmc/qemu/python/qemu/machine/
H A Dqtest.py154 fd = self._qtest_sock_pair[0].fileno()
164 os.set_inheritable(self._qtest_sock_pair[0].fileno(), True)
/openbmc/qemu/scripts/
H A Dshaderinclude.py16 with os.fdopen(sys.stdout.fileno(), "wt", closefd=False, newline='\n') as stdout:

12345