GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
sysdep.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1993-2015 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if !defined (octave_sysdep_h)
24 #define octave_sysdep_h 1
25 
26 #include <cstdio>
27 
28 #include <string>
29 
30 #include "lo-ieee.h"
31 #include "lo-sysdep.h"
32 
33 extern OCTINTERP_API void sysdep_init (void);
34 
35 extern OCTINTERP_API void sysdep_cleanup (void);
36 
37 extern OCTINTERP_API void raw_mode (bool, bool wait = true);
38 
39 extern OCTINTERP_API FILE *octave_popen (const char *command, const char *mode);
40 extern OCTINTERP_API int octave_pclose (FILE *f);
41 
42 extern OCTINTERP_API int octave_kbhit (bool wait = true);
43 
44 extern OCTINTERP_API std::string get_P_tmpdir (void);
45 
46 extern void w32_set_quiet_shutdown (void);
47 
48 #if defined (__WIN32__) && ! defined (_POSIX_VERSION)
49 extern void MINGW_signal_cleanup (void);
50 #define MINGW_SIGNAL_CLEANUP() MINGW_signal_cleanup ()
51 #else
52 #define MINGW_SIGNAL_CLEANUP() do { } while (0)
53 #endif
54 
55 extern OCTINTERP_API bool same_file_internal (const std::string&,
56  const std::string&);
57 
58 #endif
OCTINTERP_API int octave_kbhit(bool wait=true)
Definition: sysdep.cc:514
void w32_set_quiet_shutdown(void)
OCTINTERP_API std::string get_P_tmpdir(void)
Definition: sysdep.cc:545
F77_RET_T const double const double * f
#define OCTINTERP_API
Definition: mexproto.h:66
OCTINTERP_API void sysdep_init(void)
Definition: sysdep.cc:309
OCTINTERP_API void raw_mode(bool, bool wait=true)
Definition: sysdep.cc:339
OCTINTERP_API void sysdep_cleanup(void)
Definition: sysdep.cc:321
OCTINTERP_API bool same_file_internal(const std::string &, const std::string &)
Definition: sysdep.cc:246
OCTINTERP_API int octave_pclose(FILE *f)
Definition: sysdep.cc:502
OCTINTERP_API FILE * octave_popen(const char *command, const char *mode)
Definition: sysdep.cc:482