blob: 8f872ec7605f3ae49aec7eab87cb621c2a217a8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <errno.h>
#include <stdio.h>
void perror(const char *s) {
if (s) fprintf(stderr, "%s: ", s);
fprintf(stderr, "errno %d\n", errno);
}
int puts(const char *s) {
return printf("%s\n", s);
}
int getchar(void) {
return fgetc(stdin);
}
int putchar(int c) {
return fputc(c, stdout);
}
off_t lseek(int fd, off_t off, int whence) {
(void)fd; (void)off; (void)whence;
errno = ENOSYS;
return -1;
}
|