Searched refs:write (Results 1 - 25 of 126) sorted by relevance

123456

/ast/src/lib/libast/comp/
H A Dsymlink.c51 n = (write(fd, FAKELINK_MAGIC, sizeof(FAKELINK_MAGIC)) != sizeof(FAKELINK_MAGIC) || write(fd, a, n) != n) ? -1 : 0;
/ast/src/lib/libcs/
H A Dcscontrol.c42 return write(fd, "", 1) == 1 ? 0 : -1;
H A Dcsclient.c111 write(1, prompt, promptlen);
157 write(sdf[i], "quit\n", 5);
169 if ((m = u - s) > 0 && write(sdf[i], s, m) != m)
170 error(ERROR_SYSTEM|3, "/dev/fd/%d: write error", sdf[i]);
173 write(1, prompt, promptlen);
176 write(1, "\n", 1);
189 if (write(sdf[i], s, n) != n)
190 error(ERROR_SYSTEM|3, "/dev/fd/%d: write error", sdf[i]);
192 write(1, prompt, promptlen);
H A Dcswrite.c25 * write n bytes to fd, using multiple write(2) if necessary
38 messagef((state->id, NiL, -9, "write(%d,%d) `%-.*s'", fd, n, n - 1, (n > 0 && *((char*)buf + n - 1) == '\n') ? (char*)buf : "..."));
39 if ((i = write(fd, p, n)) <= 0)
41 messagef((state->id, NiL, -9, "write(%d,%d) [%d]", fd, n, i));
/ast/src/cmd/tests/sfio/
H A Dtpkrd.c31 if(write(Fd[1],"01234\n56789\n",12) != 12)
54 if(write(Fd[1],"abcd",4) != 4)
55 terror("Couldn't write to pipe");
H A Dtstkpk.c40 if(write(fd[1],"ab",2) != 2)
48 if(write(fd[1],"cd",2) != 2)
H A Dtmprdwr.c62 if((n = write(dc->send, &r, sizeof(int))) != sizeof(int))
89 /* write out a buffer of data */
90 if((size = write(sffileno(f), buf, sizeof(buf))) != sizeof(buf))
91 terror("Bad write to file");
92 if(write(send, &size, sizeof(int)) != sizeof(int))
109 if(write(send, &size, sizeof(int)) != sizeof(int))
H A Dtmpread.c51 if(write(p[1], wbuf, sizeof(wbuf)) != sizeof(wbuf))
H A Dtwhole.c38 return write(sffileno(f),buf,n);
54 terror("Opening to write");
70 terror("Opening to write");
/ast/src/cmd/mailx/
H A Dtty.c242 write(wfd, label, n);
263 write(wfd, "\r", 1);
265 write(wfd, " ", 1);
266 write(wfd, "\r", 1);
287 write(wfd, label, strlen(label));
289 write(wfd, buf, last);
301 write(wfd, "\a", 1);
303 write(wfd, "\b \b", 3);
309 write(wfd, buf, last);
311 write(wf
[all...]
/ast/src/lib/libz/
H A Dinffast.c34 Decode literal, length, and distance codes and write out the resulting
83 unsigned write; /* window write index */ local
110 write = state->write;
196 if (write == 0) { /* very common case */
206 else if (write < op) { /* wrap around window */
207 from += wsize + write - op;
208 op -= write;
215 if (write < le
[all...]
H A Dinflate.h44 LIT, /* o: waiting for output space to write literal */
91 unsigned write; /* window write index */ member in struct:inflate_state
/ast/src/cmd/at/
H A Datx.c53 if ((z = write(fd, s, i)) < 0)
66 if ((z = write(fd, buf, n)) < 0)
85 error_info.write = stampwrite;
/ast/src/lib/libvgraph/
H A Dkpvdebug.h20 write(2,buf,strlen(buf));
42 #define PRINT(fd,s,v) do {char _b[1024];sprintf(_b,s,v);write((fd),_b,strlen(_b));} while(0)
43 #define WRITE(fd,d,n) write((fd),(d),(n))
/ast/src/lib/libast/port/
H A Dastcopy.c74 if (write(wfd, mapbuf, mapsize) != mapsize || lseek(rfd, mapsize, 1) == ((off_t)-1)) return(-1);
88 if ((c = read(rfd, buf, (size_t)n)) > 0 && write(wfd, buf, (size_t)c) != c) c = -1;
/ast/src/lib/libtksh/include/
H A DtclInt.h61 #ifdef write
62 #undef write macro
/ast/src/cmd/3d/features/
H A Dpeek.c44 if (pipe(fds) || write(fds[1], msg, sizeof(msg)) != sizeof(msg))
/ast/src/cmd/3d/
H A Dwrite3d.c71 NoN(write)
H A Dcopy.c81 if (write(wfd, mapbuf, mapsize) != mapsize)
102 if (write(wfd, buf, n) != n)
H A Dast.c84 #define write WRITE macro
/ast/src/cmd/cs/vcs_src/
H A Difs_func.c59 * read/write the security data
78 write( FileNum, "ifs_data\n", 9 );
80 if( pos <= 0 ) { /* write security data */
82 if( write( FileNum, data, len ) != len )
225 write( fd, buf, len );
308 write( flog, msg, strlen(msg) );
358 write( fd, "-invalid-\n", 10 );
361 write( fd, "\n", 1 );
/ast/src/lib/libast/aso/
H A Daso-fcntl.c76 else if (write(apl->fd, &references, sizeof(references)) != sizeof(references))
125 if (write(fd, &references, sizeof(references)) != sizeof(references))
146 if (write(fd, &references, sizeof(references)) != sizeof(references))
/ast/src/lib/libast/include/
H A Ddebug.h53 #define DEBUG_PRINT(fd,s,v) do {char _b[1024];write(fd,_b,sfsprintf(_b,sizeof(_b),s,v));} while(0)
54 #define DEBUG_WRITE(fd,d,n) write((fd),(d),(n))
/ast/src/cmd/paxlib/calib/
H A Dcamap.c67 if (write(out,header,z) != z)
77 if (write(out,buff[odd],z) != z)
/ast/src/lib/libast/vmalloc/
H A Dvmmopen.c117 sprintf(mesg, "File: %s\n", mmdc->file ); write(fd, mesg, strlen(mesg));
118 sprintf(mesg, "Project: %10d\n", mmdc->proj); write(fd, mesg, strlen(mesg));
119 sprintf(mesg, "Memory: %#010lx\n", mmdc->mmvm); write(fd, mesg, strlen(mesg));
120 sprintf(mesg, "Size: %10d\n", mmdc->size); write(fd, mesg, strlen(mesg));
121 sprintf(mesg, "Shmid: %10d\n", mmdc->shmid); write(fd, mesg, strlen(mesg));
123 sprintf(mesg, "File header:\n"); write(fd, mesg, strlen(mesg));
124 sprintf(mesg, "Magic: %10d\n", mmdc->mmvm->magic); write(fd, mesg, strlen(mesg));
125 sprintf(mesg, "Base: %#010lx\n", mmdc->mmvm->base); write(fd, mesg, strlen(mesg));
126 sprintf(mesg, "Size: %10d\n", mmdc->mmvm->size); write(fd, mesg, strlen(mesg));
127 sprintf(mesg, "Busy: %10d\n", mmdc->mmvm->busy); write(f
[all...]

Completed in 100 milliseconds

123456