GNU Octave 11.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
oct-syscalls.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 1996-2026 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_oct_syscalls_h)
27#define octave_oct_syscalls_h 1
28
29#include "octave-config.h"
30
31#include <string>
32
33class string_vector;
34
35#include <sys/types.h>
36
39
40extern OCTAVE_API int dup2 (int, int);
41extern OCTAVE_API int dup2 (int, int, std::string&);
42
43extern OCTAVE_API int execvp (const std::string&, const string_vector&);
44extern OCTAVE_API int execvp (const std::string&, const string_vector&,
45 std::string&);
46
47extern OCTAVE_API pid_t fork (std::string&);
48
49extern OCTAVE_API pid_t vfork (std::string&);
50
51extern OCTAVE_API pid_t getpgrp (std::string&);
52
53extern OCTAVE_API pid_t getpid ();
54
55extern OCTAVE_API pid_t getppid ();
56
57extern OCTAVE_API gid_t getgid ();
58
59extern OCTAVE_API gid_t getegid ();
60
61extern OCTAVE_API uid_t getuid ();
62
63extern OCTAVE_API uid_t geteuid ();
64
65extern OCTAVE_API int pipe (int *);
66extern OCTAVE_API int pipe (int *, std::string&);
67
68extern OCTAVE_API pid_t waitpid (pid_t, int *status, int);
69extern OCTAVE_API pid_t waitpid (pid_t, int *status, int, std::string&);
70
71extern OCTAVE_API int wcontinue ();
72
73extern OCTAVE_API int wcoredump (int status);
74
75extern OCTAVE_API bool wifcontinued (int status);
76
77extern OCTAVE_API bool wifexited (int status);
78
79extern OCTAVE_API bool wifsignaled (int status);
80
81extern OCTAVE_API bool wifstopped (int status);
82
83extern OCTAVE_API int wexitstatus (int status);
84
85extern OCTAVE_API int wnohang ();
86
87extern OCTAVE_API int wstopsig (int status);
88
89extern OCTAVE_API int wtermsig (int status);
90
91extern OCTAVE_API int wuntraced ();
92
93extern OCTAVE_API int kill (pid_t, int);
94extern OCTAVE_API int kill (pid_t, int, std::string&);
95
96extern OCTAVE_API pid_t
97popen2 (const std::string&, const string_vector&, bool, int *);
98
99extern OCTAVE_API pid_t
100popen2 (const std::string&, const string_vector&, bool, int *,
101 std::string&);
102
103extern OCTAVE_API int fcntl (int, int, long);
104extern OCTAVE_API int fcntl (int, int, long, std::string&);
105
106OCTAVE_END_NAMESPACE(sys)
107OCTAVE_END_NAMESPACE(octave)
108
109#endif
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#define OCTAVE_API
Definition main.in.cc:55
int dup2(int, int)
int kill(pid_t, int)
bool wifexited(int status)
pid_t waitpid(pid_t, int *status, int)
int wstopsig(int status)
int pipe(int *)
pid_t popen2(const std::string &, const string_vector &, bool, int *)
pid_t getppid()
pid_t vfork(std::string &)
int wexitstatus(int status)
pid_t fork(std::string &)
bool wifstopped(int status)
bool wifcontinued(int status)
bool wifsignaled(int status)
gid_t getegid()
int wtermsig(int status)
int wuntraced()
uid_t getuid()
gid_t getgid()
int execvp(const std::string &, const string_vector &)
int wnohang()
int wcoredump(int status)
int fcntl(int, int, long)
pid_t getpgrp(std::string &)
pid_t getpid()
uid_t geteuid()
int wcontinue()