sysdep.h

Go to the documentation of this file.
00001 /*
00002 
00003 Copyright (C) 1993-2012 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 3 of the License, or (at your
00010 option) any later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, see
00019 <http://www.gnu.org/licenses/>.
00020 
00021 */
00022 
00023 #if !defined (octave_sysdep_h)
00024 #define octave_sysdep_h 1
00025 
00026 #include <cstdio>
00027 
00028 #include <string>
00029 
00030 #include "lo-ieee.h"
00031 #include "lo-sysdep.h"
00032 
00033 extern void sysdep_init (void);
00034 
00035 extern void sysdep_cleanup (void);
00036 
00037 extern OCTINTERP_API void raw_mode (bool, bool wait = true);
00038 
00039 extern OCTINTERP_API FILE *octave_popen (const char *command, const char *mode);
00040 extern OCTINTERP_API int octave_pclose (FILE *f);
00041 
00042 extern OCTINTERP_API int octave_kbhit (bool wait = true);
00043 
00044 extern OCTINTERP_API std::string get_P_tmpdir (void);
00045 
00046 extern void w32_set_quiet_shutdown (void);
00047 
00048 #if defined (__WIN32__) && ! defined (_POSIX_VERSION)
00049 extern void MINGW_signal_cleanup (void);
00050 #define USE_W32_SIGINT 1
00051 #define MINGW_SIGNAL_CLEANUP() MINGW_signal_cleanup ()
00052 #else
00053 #define MINGW_SIGNAL_CLEANUP() do { } while (0)
00054 #endif
00055 
00056 extern OCTINTERP_API bool same_file_internal (const std::string&, const std::string&);
00057 
00058 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines