/*1Copyright (C) 1991-2002, The Numerical Algorithms Group Ltd.2All rights reserved.3Copyright (C) 2007-2013, Gabriel Dos Reis.4All rights resrved.56Redistribution and use in source and binary forms, with or without7modification, are permitted provided that the following conditions are8met:910- Redistributions of source code must retain the above copyright11notice, this list of conditions and the following disclaimer.1213- Redistributions in binary form must reproduce the above copyright14notice, this list of conditions and the following disclaimer in15the documentation and/or other materials provided with the16distribution.1718- Neither the name of The Numerical ALgorithms Group Ltd. nor the19names of its contributors may be used to endorse or promote products20derived from this software without specific prior written permission.2122THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS23IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED24TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A25PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER26OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,27EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,28PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR29PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF30LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING31NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS32SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.33*/3435#ifndef OPENAXIOM_CFUNS_included36#define OPENAXIOM_CFUNS_included3738#include "open-axiom.h"3940namespace OpenAxiom {4142OPENAXIOM_C_EXPORT int addtopath(char*);43OPENAXIOM_C_EXPORT int directoryp(char*);44OPENAXIOM_C_EXPORT int make_path_from_file(char*, char*);45OPENAXIOM_C_EXPORT int writeablep(const char*);46OPENAXIOM_C_EXPORT int readablep(const char*);47OPENAXIOM_C_EXPORT long findString(char*, char*);48OPENAXIOM_C_EXPORT int copyEnvValue(char*, char*);49OPENAXIOM_C_EXPORT int oa_chdir(const char*);50OPENAXIOM_C_EXPORT int oa_unlink(const char*);51OPENAXIOM_C_EXPORT int oa_rename(const char*, const char*);52OPENAXIOM_C_EXPORT const char* oa_acquire_temporary_pathname();53OPENAXIOM_C_EXPORT void oa_release_temporary_pathname(const char*);54OPENAXIOM_C_EXPORT int oa_mkdir(const char*);55OPENAXIOM_C_EXPORT int oa_system(const char*);56OPENAXIOM_C_EXPORT char* oa_getenv(const char*);57OPENAXIOM_C_EXPORT int oa_setenv(const char*, const char*);58OPENAXIOM_C_EXPORT int oa_getpid(void);59OPENAXIOM_C_EXPORT char* oa_getcwd(void);60OPENAXIOM_C_EXPORT int oa_access_file_for_read(const char*);61OPENAXIOM_C_EXPORT char* oa_dirname(const char*);62OPENAXIOM_C_EXPORT const char* oa_get_tmpdir(void);63OPENAXIOM_C_EXPORT int oa_copy_file(const char*, const char*);6465OPENAXIOM_C_EXPORT double plus_infinity(void);66OPENAXIOM_C_EXPORT double minus_infinity(void);67OPENAXIOM_C_EXPORT double quiet_double_NaN(void);68OPENAXIOM_C_EXPORT Byteorder oa_get_host_byteorder(void);6970OPENAXIOM_C_EXPORT const char* oa_concatenate_string(const char*, const char*);71OPENAXIOM_C_EXPORT const char* oa_strcat(const char*, const char*);72OPENAXIOM_C_EXPORT char* oa_substr(const char*, const size_t, const size_t);73OPENAXIOM_C_EXPORT char** oa_split(const char*, const char*, int*);7475}7677#endif /* OPENAXIOM_CFUNS_included */787980