Deleted Added
full compact
flags.c (50476) flags.c (71579)
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

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

34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38#if 0
39static char sccsid[] = "@(#)flags.c 8.1 (Berkeley) 6/4/93";
40#endif
41static const char rcsid[] =
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

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

34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38#if 0
39static char sccsid[] = "@(#)flags.c 8.1 (Berkeley) 6/4/93";
40#endif
41static const char rcsid[] =
42 "$FreeBSD: head/lib/libc/stdio/flags.c 50476 1999-08-28 00:22:10Z peter $";
42 "$FreeBSD: head/lib/libc/stdio/flags.c 71579 2001-01-24 13:01:12Z deischen $";
43#endif /* LIBC_SCCS and not lint */
44
45#include <sys/types.h>
46#include <sys/file.h>
47#include <stdio.h>
48#include <errno.h>
43#endif /* LIBC_SCCS and not lint */
44
45#include <sys/types.h>
46#include <sys/file.h>
47#include <stdio.h>
48#include <errno.h>
49
49#include "local.h"
50
51/*
52 * Return the (stdio) flags for a given mode. Store the flags
50#include "local.h"
51
52/*
53 * Return the (stdio) flags for a given mode. Store the flags
53 * to be passed to an open() syscall through *optr.
54 * to be passed to an _open() syscall through *optr.
54 * Return 0 on error.
55 */
56int
57__sflags(mode, optr)
58 register const char *mode;
59 int *optr;
60{
61 register int ret, m, o;

--- 34 unchanged lines hidden ---
55 * Return 0 on error.
56 */
57int
58__sflags(mode, optr)
59 register const char *mode;
60 int *optr;
61{
62 register int ret, m, o;

--- 34 unchanged lines hidden ---