#include "hardware.inc"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
Go to the source code of this file.
◆ _FCALL
◆ my_getpid
| #define my_getpid getpid() |
◆ FGETPID()
| void _FCALL FGETPID |
( |
int * | pid | ) |
|
◆ fgetpid()
| void fgetpid |
( |
int * | pid | ) |
|
◆ fgetpid_()
| void fgetpid_ |
( |
int * | pid | ) |
|
◆ fgetpid__()
| void fgetpid__ |
( |
int * | pid | ) |
|
◆ tmpenv_c()
Definition at line 100 of file tmpenv_c.c.
100 {
101
102 char * tmpdir;
103 DIR* directory;
104
105 tmpdir = getenv("TMPDIR");
106
107 if (tmpdir != NULL){
108 directory = opendir(tmpdir);
109
110 if (directory == NULL){
111 tmpdir=NULL;
112 }else{
113 closedir(directory);
114 }
115 }
116
117
118 if (tmpdir==NULL){
119 tmpdir = (char *)calloc(200,sizeof(char));
120 getcwd(tmpdir,200);
121 }
122
123 return tmpdir;
124}
◆ TMPENVF()
| void _FCALL TMPENVF |
( |
char * | tmpdir, |
|
|
int * | tmplen ) |
Definition at line 157 of file tmpenv_c.c.
157 {
159}
void tmpenvf_(char *tmpdir, int *tmplen)
◆ tmpenvf()
| void tmpenvf |
( |
char * | tmpdir, |
|
|
int * | tmplen ) |
◆ tmpenvf_()
| void tmpenvf_ |
( |
char * | tmpdir, |
|
|
int * | tmplen ) |
Definition at line 138 of file tmpenv_c.c.
138 {
139
141 int slen=strlen(tdir);
142 int i;
143
144 for (i=0;i<
slen;i++) tmpdir[i]=tdir[i];
147}
subroutine slen(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, j, area, aream)
◆ tmpenvf__()
| void tmpenvf__ |
( |
char * | tmpdir, |
|
|
int * | tmplen ) |