annotate liboctave/system/oct-syscalls.h @ 27919:1891570abac8

update Octave Project Developers copyright for the new year In files that have the "Octave Project Developers" copyright notice, update for 2020.
author John W. Eaton <jwe@octave.org>
date Mon, 06 Jan 2020 22:29:51 -0500
parents b442ec6dda5c
children bd51beb6205e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
1 /*
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
2
27919
1891570abac8 update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 27918
diff changeset
3 Copyright (C) 1996-2020 The Octave Project Developers
27918
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 26376
diff changeset
4
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 26376
diff changeset
5 See the file COPYRIGHT.md in the top-level directory of this distribution
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 26376
diff changeset
6 or <https://octave.org/COPYRIGHT.html/>.
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 26376
diff changeset
7
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
8
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
9 This file is part of Octave.
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
10
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23615
diff changeset
11 Octave is free software: you can redistribute it and/or modify it
22755
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
12 under the terms of the GNU General Public License as published by
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23615
diff changeset
13 the Free Software Foundation, either version 3 of the License, or
22755
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
14 (at your option) any later version.
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
15
22755
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
16 Octave is distributed in the hope that it will be useful, but
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
17 WITHOUT ANY WARRANTY; without even the implied warranty of
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22323
diff changeset
19 GNU General Public License for more details.
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
20
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
21 You should have received a copy of the GNU General Public License
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6321
diff changeset
22 along with Octave; see the file COPYING. If not, see
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23615
diff changeset
23 <https://www.gnu.org/licenses/>.
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
24
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
25 */
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
26
20791
f7084eae3318 maint: Use Octave coding conventions for #if statements.
Rik <rik@octave.org>
parents: 19697
diff changeset
27 #if ! defined (octave_oct_syscalls_h)
17822
ebb3ef964372 maint: Use common #define syntax "octave_filename_h" in h_files.
Rik <rik@octave.org>
parents: 17769
diff changeset
28 #define octave_oct_syscalls_h 1
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
29
21244
1473547f50f5 include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents: 20791
diff changeset
30 #include "octave-config.h"
1473547f50f5 include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents: 20791
diff changeset
31
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
32 #include <string>
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
33
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
34 class string_vector;
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
35
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
36 #include <sys/types.h>
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
37
21734
11af9c03400c write namespace keyword and name on same line in C++ files
John W. Eaton <jwe@octave.org>
parents: 21727
diff changeset
38 namespace octave
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
39 {
21734
11af9c03400c write namespace keyword and name on same line in C++ files
John W. Eaton <jwe@octave.org>
parents: 21727
diff changeset
40 namespace sys
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
41 {
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
42 extern OCTAVE_API int dup2 (int, int);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
43 extern OCTAVE_API int dup2 (int, int, std::string&);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
44
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
45 extern OCTAVE_API int execvp (const std::string&, const string_vector&);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
46 extern OCTAVE_API int execvp (const std::string&, const string_vector&,
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
47 std::string&);
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
48
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
49 extern OCTAVE_API pid_t fork (std::string&);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
50
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
51 extern OCTAVE_API pid_t vfork (std::string&);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
52
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
53 extern OCTAVE_API pid_t getpgrp (std::string&);
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
54
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
55 extern OCTAVE_API pid_t getpid (void);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
56
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
57 extern OCTAVE_API pid_t getppid (void);
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
58
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
59 extern OCTAVE_API gid_t getgid (void);
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
60
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
61 extern OCTAVE_API gid_t getegid (void);
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
62
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
63 extern OCTAVE_API uid_t getuid (void);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
64
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
65 extern OCTAVE_API uid_t geteuid (void);
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
66
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
67 extern OCTAVE_API int pipe (int *);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
68 extern OCTAVE_API int pipe (int *, std::string&);
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
69
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
70 extern OCTAVE_API pid_t waitpid (pid_t, int *status, int);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
71 extern OCTAVE_API pid_t waitpid (pid_t, int *status, int, std::string&);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
72
21921
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
73 extern OCTAVE_API int wcontinue (void);
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
74
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
75 extern OCTAVE_API int wcoredump (int status);
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
76
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
77 extern OCTAVE_API bool wifcontinued (int status);
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
78
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
79 extern OCTAVE_API bool wifexited (int status);
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
80
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
81 extern OCTAVE_API bool wifsignaled (int status);
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
82
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
83 extern OCTAVE_API bool wifstopped (int status);
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
84
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
85 extern OCTAVE_API int wexitstatus (int status);
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
86
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
87 extern OCTAVE_API int wnohang (void);
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
88
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
89 extern OCTAVE_API int wstopsig (int status);
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
90
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
91 extern OCTAVE_API int wtermsig (int status);
21937
55f7de37b618 maint: Strip trailing whitespace from source files.
John W. Eaton <jwe@octave.org>
parents: 21921
diff changeset
92
21921
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
93 extern OCTAVE_API int wuntraced (void);
ecfcc8527661 hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents: 21734
diff changeset
94
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
95 extern OCTAVE_API int kill (pid_t, int);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
96 extern OCTAVE_API int kill (pid_t, int, std::string&);
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
97
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
98 extern OCTAVE_API pid_t
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
99 popen2 (const std::string&, const string_vector&, bool, int *);
4294
755f6509bb01 [project @ 2003-01-11 04:01:53 by jwe]
jwe
parents: 3504
diff changeset
100
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
101 extern OCTAVE_API pid_t
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
102 popen2 (const std::string&, const string_vector&, bool, int *,
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
103 std::string&);
6321
363a2f8c9e97 [project @ 2007-02-16 20:26:23 by dbateman]
dbateman
parents: 6108
diff changeset
104
21609
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
105 extern OCTAVE_API int fcntl (int, int, long);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
106 extern OCTAVE_API int fcntl (int, int, long, std::string&);
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
107 }
46f059de4dce use namespace instead of struct with static members for system call wrappers
John W. Eaton <jwe@octave.org>
parents: 21244
diff changeset
108 }
2941
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
109
b779a5b8aed4 [project @ 1997-05-08 02:14:34 by jwe]
jwe
parents:
diff changeset
110 #endif