OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
rad_sys_call.c
Go to the documentation of this file.
1//Copyright> OpenRadioss
2//Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3//Copyright>
4//Copyright> This program is free software: you can redistribute it and/or modify
5//Copyright> it under the terms of the GNU Affero General Public License as published by
6//Copyright> the Free Software Foundation, either version 3 of the License, or
7//Copyright> (at your option) any later version.
8//Copyright>
9//Copyright> This program is distributed in the hope that it will be useful,
10//Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11//Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12//Copyright> GNU Affero General Public License for more details.
13//Copyright>
14//Copyright> You should have received a copy of the GNU Affero General Public License
15//Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16//Copyright>
17//Copyright>
18//Copyright> Commercial Alternative: Altair Radioss Software
19//Copyright>
20//Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21//Copyright> software under a commercial license. Contact Altair to discuss further if the
22//Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23#include "hardware.inc"
24#include <stdio.h>
25#include <stdlib.h>
26
27
28
29
30#ifdef _WIN64
31
32#define _FCALL
33
34
35#elif 1
36
37#include <unistd.h>
38#include <sys/types.h>
39#include <sys/wait.h>
40
41#define _FCALL
42
43#endif
44
45
46
47#ifdef _WIN64
48
49void my_fork_c(int * pid){
50 *pid=-1;
51}
52void my_waitpid_c(int * pid, int * istat, int * pidp, int * pidret){
53 *pid=-1;
54 *pidret=-1;
55}
56
57
58
59#elif 1
60
61void my_fork_c(int * pid){
62*pid = fork();
63}
64
65void my_waitpid_c(int * pid, int * istat, int * pidp, int * pidret){
66
67*pidret = waitpid(*pid,istat,*pidp);
68
69}
70
71#endif
72
73
74void my_fork_( int * pid) {
75 my_fork_c(pid);
76}
77
78void my_fork__( int * pid) {
79 my_fork_c(pid);
80}
81
82void my_fork( int * pid) {
83 my_fork_c(pid);
84}
85
86void _FCALL MY_FORK( int * pid) {
87 my_fork_c(pid);
88}
89
90void my_waitpid_(int * pid, int * istat, int * pidp, int * pidret) {
91 my_waitpid_c(pid,istat,pidp,pidret);
92}
93
94void my_waitpid__(int * pid, int * istat, int * pidp, int * pidret) {
95 my_waitpid_c(pid,istat,pidp,pidret);
96}
97
98void my_waitpid(int * pid, int * istat, int * pidp, int * pidret) {
99 my_waitpid_c(pid,istat,pidp,pidret);
100}
101
102void _FCALL MY_WAITPID(int * pid, int * istat, int * pidp, int * pidret) {
103 my_waitpid_c(pid,istat,pidp,pidret);
104}
105
#define _FCALL
void my_fork__(int *pid)
void my_waitpid__(int *pid, int *istat, int *pidp, int *pidret)
void my_waitpid(int *pid, int *istat, int *pidp, int *pidret)
void my_fork_c(int *pid)
void my_fork(int *pid)
void my_waitpid_c(int *pid, int *istat, int *pidp, int *pidret)
void _FCALL MY_FORK(int *pid)
void _FCALL MY_WAITPID(int *pid, int *istat, int *pidp, int *pidret)
void my_fork_(int *pid)
void my_waitpid_(int *pid, int *istat, int *pidp, int *pidret)