Lines Matching refs:fd
32 * Only one security context, thus only work on one fd at a time!
59 looping_write(int fd, const char *buf, int len)
67 cc = write(fd, buf, len);
84 looping_read(int fd, char *buf, int len)
89 cc = read(fd, buf, len);
152 secure_putbyte(int fd, uchar_t c)
164 ret = secure_putbuf(fd, ucbuf, smaxqueue);
177 secure_flush(int fd)
184 if (ret = secure_putbuf(fd, ucbuf, nout))
186 return (secure_putbuf(fd, (uchar_t *)"", nout = 0));
210 secure_write(int fd, const void *inbuf, size_t nbyte)
217 return (write(fd, buf, nbyte));
219 if ((c = secure_putbyte(fd, buf[i++])) < 0)
230 static int secure_putbuf(int fd, uchar_t *buf, uint_t nbyte)
279 if (looping_write(fd, (char *)&net_len, 4) == -1)
281 if (looping_write(fd, outbuf, length) != length)
287 secure_getbyte(int fd)
296 looping_read(fd, (char *)&length, sizeof (length)))
308 if ((kerror = looping_read(fd, (char *)ucbuf, length))
367 secure_read(int fd, void *inbuf, size_t nbyte)
373 return (read(fd, buf, nbyte));
378 switch (c = secure_getbyte(fd)) {