Home
last modified time | relevance | path

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

/scripts/dtc/
A Dutil.c243 int fd = 0; /* assume stdin */ in utilfdt_read_err_len() local
250 fd = open(filename, O_RDONLY); in utilfdt_read_err_len()
251 if (fd < 0) in utilfdt_read_err_len()
264 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err_len()
273 close(fd); in utilfdt_read_err_len()
310 int fd = 1; /* assume stdout */ in utilfdt_write_err() local
317 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666); in utilfdt_write_err()
318 if (fd < 0) in utilfdt_write_err()
326 ret = write(fd, ptr + offset, totalsize - offset); in utilfdt_write_err()
334 if (fd != 1) in utilfdt_write_err()
[all …]
/scripts/basic/
A Dfixdep.c286 int fd; in read_file() local
289 fd = open(filename, O_RDONLY); in read_file()
290 if (fd < 0) { in read_file()
295 if (fstat(fd, &st) < 0) { in read_file()
305 if (read(fd, buf, st.st_size) != st.st_size) { in read_file()
310 close(fd); in read_file()
/scripts/
A Dbuild-efi.sh101 bios=OVMF-pure-efi.x64.fd
104 bios=OVMF-pure-efi.i386.fd
A Dspdxcheck.py167 def parse_lines(self, fd, maxlines, fname): argument
171 for line in fd:
216 with open(el.path, 'rb') as fd:
217 parser.parse_lines(fd, args.maxlines, el.path)
/scripts/dtc/pylibfdt/
A Dsetup.py68 with open(fname) as fd:
70 for line in fd.read().splitlines():
/scripts/kconfig/
A Dconfdata.c913 int res, i, fd; in conf_split_config() local
986 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); in conf_split_config()
987 if (fd == -1) { in conf_split_config()
999 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); in conf_split_config()
1000 if (fd == -1) { in conf_split_config()
1005 close(fd); in conf_split_config()

Completed in 11 milliseconds