~ubuntu-branches/ubuntu/utopic/cdrdao/utopic

« back to all changes in this revision

Viewing changes to scsilib/libschily/geterrno.c

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Suffield
  • Date: 2004-06-24 22:33:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040624223316-534onzugaeeyq61j
Tags: upstream-1.1.9
ImportĀ upstreamĀ versionĀ 1.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* @(#)geterrno.c       1.9 03/06/15 Copyright 1985, 1995-2003 J. Schilling */
 
2
/*
 
3
 *      Get error number
 
4
 *
 
5
 *      Copyright (c) 1985, 1995-2003 J. Schilling
 
6
 */
 
7
/*
 
8
 * This program is free software; you can redistribute it and/or modify
 
9
 * it under the terms of the GNU General Public License as published by
 
10
 * the Free Software Foundation; either version 2, or (at your option)
 
11
 * any later version.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License along with
 
19
 * this program; see the file COPYING.  If not, write to the Free Software
 
20
 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
21
 */
 
22
 
 
23
#include <errno.h>
 
24
#include <standard.h>
 
25
#include <schily.h>
 
26
 
 
27
#ifndef HAVE_ERRNO_DEF
 
28
extern  int     errno;
 
29
#endif
 
30
 
 
31
#ifdef  geterrno
 
32
#undef  geterrno
 
33
#endif
 
34
 
 
35
EXPORT int
 
36
geterrno()
 
37
 
 
38
{
 
39
        return (errno);
 
40
}