GNU Octave 10.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-2025 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
38
40
41extern OCTAVE_API int dup2 (int, int);
42extern OCTAVE_API int dup2 (int, int, std::string&);
43
44extern OCTAVE_API int execvp (const std::string&, const string_vector&);
45extern OCTAVE_API int execvp (const std::string&, const string_vector&,
46 std::string&);
47
48extern OCTAVE_API pid_t fork (std::string&);
49
50extern OCTAVE_API pid_t vfork (std::string&);
51
52extern OCTAVE_API pid_t getpgrp (std::string&);
53
54extern OCTAVE_API pid_t getpid ();
55
56extern OCTAVE_API pid_t getppid ();
57
58extern OCTAVE_API gid_t getgid ();
59
60extern OCTAVE_API gid_t getegid ();
61
62extern OCTAVE_API uid_t getuid ();
63
64extern OCTAVE_API uid_t geteuid ();
65
66extern OCTAVE_API int pipe (int *);
67extern OCTAVE_API int pipe (int *, std::string&);
68
69extern OCTAVE_API pid_t waitpid (pid_t, int *status, int);
70extern OCTAVE_API pid_t waitpid (pid_t, int *status, int, std::string&);
71
72extern OCTAVE_API int wcontinue ();
73
74extern OCTAVE_API int wcoredump (int status);
75
76extern OCTAVE_API bool wifcontinued (int status);
77
78extern OCTAVE_API bool wifexited (int status);
79
80extern OCTAVE_API bool wifsignaled (int status);
81
82extern OCTAVE_API bool wifstopped (int status);
83
84extern OCTAVE_API int wexitstatus (int status);
85
86extern OCTAVE_API int wnohang ();
87
88extern OCTAVE_API int wstopsig (int status);
89
90extern OCTAVE_API int wtermsig (int status);
91
92extern OCTAVE_API int wuntraced ();
93
94extern OCTAVE_API int kill (pid_t, int);
95extern OCTAVE_API int kill (pid_t, int, std::string&);
96
97extern OCTAVE_API pid_t
98popen2 (const std::string&, const string_vector&, bool, int *);
99
100extern OCTAVE_API pid_t
101popen2 (const std::string&, const string_vector&, bool, int *,
102 std::string&);
103
104extern OCTAVE_API int fcntl (int, int, long);
105extern OCTAVE_API int fcntl (int, int, long, std::string&);
106
107OCTAVE_END_NAMESPACE(sys)
108OCTAVE_END_NAMESPACE(octave)
109
110#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()