os_errno.c

Go to the documentation of this file.
00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 1999, 2000
00005  *      Sleepycat Software.  All rights reserved.
00006  */
00007 
00008 #include "config.h"
00009 
00010 #ifndef lint
00011 static const char revid[] = "$Id: os__errno_8c-source.html,v 1.1 2008/06/08 10:21:08 sebdiaz Exp $";
00012 #endif /* not lint */
00013 
00014 #ifndef NO_SYSTEM_INCLUDES
00015 #include <errno.h>
00016 #endif
00017 
00018 #include "db_int.h"
00019 
00020 /*
00021  * CDB___os_get_errno --
00022  *      Return the value of errno.
00023  *
00024  * PUBLIC: int CDB___os_get_errno __P((void));
00025  */
00026 int
00027 CDB___os_get_errno()
00028 {
00029         /* This routine must be able to return the same value repeatedly. */
00030         return (errno);
00031 }
00032 
00033 /*
00034  * CDB___os_set_errno --
00035  *      Set the value of errno.
00036  *
00037  * PUBLIC: void CDB___os_set_errno __P((int));
00038  */
00039 void
00040 CDB___os_set_errno(evalue)
00041         int evalue;
00042 {
00043         errno = evalue;
00044 }

Generated on Sun Jun 8 10:56:38 2008 for GNUmifluz by  doxygen 1.5.5