Deleted Added
full compact
fgetc.c (1574) fgetc.c (13545)
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)
38static char sccsid[] = "@(#)fgetc.c 8.1 (Berkeley) 6/4/93";
39#endif /* LIBC_SCCS and not lint */
40
41#include <stdio.h>
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)
38static char sccsid[] = "@(#)fgetc.c 8.1 (Berkeley) 6/4/93";
39#endif /* LIBC_SCCS and not lint */
40
41#include <stdio.h>
42#ifdef _THREAD_SAFE
43#include <pthread.h>
44#include "pthread_private.h"
45#endif
42
46
47int
43fgetc(fp)
44 FILE *fp;
45{
48fgetc(fp)
49 FILE *fp;
50{
46 return (__sgetc(fp));
51 int retval;
52#ifdef _THREAD_SAFE
53 _thread_flockfile(fp,__FILE__,__LINE__);
54#endif
55 retval = __sgetc(fp);
56#ifdef _THREAD_SAFE
57 _thread_funlockfile(fp);
58#endif
59 return (retval);
47}
60}