Searched defs:dev_fd (Results 1 - 9 of 9) sorted by relevance

/external/ltp/lib/
H A Dtst_device.c71 int ctl_fd, dev_fd, rc, i; local
110 dev_fd = open(dev_path, O_RDONLY);
112 if (dev_fd < 0)
115 if (ioctl(dev_fd, LOOP_GET_STATUS, &loopinfo) == 0) {
121 close(dev_fd);
125 close(dev_fd);
135 int dev_fd, file_fd; local
137 dev_fd = open(dev, O_RDWR);
138 if (dev_fd < 0) {
146 close(dev_fd);
165 int dev_fd, ret, i; local
[all...]
/external/syslinux/libinstaller/
H A Dsyslxcom.c299 int syslinux_already_installed(int dev_fd) argument
303 xpread(dev_fd, buffer, 8, 3);
/external/syslinux/linux/
H A Dsyslinux.c106 int do_mount(int dev_fd, int *cookie, const char *mntpath, const char *fstype) argument
112 if (fstat(dev_fd, &st) < 0)
129 if (ioctl(loop_fd, LOOP_SET_FD, (void *)dev_fd)) {
147 (unsigned long)mypid, dev_fd);
161 (unsigned long)mypid, dev_fd);
262 int dev_fd, fd; local
302 dev_fd = open(opt.device, O_RDWR);
303 if (dev_fd < 0 || fstat(dev_fd, &st) < 0) {
316 xpread(dev_fd, sectbu
[all...]
/external/syslinux/mtools/
H A Dsyslinux.c189 int dev_fd; local
241 dev_fd = open(opt.device, O_RDWR);
242 if (dev_fd < 0 || fstat(dev_fd, &st) < 0) {
254 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
282 dev_fd, (unsigned long long)opt.offset);
322 fs = libfat_open(libfat_xpread, dev_fd);
341 xpwrite(dev_fd, (const char _force *)syslinux_ldlinux
394 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
400 xpwrite(dev_fd, sectbu
[all...]
/external/dhcpcd-6.8.2/
H A Ddhcpcd.h150 int dev_fd; member in struct:dhcpcd_ctx
/external/mmc-utils/
H A Dmmc_cmds.c1610 int ret, dev_fd, key_fd; local
1618 dev_fd = open(argv[1], O_RDWR);
1619 if (dev_fd < 0) {
1647 ret = do_rpmb_op(dev_fd, &frame_in, &frame_out, 1);
1660 close(dev_fd);
1667 int rpmb_read_counter(int dev_fd, unsigned int *cnt) argument
1675 ret = do_rpmb_op(dev_fd, &frame_in, &frame_out, 1);
1692 int ret, dev_fd; local
1698 dev_fd = open(argv[1], O_RDWR);
1699 if (dev_fd <
1721 int i, ret, dev_fd, data_fd, key_fd = -1; local
1868 int ret, dev_fd, key_fd, data_fd; local
[all...]
/external/syslinux/dos/
H A Dsyslinux.c572 static void move_file(int dev_fd, char *pathname, char *filename) argument
579 new_name[0] = dev_fd | 0x40;
616 int dev_fd, fd; local
657 dev_fd = (opt.device[0] & ~0x20) - 0x40;
658 if (dev_fd < 1 || dev_fd > 26 || opt.device[1] != ':' || opt.device[2])
661 set_lock_device(dev_fd);
664 read_device(dev_fd, sectbuf, 1, 0);
677 ldlinux_name[0] = dev_fd | 0x40;
678 ldlinuxc32_name[0] = dev_fd |
[all...]
/external/toybox/toys/pending/
H A Dfdisk.c85 static int num_parts, disp_unit_cyl, dos_flag, dev_fd = 3; variable
151 if (ioctl(dev_fd, BLKSSZGET, &arg) == 0) g_sect_size = arg;
166 if (ioctl(dev_fd, BLKGETSIZE64, &sec64) == 0) {
174 if (ioctl(dev_fd, BLKGETSIZE, &sectors) == 0)
227 if (ioctl(dev_fd, HDIO_GETGEO, &geometry)) return;
260 xlseek(dev_fd, (off_t)(offset * g_sect_size), SEEK_SET);
262 if (g_sect_size != readall(dev_fd, sec_buf, g_sect_size)) {
263 close(dev_fd);
355 if(fd != dev_fd) {
356 if(dup2(fd, dev_fd) !
[all...]
/external/ppp/pppd/
H A Dsys-linux.c597 void generic_disestablish_ppp(int dev_fd) argument

Completed in 298 milliseconds