Deleted Added
sdiff udiff text old ( 50476 ) new ( 71579 )
full compact
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 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>
49
50#include "local.h"
51
52/*
53 * Return the (stdio) flags for a given mode. Store the flags
54 * to be passed to an _open() syscall through *optr.
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 ---