diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1997-06-21 17:46:04 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1997-06-21 17:46:04 +0000 |
| commit | d99e457ef6146b4a7219ed739401fd97ed469e46 (patch) | |
| tree | 90efe84924d2759d8cbbb3059908d60d9d5c7812 /include/stdio.h | |
| parent | a4e6fbb107aee085508f42f13a62f16892dc2c8f (diff) | |
Notes
Diffstat (limited to 'include/stdio.h')
| -rw-r--r-- | include/stdio.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h index a238301d0e50..711c59a27a3e 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)stdio.h 8.4 (Berkeley) 1/4/94 - * $Id$ + * $Id: stdio.h,v 1.8 1996/10/27 18:13:33 wosch Exp $ */ #ifndef _STDIO_H_ @@ -282,6 +282,30 @@ __END_DECLS #endif /* not ANSI */ /* + * Portability hacks. See <sys/types.h>. + */ +#if !defined (_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +__BEGIN_DECLS +#ifndef _FTRUNCATE_DECLARED +#define _FTRUNCATE_DECLARED +int ftruncate __P((int, _BSD_OFF_T_)); +#endif +#ifndef _LSEEK_DECLARED +#define _LSEEK_DECLARED +_BSD_OFF_T_ lseek __P((int, _BSD_OFF_T_, int)); +#endif +#ifndef _MMAP_DECLARED +#define _MMAP_DECLARED +char *mmap __P((char *, size_t, int, int, int, _BSD_OFF_T_)); +#endif +#ifndef _TRUNCATE_DECLARED +#define _TRUNCATE_DECLARED +int truncate __P((const char *, _BSD_OFF_T_)); +#endif +__END_DECLS +#endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */ + +/* * Routines that are purely local. */ #if !defined (_ANSI_SOURCE) && !defined(_POSIX_SOURCE) |
