getchar.c (e74101e4eff767325553039def89de70b70f36d3) getchar.c (2df1baf643a41348e4544eafee70dd249043831c)
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

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

52#undef getchar
53
54int
55getchar()
56{
57 int retval;
58 FLOCKFILE(stdin);
59 ORIENT(stdin, -1);
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

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

52#undef getchar
53
54int
55getchar()
56{
57 int retval;
58 FLOCKFILE(stdin);
59 ORIENT(stdin, -1);
60 retval = getc(stdin);
60 retval = __sgetc(stdin);
61 FUNLOCKFILE(stdin);
62 return (retval);
63}
61 FUNLOCKFILE(stdin);
62 return (retval);
63}