Home
last modified time | relevance | path

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

/external/u-boot/tools/env/
Dfw_env.c1160 static int flash_write(int fd_current, int fd_target, int dev_target) in flash_write() argument
1204 flash_flag_obsolete(dev_current, fd_current, offset); in flash_write()
1266 static int flash_io_write(int fd_current) in flash_io_write() argument
1286 if (fstat(fd_current, &sb) == 0 && S_ISREG(sb.st_mode)) { in flash_io_write()
1294 fd_target = fd_current; in flash_io_write()
1297 rc = flash_write(fd_current, fd_target, dev_target); in flash_io_write()
1299 if (fsync(fd_current) && !(errno == EINVAL || errno == EROFS)) { in flash_io_write()
1305 if (fd_current != fd_target) { in flash_io_write()
1354 int fd_current, rc; in flash_io() local
1357 fd_current = open(DEVNAME(dev_current), mode); in flash_io()
[all …]