Revert "usbd - Do not start moused by default when a usb mouse is connected"
[dragonfly.git] / contrib / sendmail-8.14 / libsm / ferror.c
blob9487479a2204653aa4d2e96b2d5a453bfc484ecc
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 #include <sm/gen.h>
16 SM_RCSID("@(#)$Id: ferror.c,v 1.13 2001/09/11 04:04:48 gshapiro Exp $")
17 #include <sm/io.h>
18 #include <sm/assert.h>
19 #include "local.h"
22 ** SM_IO_ERROR -- subroutine version of the macro sm_io_error.
24 ** Parameters:
25 ** fp -- file pointer
27 ** Returns:
28 ** 0 (zero) when 'fp' is not in an error state
29 ** non-zero when 'fp' is in an error state
32 #undef sm_io_error
34 int
35 sm_io_error(fp)
36 SM_FILE_T *fp;
38 SM_REQUIRE_ISA(fp, SmFileMagic);
40 return sm_error(fp);