summaryrefslogtreecommitdiff
path: root/extension/testff.awk
blob: 0a0a9b2f4789c6a2167f7c334a6845c715d4cf30 (plain)
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
BEGIN {
	extension("./filefuncs.so", "dlload")

#	printf "before: "
#	fflush()
#	system("pwd")
#
#	chdir("..")
#
#	printf "after: "
#	fflush()
#	system("pwd")

	chdir(".")

	data[1] = 1
	print "Info for testff.awk"
	ret = stat("testff.awk", data)
	print "ret =", ret
	for (i in data)
		printf "data[\"%s\"] = %s\n", i, data[i]
	print "testff.awk modified:", strftime("%m %d %y %H:%M:%S", data["mtime"])

	print "\nInfo for JUNK"
	ret = stat("JUNK", data)
	print "ret =", ret
	for (i in data)
		printf "data[\"%s\"] = %s\n", i, data[i]
	print "JUNK modified:", strftime("%m %d %y %H:%M:%S", data["mtime"])
}