HelenOS sources
#ifndef POSIX_STDIO_H_
#define POSIX_STDIO_H_
#include <libc/stdio.h>
#include <stddef.h>
#include <io/verify.h>
#include <sys/types.h>
#include <stdarg.h>
#include <limits.h>
#define P_tmpdir "/tmp"
#define L_ctermid PATH_MAX
__C_DECLS_BEGIN;
extern FILE *fdopen(int, const char *);
extern int fileno(FILE *);
extern char *ctermid(char *s);
extern ssize_t getdelim(char **__restrict__ lineptr, size_t *__restrict__ n,
int delimiter, FILE *__restrict__ stream);
extern ssize_t getline(char **__restrict__ lineptr, size_t *__restrict__ n,
FILE *__restrict__ stream);
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
extern int fseeko64(FILE *stream, off64_t offset, int whence);
extern off64_t ftello64(FILE *stream);
#endif
#if _FILE_OFFSET_BITS == 64 && LONG_MAX == INT_MAX
#ifdef __GNUC__
extern int fseeko(FILE *stream, off_t offset, int whence) __asm__("fseeko64");
extern off_t ftello(FILE *stream) __asm__("ftello64");
#else
extern int fseeko64(FILE *stream, off_t offset, int whence);
extern off_t ftello64(FILE *stream);
#define fseeko fseeko64
#define ftello ftello64
#endif
#else
extern int fseeko(FILE *stream, off_t offset, int whence);
extern off_t ftello(FILE *stream);
#endif
extern int dprintf(int fildes, const char *__restrict__ format, ...)
_HELENOS_PRINTF_ATTRIBUTE(2, 3);
extern int vdprintf(int fildes, const char *__restrict__ format, va_list ap);
extern void flockfile(FILE *file);
extern int ftrylockfile(FILE *file);
extern void funlockfile(FILE *file);
extern int getc_unlocked(FILE *stream);
extern int getchar_unlocked(void);
extern int putc_unlocked(int c, FILE *stream);
extern int putchar_unlocked(int c);
extern char *tempnam(const char *dir, const char *pfx);
__C_DECLS_END;
#endif
HelenOS homepage, sources at GitHub