55 subroutine oct_strerror(errno, res)
57 integer,
intent(in) :: errno
58 character(len=*),
intent(out) :: res
59 end subroutine oct_strerror
64 use,
intrinsic :: iso_fortran_env
66 real(real64) :: oct_clock
67 end function oct_clock
71 subroutine oct_gettimeofday(sec, usec)
73 integer,
intent(out) :: sec, usec
74 end subroutine oct_gettimeofday
78 subroutine oct_nanosleep(sec, nsec)
80 integer,
intent(in) :: sec
81 integer,
intent(in) :: nsec
82 end subroutine oct_nanosleep
86 subroutine oct_sysname(name)
88 character(len=*),
intent(out) :: name
89 end subroutine oct_sysname
93 subroutine oct_getcwd(name)
95 character(len=*),
intent(out) :: name
96 end subroutine oct_getcwd
100 subroutine oct_realpath(fnam, rnam)
101 character(len=*),
intent(in) :: fnam
102 character(len=*),
intent(out) :: rnam
103 end subroutine oct_realpath
107 subroutine oct_dirname(fnam, dnam)
108 character(len=*),
intent(in) :: fnam
109 character(len=*),
intent(out) :: dnam
110 end subroutine oct_dirname
114 subroutine oct_basename(fnam, dnam)
115 character(len=*),
intent(in) :: fnam
116 character(len=*),
intent(out) :: dnam
117 end subroutine oct_basename
124 subroutine oct_mkdir(name)
126 character(len=*),
intent(in) :: name
127 end subroutine oct_mkdir
131 subroutine oct_stat(ierr, name, mod_time)
133 integer,
intent(out) :: ierr
134 character(len=*),
intent(in) :: name
135 character(len=*),
intent(out) :: mod_time
136 end subroutine oct_stat
140 subroutine oct_rm(name)
142 character(len=*),
intent(in) :: name
143 end subroutine oct_rm
147 integer function oct_number_of_lines(filename)
149 character(len=*),
intent(in) :: filename
150 end function oct_number_of_lines
154 subroutine oct_break_c_string(str, s, line)
157 type(c_ptr),
intent(in) :: str
158 type(c_ptr),
intent(inout) :: s
159 character(len=*),
intent(out) :: line
160 end subroutine oct_break_c_string
164 subroutine oct_search_file_lr(freq, tag, ierr, dirname)
165 use,
intrinsic :: iso_fortran_env
167 real(real64),
intent(inout) :: freq
168 integer,
intent(in) :: tag
169 integer,
intent(out) :: ierr
170 character(len=*),
intent(in) :: dirname
171 end subroutine oct_search_file_lr
177 subroutine oct_getenv(var, val)
179 character(len=*),
intent(in) :: var
180 character(len=*),
intent(out) :: val
181 end subroutine oct_getenv
185 subroutine oct_progress_bar(a, maxcount)
187 integer,
intent(in) :: a, maxcount
188 end subroutine oct_progress_bar
192 subroutine oct_printrecipe(dir, filename)
194 character(len=*),
intent(in) :: dir
195 character(len=*),
intent(out) :: filename
196 end subroutine oct_printrecipe
200 subroutine oct_exit_failure()
202 end subroutine oct_exit_failure
206 subroutine oct_wfs_list(str, l)
208 character(len=*),
intent(in) :: str
209 integer,
intent(out) :: l
210 end subroutine oct_wfs_list
214 integer(c_intptr_t) function oct_get_memory_usage()
215 use iso_c_binding,
only: c_intptr_t
217 end function oct_get_memory_usage
223 integer,
intent(in) :: a
224 character(len=*),
intent(in) :: s
226 integer,
allocatable :: list(:)
228 allocate(list(2**14))
232 if (list(a) == 1) inlist = .
true.
240 character(len=*),
intent(in) :: dirname
242 interface oct_dir_exists
243 integer function oct_dir_exists(dirname)
245 character(len=*),
intent(in) :: dirname
246 end function oct_dir_exists
247 end interface oct_dir_exists
249 exists = oct_dir_exists(dirname) /= 0
Define which routines can be seen from the outside.
logical function, public loct_isinstringlist(a, s)
logical function, public loct_dir_exists(dirname)