Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/modules/klibc/fread2.c

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 * fread2.c
3 *
4 * The actual fread() function as a non-inline
5 */
6
7#define __NO_FREAD_FWRITE_INLINES
8#include <stdio.h>
9extern size_t _fread(void *buf, size_t count, FILE *f);
10size_t fread(void *ptr, size_t size, size_t nmemb, FILE * f)
11{
12return _fread(ptr, size * nmemb, f) / size;
13}
14

Archive Download this file

Revision: 1406