libsc  1.6.0
src/sc_c99_functions.h
00001 /*
00002   This file is part of the SC Library.
00003   The SC Library provides support for parallel scientific applications.
00004 
00005   Copyright (C) 2010 The University of Texas System
00006 
00007   The SC Library is free software; you can redistribute it and/or
00008   modify it under the terms of the GNU Lesser General Public
00009   License as published by the Free Software Foundation; either
00010   version 2.1 of the License, or (at your option) any later version.
00011 
00012   The SC Library is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015   Lesser General Public License for more details.
00016 
00017   You should have received a copy of the GNU Lesser General Public
00018   License along with the SC Library; if not, write to the Free Software
00019   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020   02110-1301, USA.
00021 */
00022 
00023 #ifndef SC_C99_FUNCTIONS_H
00024 #define SC_C99_FUNCTIONS_H
00025 
00026 #include <sc.h>
00027 
00028 /* Supply some C99 prototypes */
00029 #ifndef __cplusplus
00030 
00031 /* File function prototypes */
00032 int                 fsync (int fd);
00033 int                 fileno (FILE * stream);
00034 FILE               *fopen (const char *path, const char *mode);
00035 FILE               *fdopen (int fd, const char *mode);
00036 int                 mkstemp (char *template);
00037 
00038 /* Long size integer support */
00039 intmax_t            imaxabs (intmax_t);
00040 
00041 #endif /* !__cplusplus */
00042 
00043 /* Supply defines and prototypes that splint doesn't know about */
00044 #ifdef SC_SPLINT
00045 
00046 #ifndef UINT32_MAX
00047 #define UINT32_MAX  (4294967295U)
00048 #endif
00049 #define restrict
00050 
00051 long long int       strtoll (const char *nptr, char **endptr, int base);
00052 intmax_t            imaxabs (intmax_t a);
00053 
00054 #endif /* SC_SPLINT */
00055 
00056 #endif /* SC_C99_FUNCTIONS_H  */
 All Data Structures Files Functions Variables Typedefs Defines