Home
last modified time | relevance | path

Searched refs:uio (Results 1 – 8 of 8) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dputw.c41 struct __suio uio; in putw() local
46 iov.iov_len = uio.uio_resid = sizeof(w); in putw()
47 uio.uio_iov = &iov; in putw()
48 uio.uio_iovcnt = 1; in putw()
51 ret = __sfvwrite(fp, &uio); in putw()
Dfputs.c45 struct __suio uio; in fputs() local
50 iov.iov_len = uio.uio_resid = strlen(s); in fputs()
51 uio.uio_iov = &iov; in fputs()
52 uio.uio_iovcnt = 1; in fputs()
55 ret = __sfvwrite(fp, &uio); in fputs()
Dputs.c46 struct __suio uio; in puts() local
54 uio.uio_resid = c + 1; in puts()
55 uio.uio_iov = &iov[0]; in puts()
56 uio.uio_iovcnt = 2; in puts()
59 ret = __sfvwrite(stdout, &uio); in puts()
Dfwrite.c51 struct __suio uio; in fwrite() local
72 uio.uio_resid = iov.iov_len = n; in fwrite()
73 uio.uio_iov = &iov; in fwrite()
74 uio.uio_iovcnt = 1; in fwrite()
83 ret = __sfvwrite(fp, &uio); in fwrite()
87 return ((n - uio.uio_resid) / size); in fwrite()
Dfputwc.c46 struct __suio uio; in __fputwc_unlock() local
51 uio.uio_iov = &iov; in __fputwc_unlock()
52 uio.uio_iovcnt = 1; in __fputwc_unlock()
70 uio.uio_resid = iov.iov_len = size; in __fputwc_unlock()
71 if (__sfvwrite(fp, &uio)) { in __fputwc_unlock()
Dfvwrite.c48 __sfvwrite(FILE *fp, struct __suio *uio) in __sfvwrite() argument
57 if ((len = uio->uio_resid) == 0) in __sfvwrite()
68 iov = uio->uio_iov; in __sfvwrite()
90 } while ((uio->uio_resid -= w) != 0); in __sfvwrite()
153 } while ((uio->uio_resid -= w) != 0); in __sfvwrite()
197 } while ((uio->uio_resid -= w) != 0); in __sfvwrite()
Dvfprintf.c99 __sprint(FILE *fp, struct __suio *uio) in __sprint() argument
103 if (uio->uio_resid == 0) { in __sprint()
104 uio->uio_iovcnt = 0; in __sprint()
107 err = __sfvwrite(fp, uio); in __sprint()
108 uio->uio_resid = 0; in __sprint()
109 uio->uio_iovcnt = 0; in __sprint()
325 struct __suio uio; /* output information: summary */ in __vfprintf() local
358 uio.uio_resid += (len); \ in __vfprintf()
360 if (++uio.uio_iovcnt >= NIOV) { \ in __vfprintf()
361 if (__sprint(fp, &uio)) \ in __vfprintf()
[all …]
Dvfwprintf.c134 struct __suio uio; in __xfputwc() local
148 uio.uio_iov = &iov; in __xfputwc()
149 uio.uio_resid = len; in __xfputwc()
150 uio.uio_iovcnt = 1; in __xfputwc()
153 return (__sfvwrite(fp, &uio) != EOF ? (wint_t)wc : WEOF); in __xfputwc()