Root/
Source at commit 1406 created 12 years 10 months ago. By meklort, Revert drivers.c so that kexts are only loaded when OSBundleRequired is set and that value is not safe mode. Added some comments about it too. | |
---|---|
1 | /*␊ |
2 | * fputc.c␊ |
3 | *␊ |
4 | * gcc "printf decompilation" expects this to exist...␊ |
5 | */␊ |
6 | ␊ |
7 | #include <stdio.h>␊ |
8 | extern size_t _fwrite(const void *buf, size_t count, FILE *f);␊ |
9 | int fputc(int c, FILE *f)␊ |
10 | {␊ |
11 | ␉unsigned char ch = c;␊ |
12 | ␊ |
13 | ␉return _fwrite(&ch, 1, f) == 1 ? ch : EOF;␊ |
14 | }␊ |
15 |