This file is indexed.

/usr/share/nrn/lib/hoc/rcs.hoc is in neuron 7.5-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*------------------------------------------------------------
/local/src/master/nrn/lib/hoc/rcs.hoc,v 1.2 1999/05/24 19:15:37 hines Exp
------------------------------------------------------------*/

/*------------------------------------------------------------
Load templates and procedures
------------------------------------------------------------*/

xopen("$(NEURONHOME)/lib/hoc/rcs.iv")

/*------------------------------------------------------------
Create and initialize necessary strings
------------------------------------------------------------*/

strdef identifier, user_name, output_file, version_file, last_neuron_run
output_file = "data.tmp"
version_file = "version.hoc"
last_neuron_run = ".last_neuron_run"

setup_id_info(output_file, version_file, last_neuron_run) 

/*------------------------------------------------------------
Create file list
------------------------------------------------------------*/

objectvar fileList

fileList = new List()

appendFile("geometry", fileList)
appendFile("parameters", fileList)
appendFile("run", fileList)

/*------------------------------------------------------------
File Manager menu routines
------------------------------------------------------------*/

/* Contains title for "Update <version_file>" button,
   and "Save output d<identifier>" */
strdef version_title, output_title

proc updateTitles() {
	/* Update title for "Update <version_file>" button, 
	   and "Save output d<identifier>" */
	strdef ver

	rcs_version(version_file, "ver")
	sprint(version_title, "Update %s (%s):", version_file, ver)

	sprint(output_title, "Save Output (d%s):", identifier)
}

proc menu() {
	/* Display "File Manager" panel for file list $o1*/
	strdef fb, svf, oa

	sprint(fb, "fileBrowser(%s, \"%s\")", $s1, $s1)
	sprint(svf, "saveVersionFile(%s)", $s1)
	sprint(oa, "openAll(%s)", $s1)

	updateTitles()

	xpanel("File Manager")
		xbutton("File Browser", fb)

		xlabel("")
		xvarlabel(version_title)
		xbutton("Save", svf)

		xlabel("")
		xvarlabel(output_title)
		xbutton("Save", "save_output_file(identifier, 0)")

		xlabel("")
		xlabel("Open All Files:")
		xbutton("Open", oa)
	xpanel()
}

menu("fileList")