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.c1165 static int flash_write(int fd_current, int fd_target, int dev_target) in flash_write() argument
1209 flash_flag_obsolete(dev_current, fd_current, offset); in flash_write()
1271 static int flash_io_write(int fd_current) in flash_io_write() argument
1291 if (fstat(fd_current, &sb) == 0 && S_ISREG(sb.st_mode)) { in flash_io_write()
1299 fd_target = fd_current; in flash_io_write()
1302 rc = flash_write(fd_current, fd_target, dev_target); in flash_io_write()
1304 if (fsync(fd_current) && !(errno == EINVAL || errno == EROFS)) { in flash_io_write()
1310 if (fd_current != fd_target) { in flash_io_write()
1359 int fd_current, rc; in flash_io() local
1362 fd_current = open(DEVNAME(dev_current), mode); in flash_io()
[all …]