| | 931 | | | | char * |
| | 932 | | | | pvmgettmp() |
| | 933 | | | | { |
| | 934 | | | | static char *td = 0; |
| | 935 | | | | |
| $input_12 > bytes_after(buf) - 31 | 936 | | | | if (!td) { | Problem | | $input_12 > bytes_after(buf) - 31 |
|
| | 937 | | | | #ifndef WIN32 |
| | 938 | | | | if ( !(td=getenv("PVM_TMP")) ) |
| | 939 | | | | #ifdef IMA_BEOLIN |
| | 940 | | | | td = "/tmps"; |
| | 941 | | | | #else |
| | 942 | | | | td = "/tmp"; |
| | 943 | | | | #endif |
| | 944 | | | | #else |
| | 945 | | | | if ( !(td=getenv("PVM_TMP")) ) { |
| | 946 | | | | if ( !(td=read_pvmregistry("PVM_TMP")) ) { |
| | 947 | | | | if ( !(td=getenv("TEMP")) ) { |
| | 948 | | | | td = "C:\\TEMP"; |
| | | | | | ... |
| | 950 | | | | "Could not get %%PVM_TMP%% or %%TEMP%% "); |
| | 951 | | | | fprintf(stderr, "-> using \"%s\".\n", td); |
| | 952 | | | | fprintf(stderr, |
| | 953 | | | | "Please check your PVM installation.\n"); |
| | 954 | | | | } |
| | 955 | | | | } |
| | 956 | | | | } |
| | 957 | | | | #endif |
| | 958 | | | | } |
| | 959 | | | | |
| strlen(td) > bytes_after(buf) - 31 | 960 | | | | return td; | Problem | | strlen(td) > bytes_after(buf) - 31 |
|
| strlen(pvmgettmp$return) > bytes_after(buf) - 31 | 961 | | | | } | Problem | | strlen(pvmgettmp$return) > bytes_after(buf) - 31 |
|