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 | * fputs.c␊ |
3 | *␊ |
4 | * This isn't quite fputs() in the stdio sense, since we don't␊ |
5 | * have stdio, but it takes a file descriptor argument instead␊ |
6 | * of the FILE *.␊ |
7 | */␊ |
8 | ␊ |
9 | #include <stdio.h>␊ |
10 | #include <string.h>␊ |
11 | ␊ |
12 | extern size_t _fwrite(const void *buf, size_t count, FILE *f);␊ |
13 | int fputs(const char *s, FILE *file)␊ |
14 | {␊ |
15 | ␉return _fwrite(s, strlen(s), file);␊ |
16 | }␊ |
17 |