]>
gcc.gnu.org Git - gcc.git/blob - libf2c/f2cext.c
1 /* Copyright (C) 1997 Free Software Foundation, Inc.
2 This file is part of GNU Fortran run-time library.
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published
6 by the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 GNU Fortran is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with GNU Fortran; see the file COPYING.LIB. If
16 not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
21 typedef void *sig_proc
; /* For now, this will have to do. */
25 extern int G77_abort_0 (void);
26 return G77_abort_0 ();
31 double derf_ (doublereal
*x
) {
32 extern double G77_derf_0 (doublereal
*x
);
33 return G77_derf_0 (x
);
38 double derfc_ (doublereal
*x
) {
39 extern double G77_derfc_0 (doublereal
*x
);
40 return G77_derfc_0 (x
);
45 int ef1asc_ (ftnint
*a
, ftnlen
*la
, ftnint
*b
, ftnlen
*lb
) {
46 extern int G77_ef1asc_0 (ftnint
*a
, ftnlen
*la
, ftnint
*b
, ftnlen
*lb
);
47 return G77_ef1asc_0 (a
, la
, b
, lb
);
52 integer
ef1cmc_ (ftnint
*a
, ftnlen
*la
, ftnint
*b
, ftnlen
*lb
) {
53 extern integer
G77_ef1cmc_0 (ftnint
*a
, ftnlen
*la
, ftnint
*b
, ftnlen
*lb
);
54 return G77_ef1cmc_0 (a
, la
, b
, lb
);
59 double erf_ (real
*x
) {
60 extern double G77_erf_0 (real
*x
);
66 double erfc_ (real
*x
) {
67 extern double G77_erfc_0 (real
*x
);
68 return G77_erfc_0 (x
);
73 void exit_ (integer
*rc
) {
74 extern void G77_exit_0 (integer
*rc
);
80 void getarg_ (ftnint
*n
, char *s
, ftnlen ls
) {
81 extern void G77_getarg_0 (ftnint
*n
, char *s
, ftnlen ls
);
82 G77_getarg_0 (n
, s
, ls
);
87 void getenv_ (char *fname
, char *value
, ftnlen flen
, ftnlen vlen
) {
88 extern void G77_getenv_0 (char *fname
, char *value
, ftnlen flen
, ftnlen vlen
);
89 G77_getenv_0 (fname
, value
, flen
, vlen
);
94 ftnint
iargc_ (void) {
95 extern ftnint
G77_iargc_0 (void);
96 return G77_iargc_0 ();
101 void *signal_ (integer
*sigp
, sig_proc proc
) {
102 extern void *G77_signal_0 (integer
*sigp
, sig_proc proc
);
103 return G77_signal_0 (sigp
, proc
);
108 integer
system_ (char *s
, ftnlen n
) {
109 extern integer
G77_system_0 (char *s
, ftnlen n
);
110 return G77_system_0 (s
, n
);
116 extern int G77_flush_0 (void);
117 return G77_flush_0 ();
122 integer
ftell_ (integer
*Unit
) {
123 extern integer
G77_ftell_0 (integer
*Unit
);
124 return G77_ftell_0 (Unit
);
129 integer
fseek_ (integer
*Unit
, integer
*offset
, integer
*xwhence
) {
130 extern integer
G77_fseek_0 (integer
*Unit
, integer
*offset
, integer
*xwhence
);
131 return G77_fseek_0 (Unit
, offset
, xwhence
);
136 integer
access_ (const char *name
, const char *mode
, ftnlen Lname
, ftnlen Lmode
) {
137 extern integer
G77_access_0 (const char *name
, const char *mode
, ftnlen Lname
, ftnlen Lmode
);
138 return G77_access_0 (name
, mode
, Lname
, Lmode
);
143 integer
alarm_ (integer
*seconds
, sig_proc proc
, integer
*status
) {
144 extern integer
G77_alarm_0 (integer
*seconds
, sig_proc proc
);
145 return G77_alarm_0 (seconds
, proc
);
150 double besj0_ (const real
*x
) {
156 double besj1_ (const real
*x
) {
162 double besjn_ (const integer
*n
, real
*x
) {
168 double besy0_ (const real
*x
) {
174 double besy1_ (const real
*x
) {
180 double besyn_ (const integer
*n
, real
*x
) {
186 integer
chdir_ (const char *name
, const ftnlen Lname
) {
187 extern integer
G77_chdir_0 (const char *name
, const ftnlen Lname
);
188 return G77_chdir_0 (name
, Lname
);
193 integer
chmod_ (const char *name
, const char *mode
, const ftnlen Lname
, const ftnlen Lmode
) {
194 extern integer
G77_chmod_0 (const char *name
, const char *mode
, const ftnlen Lname
, const ftnlen Lmode
);
195 return G77_chmod_0 (name
, mode
, Lname
, Lmode
);
200 void ctime_ (char *chtime
, const ftnlen Lchtime
, longint
*xstime
) {
201 extern void G77_ctime_0 (char *chtime
, const ftnlen Lchtime
, longint
*xstime
);
202 G77_ctime_0 (chtime
, Lchtime
, xstime
);
207 int date_ (char *buf
, ftnlen buf_len
) {
208 extern int G77_date_0 (char *buf
, ftnlen buf_len
);
209 return G77_date_0 (buf
, buf_len
);
214 double dbesj0_ (const double *x
) {
220 double dbesj1_ (const double *x
) {
226 double dbesjn_ (const integer
*n
, double *x
) {
232 double dbesy0_ (const double *x
) {
238 double dbesy1_ (const double *x
) {
244 double dbesyn_ (const integer
*n
, double *x
) {
250 double dtime_ (real tarray
[2]) {
251 extern double G77_dtime_0 (real tarray
[2]);
252 return G77_dtime_0 (tarray
);
257 double etime_ (real tarray
[2]) {
258 extern double G77_etime_0 (real tarray
[2]);
259 return G77_etime_0 (tarray
);
264 void fdate_ (char *ret_val
, ftnlen ret_val_len
) {
265 extern void G77_fdate_0 (char *ret_val
, ftnlen ret_val_len
);
266 G77_fdate_0 (ret_val
, ret_val_len
);
271 integer
fgetc_ (const integer
*lunit
, char *c
, ftnlen Lc
) {
272 extern integer
G77_fgetc_0 (const integer
*lunit
, char *c
, ftnlen Lc
);
273 return G77_fgetc_0 (lunit
, c
, Lc
);
278 integer
fget_ (char *c
, const ftnlen Lc
) {
279 extern integer
G77_fget_0 (char *c
, const ftnlen Lc
);
280 return G77_fget_0 (c
, Lc
);
285 int flush1_ (const integer
*lunit
) {
286 extern int G77_flush1_0 (const integer
*lunit
);
287 return G77_flush1_0 (lunit
);
292 integer
fnum_ (integer
*lunit
) {
293 extern integer
G77_fnum_0 (integer
*lunit
);
294 return G77_fnum_0 (lunit
);
299 integer
fputc_ (const integer
*lunit
, const char *c
, const ftnlen Lc
) {
300 extern integer
G77_fputc_0 (const integer
*lunit
, const char *c
, const ftnlen Lc
);
301 return G77_fputc_0 (lunit
, c
, Lc
);
306 integer
fput_ (const char *c
, const ftnlen Lc
) {
307 extern integer
G77_fput_0 (const char *c
, const ftnlen Lc
);
308 return G77_fput_0 (c
, Lc
);
313 integer
fstat_ (const integer
*lunit
, integer statb
[13]) {
314 extern integer
G77_fstat_0 (const integer
*lunit
, integer statb
[13]);
315 return G77_fstat_0 (lunit
, statb
);
320 int gerror_ (char *str
, ftnlen Lstr
) {
321 extern int G77_gerror_0 (char *str
, ftnlen Lstr
);
322 return G77_gerror_0 (str
, Lstr
);
327 integer
getcwd_ (char *str
, const ftnlen Lstr
) {
328 extern integer
G77_getcwd_0 (char *str
, const ftnlen Lstr
);
329 return G77_getcwd_0 (str
, Lstr
);
334 integer
getgid_ (void) {
335 extern integer
G77_getgid_0 (void);
336 return G77_getgid_0 ();
341 int getlog_ (char *str
, const ftnlen Lstr
) {
342 extern int G77_getlog_0 (char *str
, const ftnlen Lstr
);
343 return G77_getlog_0 (str
, Lstr
);
348 integer
getpid_ (void) {
349 extern integer
G77_getpid_0 (void);
350 return G77_getpid_0 ();
355 integer
getuid_ (void) {
356 extern integer
G77_getuid_0 (void);
357 return G77_getuid_0 ();
362 int gmtime_ (const integer
*stime
, integer tarray
[9]) {
363 extern int G77_gmtime_0 (const integer
*stime
, integer tarray
[9]);
364 return G77_gmtime_0 (stime
, tarray
);
369 integer
hostnm_ (char *name
, ftnlen Lname
) {
370 extern integer
G77_hostnm_0 (char *name
, ftnlen Lname
);
371 return G77_hostnm_0 (name
, Lname
);
376 int idate_ (int iarray
[3]) {
377 extern int G77_idate_0 (int iarray
[3]);
378 return G77_idate_0 (iarray
);
383 integer
ierrno_ (void) {
384 extern integer
G77_ierrno_0 (void);
385 return G77_ierrno_0 ();
390 integer
irand_ (integer
*flag
) {
391 extern integer
G77_irand_0 (integer
*flag
);
392 return G77_irand_0 (flag
);
397 logical
isatty_ (integer
*lunit
) {
398 extern logical
G77_isatty_0 (integer
*lunit
);
399 return G77_isatty_0 (lunit
);
404 int itime_ (integer tarray
[3]) {
405 extern int G77_itime_0 (integer tarray
[3]);
406 return G77_itime_0 (tarray
);
411 integer
kill_ (const integer
*pid
, const integer
*signum
) {
412 extern integer
G77_kill_0 (const integer
*pid
, const integer
*signum
);
413 return G77_kill_0 (pid
, signum
);
418 integer
link_ (const char *path1
, const char *path2
, const ftnlen Lpath1
, const ftnlen Lpath2
) {
419 extern integer
G77_link_0 (const char *path1
, const char *path2
, const ftnlen Lpath1
, const ftnlen Lpath2
);
420 return G77_link_0 (path1
, path2
, Lpath1
, Lpath2
);
425 integer
lnblnk_ (char *str
, ftnlen str_len
) {
426 extern integer
G77_lnblnk_0 (char *str
, ftnlen str_len
);
427 return G77_lnblnk_0 (str
, str_len
);
432 integer
lstat_ (const char *name
, integer statb
[13], const ftnlen Lname
) {
433 extern integer
G77_lstat_0 (const char *name
, integer statb
[13], const ftnlen Lname
);
434 return G77_lstat_0 (name
, statb
, Lname
);
439 int ltime_ (const integer
*stime
, integer tarray
[9]) {
440 extern int G77_ltime_0 (const integer
*stime
, integer tarray
[9]);
441 return G77_ltime_0 (stime
, tarray
);
446 longint
mclock_ (void) {
447 extern longint
G77_mclock_0 (void);
448 return G77_mclock_0 ();
453 int perror_ (const char *str
, const ftnlen Lstr
) {
454 extern int G77_perror_0 (const char *str
, const ftnlen Lstr
);
455 return G77_perror_0 (str
, Lstr
);
460 double rand_ (integer
*flag
) {
461 extern double G77_rand_0 (integer
*flag
);
462 return G77_rand_0 (flag
);
467 integer
rename_ (const char *path1
, const char *path2
, const ftnlen Lpath1
, const ftnlen Lpath2
) {
468 extern integer
G77_rename_0 (const char *path1
, const char *path2
, const ftnlen Lpath1
, const ftnlen Lpath2
);
469 return G77_rename_0 (path1
, path2
, Lpath1
, Lpath2
);
474 double secnds_ (real
*r
) {
475 extern double G77_secnds_0 (real
*r
);
476 return G77_secnds_0 (r
);
482 extern double G77_second_0 ();
483 return G77_second_0 ();
488 int sleep_ (const integer
*seconds
) {
489 extern int G77_sleep_0 (const integer
*seconds
);
490 return G77_sleep_0 (seconds
);
495 int srand_ (const integer
*seed
) {
496 extern int G77_srand_0 (const integer
*seed
);
497 return G77_srand_0 (seed
);
502 integer
stat_ (const char *name
, integer statb
[13], const ftnlen Lname
) {
503 extern integer
G77_stat_0 (const char *name
, integer statb
[13], const ftnlen Lname
);
504 return G77_stat_0 (name
, statb
, Lname
);
509 integer
symlnk_ (const char *path1
, const char *path2
, const ftnlen Lpath1
, const ftnlen Lpath2
) {
510 extern integer
G77_symlnk_0 (const char *path1
, const char *path2
, const ftnlen Lpath1
, const ftnlen Lpath2
);
511 return G77_symlnk_0 (path1
, path2
, Lpath1
, Lpath2
);
516 longint
time_ (void) {
517 extern longint
G77_time_0 (void);
518 return G77_time_0 ();
523 void ttynam_ (char *ret_val
, ftnlen ret_val_len
, integer
*lunit
) {
524 extern void G77_ttynam_0 (char *ret_val
, ftnlen ret_val_len
, integer
*lunit
);
525 G77_ttynam_0 (ret_val
, ret_val_len
, lunit
);
530 integer
umask_ (integer
*mask
) {
531 extern integer
G77_umask_0 (integer
*mask
);
532 return G77_umask_0 (mask
);
537 integer
unlink_ (const char *str
, const ftnlen Lstr
) {
538 extern integer
G77_unlink_0 (const char *str
, const ftnlen Lstr
);
539 return G77_unlink_0 (str
, Lstr
);
544 int vxtidate_ (integer
*m
, integer
*d
, integer
*y
) {
545 extern int G77_vxtidate_0 (integer
*m
, integer
*d
, integer
*y
);
546 return G77_vxtidate_0 (m
, d
, y
);
551 void vxttime_ (char chtime
[8], const ftnlen Lchtime
) {
552 extern void G77_vxttime_0 (char chtime
[8], const ftnlen Lchtime
);
553 G77_vxttime_0 (chtime
, Lchtime
);
This page took 0.054987 seconds and 5 git commands to generate.