fopen.c (333fc21e3cd79bca0c94d7722c5a56cb5ad078d1) fopen.c (54e4e385de33a961e801ceeea8146437e25edd88)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 38 unchanged lines hidden (view full) ---

47#include <stdio.h>
48#include <errno.h>
49#include "un-namespace.h"
50
51#include "local.h"
52
53FILE *
54fopen(file, mode)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 38 unchanged lines hidden (view full) ---

47#include <stdio.h>
48#include <errno.h>
49#include "un-namespace.h"
50
51#include "local.h"
52
53FILE *
54fopen(file, mode)
55 const char *file;
56 const char *mode;
55 const char * __restrict file;
56 const char * __restrict mode;
57{
58 FILE *fp;
59 int f;
60 int flags, oflags;
61
62 if ((flags = __sflags(mode, &oflags)) == 0)
63 return (NULL);
64 if ((fp = __sfp()) == NULL)

--- 24 unchanged lines hidden ---
57{
58 FILE *fp;
59 int f;
60 int flags, oflags;
61
62 if ((flags = __sflags(mode, &oflags)) == 0)
63 return (NULL);
64 if ((fp = __sfp()) == NULL)

--- 24 unchanged lines hidden ---