Home
last modified time | relevance | path

Searched refs:cf (Results 1 – 2 of 2) sorted by relevance

/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dfdevopen.c95 struct __file_close *cf; in fdevopen() local
100 if ((cf = calloc(1, sizeof(*cf))) == 0) in fdevopen()
103 cf->file.flags = __SCLOSE; in fdevopen()
104 cf->close = fdevclose; in fdevopen()
107 cf->file.get = get; in fdevopen()
108 cf->file.flags |= __SRD; in fdevopen()
112 cf->file.put = put; in fdevopen()
113 cf->file.flush = flush; in fdevopen()
114 cf->file.flags |= __SWR; in fdevopen()
117 return (FILE *) cf; in fdevopen()
Dfclose.c37 struct __file_close *cf = (struct __file_close *) f; in fclose() local
38 if ((f->flags & __SCLOSE) && cf->close) { in fclose()
42 return (*cf->close)(f); in fclose()