Lines Matching refs:file_fd
1546 int file_fd = open(buf, O_RDWR | O_CREAT, 0777);
1547 if (file_fd > 0) {
1548 int written_len = write(file_fd, data, size);
1551 close(file_fd);
1604 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777);
1605 if (file_fd > 0) {
1609 written_len += write(file_fd, data, sizeof(uint32_t));
1612 written_len += write(file_fd, data, sizeof(uint32_t));
1615 written_len += write(file_fd, data, sizeof(uint32_t));
1618 written_len += write(file_fd, data, sizeof(uint32_t));
1621 written_len += write(file_fd, data, sizeof(uint32_t));
1624 written_len += write(file_fd, data, total_size);
1627 written_len += write(file_fd, data, total_size);
1630 file_fd, data, total_size);
1633 written_len += write(file_fd, data, total_size);
1634 close(file_fd);
1767 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777);
1768 if (file_fd > 0) {
1779 written_len += write(file_fd, data, offset.mp[i].width);
1786 close(file_fd);