Home
last modified time | relevance | path

Searched refs:outfd (Results 1 - 25 of 27) sorted by relevance

12

/third_party/toybox/toys/other/
H A Ddos2unix.c37 int outfd = 1, catch = 0; in do_dos2unix() local
39 if (fd) outfd = copy_tempfile(fd, name, &TT.tempfile); in do_dos2unix()
61 xwrite(outfd, toybuf, out); in do_dos2unix()
63 if (catch) xwrite(outfd, "\r", 1); in do_dos2unix()
65 if (fd) replace_tempfile(-1, outfd, &TT.tempfile); in do_dos2unix()
H A 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()
707 // can't test outfd==1 because may have been called with stdin+stdout closed in do_bunzip2()
716 (err ? delete_tempfile : replace_tempfile)(-1, outfd, &tmp); in do_bunzip2()
/third_party/mesa3d/src/freedreno/afuc/
H A 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/
H A 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, "[Erro
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/protocol/
H A 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, "[Erro
[all...]
/third_party/spirv-tools/utils/vscode/src/lsp/protocol/
H A 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, "[Erro
[all...]
/third_party/elfutils/tests/
H A 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()
H A 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/
H A Dsplit.c40 int outfd = -1; in do_split() local
71 xclose(outfd); in do_split()
72 outfd = xcreate(TT.outfile, O_RDWR|O_CREAT|O_TRUNC, st.st_mode & 0777); in do_split()
87 xwrite(outfd, toybuf+pos, j); in do_split()
92 xclose(outfd); in do_split()
/third_party/curl/docs/examples/
H A 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/cups-filters/filter/
H A Dsys5ippprinter.c65 int infd, int outfd);
528 int outfd) /* I - Stdout file descriptor */ in exec_filter()
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()
525 exec_filter(const char *filter, char **argv, int infd, int outfd) exec_filter() argument
/third_party/cups-filters/cupsfilters/
H A Dpdftoippprinter.c64 int infd, int outfd);
588 int outfd) /* I - Stdout file descriptor */ in exec_filter()
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()
585 exec_filter(const char *filter, char **argv, int infd, int outfd) exec_filter() argument
/third_party/toybox/lib/
H A Ddeflate.c29 int infd, outfd; member
145 xwrite(dd->outfd, dd->data, 32768); in output_byte()
201 // Decompress deflated data from bitbuf to dd->outfd.
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()
H A Dlib.h388 long long gzip_fd(int infd, int outfd);
389 long long gunzip_fd(int infd, int outfd);
/third_party/NuttX/fs/vfs/
H A Dfs_sendfile.c62 * outfd - A descriptor opened for writing.
78 * If the transfer was successful, the number of bytes written to outfd is
87 ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count) in sendfile() argument
126 /* Now transfer 'count' bytes from the infd to the outfd */ in sendfile()
186 /* Write the buffer of data to the outfd */ in sendfile()
188 nbyteswritten = write(outfd, wrbuffer, nbytesread); in sendfile()
/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/
H A 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 in do_scsi_device_read_write()
6282 int infd, outfd, blocks; do_scsi_sgm_read_write() local
[all...]
/third_party/NuttX/fs/vfs/include/
H A 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/
H A Dfile.h81 ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count);
/third_party/backends/backend/
H A Dhp-scl.c126 int outfd; member
1175 int outfd, hp_bool_t use_imgbuf) in process_data_init()
1197 ph->outfd = outfd; in process_data_init()
1244 || (write (ph->outfd, ph->wr_buf, ph->wr_buf_size) != ph->wr_buf_size)) in process_data_write()
1257 || (write (ph->outfd, data, ph->wr_buf_size) != ph->wr_buf_size)) in process_data_write()
1393 if ( signal_caught || (write (ph->outfd, ph->wr_buf, nbytes) != nbytes)) in process_data_flush()
1420 || (write(ph->outfd, image_data, bytes_per_line) != bytes_per_line)) in process_data_flush()
1437 || (write(ph->outfd, image_data, bytes_per_line) != bytes_per_line)) in process_data_flush()
1469 sanei_hp_scsi_pipeout (HpScsi this, int outfd, HpProcessDat argument
1174 process_data_init(HpProcessData *procdata, const unsigned char *map, int outfd, hp_bool_t use_imgbuf) process_data_init() argument
[all...]
H A Dhp-scsi.h57 SANE_Status sanei_hp_scsi_pipeout (HpScsi this, int outfd,
/third_party/ltp/testcases/kernel/fs/doio/
H A 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/
H A Dshutil.py92 outfd = fdst.fileno()
97 posix._fcopyfile(infd, outfd, flags)
123 outfd = fdst.fileno()
144 sent = os.sendfile(outfd, infd, offset, blocksize)
161 if offset == 0 and os.lseek(outfd, 0, os.SEEK_CUR) == 0:
/third_party/toybox/porting/liteos_a/lib/
H A 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/
H A Dnet.h1371 ssize_t net_sendfile(int outfd, struct file *infile, off_t *offset,
/third_party/elfutils/src/
H A Dunstrip.c2192 int outfd = open (output_file, O_RDWR | O_CREAT, in handle_file()
2195 if (outfd < 0) in handle_file()
2197 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); in handle_file()
2216 close (outfd); in handle_file()
2190 int outfd = open (output_file, O_RDWR | O_CREAT, handle_file() local

Completed in 29 milliseconds

12