| Line | |
|---|
| 1 | BEGIN {
|
|---|
| 2 | extension("./filefuncs.so", "dlload")
|
|---|
| 3 |
|
|---|
| 4 | # printf "before: "
|
|---|
| 5 | # fflush()
|
|---|
| 6 | # system("pwd")
|
|---|
| 7 | #
|
|---|
| 8 | # chdir("..")
|
|---|
| 9 | #
|
|---|
| 10 | # printf "after: "
|
|---|
| 11 | # fflush()
|
|---|
| 12 | # system("pwd")
|
|---|
| 13 |
|
|---|
| 14 | chdir(".")
|
|---|
| 15 |
|
|---|
| 16 | data[1] = 1
|
|---|
| 17 | print "Info for testff.awk"
|
|---|
| 18 | ret = stat("testff.awk", data)
|
|---|
| 19 | print "ret =", ret
|
|---|
| 20 | for (i in data)
|
|---|
| 21 | printf "data[\"%s\"] = %s\n", i, data[i]
|
|---|
| 22 | print "testff.awk modified:", strftime("%m %d %y %H:%M:%S", data["mtime"])
|
|---|
| 23 |
|
|---|
| 24 | print "\nInfo for JUNK"
|
|---|
| 25 | ret = stat("JUNK", data)
|
|---|
| 26 | print "ret =", ret
|
|---|
| 27 | for (i in data)
|
|---|
| 28 | printf "data[\"%s\"] = %s\n", i, data[i]
|
|---|
| 29 | print "JUNK modified:", strftime("%m %d %y %H:%M:%S", data["mtime"])
|
|---|
| 30 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.