Home
last modified time | relevance | path

Searched refs:outfd (Results 1 – 25 of 28) sorted by relevance

12

/third_party/mesa3d/src/freedreno/afuc/
Dasm.c133 emit_instructions(int outfd) in emit_instructions() argument
141 write(outfd, &i, 4); in emit_instructions()
158 write(outfd, &ai->literal, 4); in emit_instructions()
326 write(outfd, &instr, 4); in emit_instructions()
338 emit_jumptable(int outfd) in emit_jumptable() argument
358 write(outfd, jmptable, sizeof(jmptable)); in emit_jumptable()
375 int c, ret, outfd; in main() local
396 outfd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0644); in main()
397 if (outfd < 0) { in main()
430 emit_instructions(outfd); in main()
[all …]
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/lsp/protocol/
Dlog.go129 func logCommon(outfd io.Writer, data []byte) (*Combined, time.Time, string) {
130 if outfd == nil {
136 fmt.Fprintf(outfd, "Unmarshal %v\n", err)
148 func logOut(outfd io.Writer, data []byte) {
149 v, tm, tmfmt := logCommon(outfd, data)
155 fmt.Fprintf(outfd, "[Error - %s] Received #%s %s%s", tmfmt, id, v.Error, eor)
197 outfd.Write([]byte(buf.String()))
201 func logIn(outfd io.Writer, data []byte) {
202 v, tm, tmfmt := logCommon(outfd, data)
211 fmt.Fprintf(outfd, "[Error - %s] Sent #%s %s%s", tmfmt, id, v.Error, eor)
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dlog.go129 func logCommon(outfd io.Writer, data []byte) (*Combined, time.Time, string) {
130 if outfd == nil {
136 fmt.Fprintf(outfd, "Unmarshal %v\n", err)
148 func logOut(outfd io.Writer, data []byte) {
149 v, tm, tmfmt := logCommon(outfd, data)
155 fmt.Fprintf(outfd, "[Error - %s] Received #%s %s%s", tmfmt, id, v.Error, eor)
197 outfd.Write([]byte(buf.String()))
201 func logIn(outfd io.Writer, data []byte) {
202 v, tm, tmfmt := logCommon(outfd, data)
211 fmt.Fprintf(outfd, "[Error - %s] Sent #%s %s%s", tmfmt, id, v.Error, eor)
[all …]
/third_party/spirv-tools/utils/vscode/src/lsp/protocol/
Dlog.go129 func logCommon(outfd io.Writer, data []byte) (*Combined, time.Time, string) {
130 if outfd == nil {
136 fmt.Fprintf(outfd, "Unmarshal %v\n", err)
148 func logOut(outfd io.Writer, data []byte) {
149 v, tm, tmfmt := logCommon(outfd, data)
155 fmt.Fprintf(outfd, "[Error - %s] Received #%s %s%s", tmfmt, id, v.Error, eor)
197 outfd.Write([]byte(buf.String()))
201 func logIn(outfd io.Writer, data []byte) {
202 v, tm, tmfmt := logCommon(outfd, data)
211 fmt.Fprintf(outfd, "[Error - %s] Sent #%s %s%s", tmfmt, id, v.Error, eor)
[all …]
/third_party/toybox/toys/other/
Ddos2unix.c37 int outfd = 1, catch = 0; local
39 if (fd) outfd = copy_tempfile(fd, name, &TT.tempfile);
61 xwrite(outfd, toybuf, out);
63 if (catch) xwrite(outfd, "\r", 1);
65 if (fd) replace_tempfile(-1, outfd, &TT.tempfile);
Dbzcat.c678 int outfd = 1, rename = 0, len = strlen(name); in do_bunzip2() local
687 if (toys.optflags&FLAG_t) outfd = xopen("/dev/null", O_WRONLY); in do_bunzip2()
696 outfd = copy_tempfile(fd, name, &tmp); in do_bunzip2()
701 err = bunzipStream(fd, outfd); in do_bunzip2()
716 (err ? delete_tempfile : replace_tempfile)(-1, outfd, &tmp); in do_bunzip2()
/third_party/elfutils/tests/
Darextract.c85 int outfd; in main() local
98 outfd = open (argv[3], O_CREAT | O_TRUNC | O_RDWR, DEFFILEMODE); in main()
99 if (outfd == -1) in main()
114 if (write (outfd, buf, n) != n) in main()
138 close (outfd); in main()
Decp.c46 int outfd = creat (argv[2], DEFFILEMODE); in main() local
47 if (outfd == -1) in main()
50 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); in main()
94 close (outfd); in main()
/third_party/toybox/toys/posix/
Dsplit.c40 int outfd = -1; local
71 xclose(outfd);
72 outfd = xcreate(TT.outfile, O_RDWR|O_CREAT|O_TRUNC, st.st_mode & 0777);
87 xwrite(outfd, toybuf+pos, j);
92 xclose(outfd);
/third_party/curl/docs/examples/
Dsendrecv.c37 fd_set infd, outfd, errfd; in wait_on_socket() local
44 FD_ZERO(&outfd); in wait_on_socket()
61 FD_SET(sockfd, &outfd); in wait_on_socket()
68 res = select((int)sockfd + 1, &infd, &outfd, &errfd, &tv); in wait_on_socket()
/third_party/toybox/lib/
Ddeflate.c29 int infd, outfd; member
145 xwrite(dd->outfd, dd->data, 32768); in output_byte()
317 xwrite(dd->outfd, dd->data, dd->pos&32767); in inflate()
447 long long gzip_fd(int infd, int outfd) in gzip_fd() argument
449 struct bitbuf *bb = bitbuf_init(outfd, 4096); in gzip_fd()
481 long long gunzip_fd(int infd, int outfd) in gunzip_fd() argument
490 dd->outfd = outfd; in gunzip_fd()
Dlib.h387 long long gzip_fd(int infd, int outfd);
388 long long gunzip_fd(int infd, int outfd);
/third_party/cups-filters/filter/
Dsys5ippprinter.c65 int infd, int outfd);
528 int outfd) /* I - Stdout file descriptor */ in exec_filter() argument
553 if (outfd != 1) in exec_filter()
555 if (outfd < 0) in exec_filter()
556 outfd = open("/dev/null", O_WRONLY); in exec_filter()
558 if (outfd > 1) in exec_filter()
560 dup2(outfd, 1); in exec_filter()
561 close(outfd); in exec_filter()
/third_party/cups-filters/cupsfilters/
Dpdftoippprinter.c64 int infd, int outfd);
588 int outfd) /* I - Stdout file descriptor */ in exec_filter() argument
610 if (outfd != 1) { in exec_filter()
611 if (outfd < 0) in exec_filter()
612 outfd = open("/dev/null", O_WRONLY); in exec_filter()
614 if (outfd > 1) { in exec_filter()
615 dup2(outfd, 1); in exec_filter()
616 close(outfd); in exec_filter()
/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dscsimain.c220 int outfd; member
245 int outfd; member
2209 int infd, outfd, blocks; in do_scsi_device_read_write() local
2253 outfd = STDOUT_FILENO; in do_scsi_device_read_write()
2327 if ((outfd = open(outf, O_RDWR)) < 0) { in do_scsi_device_read_write()
2335 res = ioctl(outfd, SG_SET_RESERVED_SIZE, &t); in do_scsi_device_read_write()
2338 res = ioctl(outfd, SG_GET_VERSION_NUM, &t); in do_scsi_device_read_write()
2345 outfd = -1; /* don't bother opening */ in do_scsi_device_read_write()
2354 if ((outfd = open(outf, flags, 0666)) < 0) { in do_scsi_device_read_write()
2363 if ((outfd = open(outf, O_WRONLY)) < 0) { in do_scsi_device_read_write()
[all …]
/third_party/NuttX/fs/vfs/
Dfs_sendfile.c87 ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count) in sendfile() argument
188 nbyteswritten = write(outfd, wrbuffer, nbytesread); in sendfile()
/third_party/NuttX/fs/vfs/include/
Dfile.h303 ssize_t lib_sendfile(int outfd, int infd, off_t *offset, size_t count);
522 ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count);
/third_party/NuttX/include/nuttx/fs/
Dfile.h81 ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count);
/third_party/ltp/testcases/kernel/fs/doio/
Diogen.c382 int rseed, outfd, infinite; in main() local
401 outfd = 1; in main()
403 outfd = init_output(); in main()
439 if (write(outfd, (char *)&req, sizeof(req)) == -1) in main()
533 int outfd; in init_output() local
559 if ((outfd = open(Outpipe, O_RDWR)) == -1) { in init_output()
566 return (outfd); in init_output()
/third_party/python/Lib/
Dshutil.py90 outfd = fdst.fileno()
95 posix._fcopyfile(infd, outfd, flags)
121 outfd = fdst.fileno()
142 sent = os.sendfile(outfd, infd, offset, blocksize)
159 if offset == 0 and os.lseek(outfd, 0, os.SEEK_CUR) == 0:
/third_party/toybox/porting/liteos_a/lib/
Dlib.h379 long long gzip_fd(int infd, int outfd);
380 long long gunzip_fd(int infd, int outfd);
/third_party/NuttX/include/nuttx/net/
Dnet.h1371 ssize_t net_sendfile(int outfd, struct file *infile, off_t *offset,
/third_party/elfutils/src/
Dunstrip.c2190 int outfd = open (output_file, O_RDWR | O_CREAT, in handle_file() local
2193 if (outfd < 0) in handle_file()
2195 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); in handle_file()
2214 close (outfd); in handle_file()
/third_party/node/deps/npm/node_modules/nopt/
DREADME.md112 supply any WriteStream on the `outfd` and `logfd` config options.)
/third_party/python/Lib/test/
Dtest_shutil.py142 outfd = dst.fileno()
144 os.sendfile(outfd, infd, 0, 2)

12