Lines Matching refs:fd
341 int fd, size; in spi_flash_elmfat_sample() local
360 fd = open("/user/test.txt", O_WRONLY | O_CREAT); in spi_flash_elmfat_sample()
361 if (fd >= 0) in spi_flash_elmfat_sample()
363 if (write(fd, str, sizeof(str)) == sizeof(str)) in spi_flash_elmfat_sample()
366 close(fd); in spi_flash_elmfat_sample()
369 fd = open("/user/test.txt", O_RDONLY); in spi_flash_elmfat_sample()
370 if (fd >= 0) in spi_flash_elmfat_sample()
372 size = read(fd, buf, sizeof(buf)); in spi_flash_elmfat_sample()
374 close(fd); in spi_flash_elmfat_sample()
404 int fd, size; in elmfat_sample() local
423 fd = open("/user/test.txt", O_WRONLY | O_CREAT); in elmfat_sample()
424 if (fd >= 0) in elmfat_sample()
426 if (write(fd, str, sizeof(str)) == sizeof(str)) in elmfat_sample()
429 close(fd); in elmfat_sample()
432 fd = open("/user/test.txt", O_RDONLY); in elmfat_sample()
433 if (fd >= 0) in elmfat_sample()
435 size = read(fd, buf, sizeof(buf)); in elmfat_sample()
437 close(fd); in elmfat_sample()
455 int fd, size; in sdio_elmfat_sample() local
474 fd = open("/user/test.txt", O_WRONLY | O_CREAT); in sdio_elmfat_sample()
475 if (fd >= 0) in sdio_elmfat_sample()
477 if (write(fd, str, sizeof(str)) == sizeof(str)) in sdio_elmfat_sample()
480 close(fd); in sdio_elmfat_sample()
483 fd = open("/user/test.txt", O_RDONLY); in sdio_elmfat_sample()
484 if (fd >= 0) in sdio_elmfat_sample()
486 size = read(fd, buf, sizeof(buf)); in sdio_elmfat_sample()
488 close(fd); in sdio_elmfat_sample()