COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cgetLoginN.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine cgetloginn (userid)
 
subroutine copycstring (Cstring, target)
 
subroutine getlog (user)
 
integer function kgetenv2 (envname, envresult)
 
subroutine cqversion (cosv)
 

Function/Subroutine Documentation

◆ cgetloginn()

subroutine cgetloginn ( character*(*)  userid)

Definition at line 29 of file cgetLoginN.f.

References copycstring().

Referenced by cwhatjob(), and init().

29  character*(*) userid
30  integer getlogin, intlogin
31  pointer(pu, intlogin)
32  pu=getlogin()
33  call copycstring(intlogin, userid)
subroutine copycstring(Cstring, target)
Definition: cgetLoginN.f:36
Here is the call graph for this function:
Here is the caller graph for this function:

◆ copycstring()

subroutine copycstring ( character, dimension(*)  Cstring,
character, dimension(*)  target 
)

Definition at line 36 of file cgetLoginN.f.

References getlog().

Referenced by cgetloginn().

36  implicit none
37  integer i
38  character cstring(*), target*(*)
39 
40  target=' '
41  do i=1, len(target)
42  if(cstring(i) == char(0) ) exit
43  target(i:i)=cstring(i)
44  enddo
nodes i
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cqversion()

subroutine cqversion ( character*8  cosv)

Definition at line 96 of file cgetLoginN.f.

References copenf().

96  implicit none
97 #include "Zmanagerp.h"
98  character*8::cosv ! output cosmos version such 7.58; left justified
99  character*64::cosmostop
100  character*128:: filen
101  integer kgetenv2, icon
102 
103  if( kgetenv2("COSMOSTOP", cosmostop) == 0 ) then
104  write(0,*) " Environmental variable "
105  write(0,*) "COSMOSTOP cannot be obtained in cqversion"
106  stop
107  endif
108  filen = trim(cosmostop)//"/Version/version"
109  call copenf(tempdev, filen, icon)
110  read(tempdev, '(a)') cosv
111  close(tempdev)
integer function kgetenv2(envname, envresult)
Definition: cgetLoginN.f:77
subroutine copenf(io, fnin, icon)
Definition: copenf.f:8
Here is the call graph for this function:

◆ getlog()

subroutine getlog ( character, dimension(*)  user)

Definition at line 69 of file cgetLoginN.f.

Referenced by copycstring().

69  character user*(*)
70  call getenv('USER',user)
Here is the caller graph for this function:

◆ kgetenv2()

integer function kgetenv2 ( character*(*)  envname,
character*(*)  envresult 
)

Definition at line 77 of file cgetLoginN.f.

Referenced by __add2hist.f__(), __add2hyb.f__(), __add2nrfai.f__(), __bin2asciicomp.f__(), __mknrfai.f__(), __mknrfaifromdat.f__(), __reducebinsize.f__(), __reduceeachsize.bin.f__(), __reduceeachsize.binbyl.f__(), __reduceeachsize.f__(), __reducesize.f__(), __smashskel.f__(), __smashskelsmallfileno.f__(), __smashskeltrial.f__(), cmanager(), and xbgrun().

77 
78  character*(*) envname ! input. environment variable name
79  character*(*) envresult ! output. value of hte env. variable.
80 
81  integer leng, kgetenv, klena
82  character*1 null
83  character*128 path
84  null = char(0)
85  leng = klena(envname)
86  if( leng .gt. 0 ) then
87  leng = kgetenv( envname(1:leng)//null, envresult)
88  else
89  leng = 0
90  envresult = ' '
91  endif
92  envresult=envresult(1:leng)//" "
93  kgetenv2 = leng
integer function kgetenv2(envname, envresult)
Definition: cgetLoginN.f:77
integer leng
Definition: interface2.h:1
integer function klena(cha)
Definition: klena.f:20
Here is the caller graph for this function: