mirror of
https://github.com/openbsd/src.git
synced 2025-01-02 14:25:36 -08:00
24f9d669f8
without poking directly into the FILE structure. Repeated testing, "nope, need a few more" feedback, and ok tb@
33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
/* $OpenBSD: stdio_ext.h,v 1.1 2024/08/12 20:56:55 guenther Exp $ */
|
|
/*
|
|
* Copyright (c) 2024 Philip Guenther <guenther@openbsd.org>
|
|
*
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
|
|
#ifndef _STDIO_EXT_H_
|
|
#define _STDIO_EXT_H_
|
|
|
|
#include <stdio.h>
|
|
|
|
size_t __fpending(FILE *);
|
|
size_t __freadahead(FILE *);
|
|
int __freading(FILE *);
|
|
const char *__freadptr(FILE *, size_t *_sizep);
|
|
void __freadptrinc(FILE *, size_t _inc);
|
|
void __fseterr(FILE *);
|
|
int __fwriting(FILE *);
|
|
|
|
#endif /* _STDIO_EXT_H_ */
|
|
|