if (asprintf (&path, "%s/%s", dir, file) == -1)
return NULL;
- FILE *stream = fopen (path, "rt");
+ FILE *stream = fopen (path, "rte");
free (path);
path = NULL;
if (stream != NULL)
static void vlc_CPU_init (void)
{
- FILE *info = fopen ("/proc/cpuinfo", "rt");
+ FILE *info = fopen ("/proc/cpuinfo", "rte");
if (info == NULL)
return;
char *path = NULL;
/* Find the path to libvlc (i.e. ourselves) */
- FILE *maps = fopen ("/proc/self/maps", "rt");
+ FILE *maps = fopen ("/proc/self/maps", "rte");
if (maps == NULL)
goto error;
FILE *stream;
int res;
- stream = fopen ("testfile.txt", "wb+");
+ stream = fopen ("testfile.txt", "wb+e");
assert (stream != NULL);
res = fputs (text, stream);