summaryrefslogtreecommitdiffstats
path: root/arch/ppc/coffboot/nonstdio.h
blob: 664b8384ab83b677ba4708bcc47999aa957f49e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (C) Paul Mackerras 1997.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */
typedef int	FILE;
extern FILE *stdin, *stdout;
#define NULL	((void *)0)
#define EOF	(-1)
#define fopen(n, m)	NULL
#define fflush(f)	0
#define fclose(f)	0
extern char *fgets();

#define perror(s)	printf("%s: no files!\n", (s))