8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / sendmail / libsm / get.c
blob26226309f93defcd7da5f90eeae08a18047aa2c0
1 /*
2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1990, 1993
5 * The Regents of the University of California. All rights reserved.
7 * This code is derived from software contributed to Berkeley by
8 * Chris Torek.
10 * By using this file, you agree to the terms and conditions set
11 * forth in the LICENSE file which can be found at the top level of
12 * the sendmail distribution.
15 #pragma ident "%Z%%M% %I% %E% SMI"
17 #include <sm/gen.h>
18 SM_RCSID("@(#)$Id: get.c,v 1.16 2001/01/28 00:29:35 ca Exp $")
19 #include <sm/io.h>
20 #include <sm/assert.h>
21 #include "local.h"
24 ** SM_IO_GETC -- get a character from a file
26 ** Parameters:
27 ** fp -- the file to get the character from
28 ** timeout -- time to complete getc
30 ** Returns:
31 ** Success: the value of the character read.
32 ** Failure: SM_IO_EOF
34 ** This is a function version of the macro (in <sm/io.h>).
35 ** It is guarded with locks (which are currently not functional)
36 ** for multi-threaded programs.
39 #undef sm_io_getc
41 int
42 sm_io_getc(fp, timeout)
43 register SM_FILE_T *fp;
44 int timeout;
46 SM_REQUIRE_ISA(fp, SmFileMagic);
47 return sm_getc(fp, timeout);