| | @@ -956,6 +956,7 @@ |
| 956 | 956 | Info* = record |
| 957 | 957 | size*: I64; (* in bytes *) |
| 958 | 958 | dir*: BOOL; (* a directory *) |
| 959 | + link*: BOOL; (* the path itself is a symbolic link *) |
| 959 | 960 | end; |
| 960 | 961 | Dir* = record ... end; (* an open directory; its fields are the target's *) |
| 961 | 962 | |
| | @@ -986,6 +987,11 @@ |
| 986 | 987 | proc kill*(pid, signal: I64): I64; |
| 987 | 988 | ``` |
| 988 | 989 | |
| 990 | +`info` follows a symbolic link: `size` and `dir` are those of what it |
| 991 | +names, and `link` says the path was a link, so that a program walking |
| 992 | +a tree can choose not to follow one back up it. A link to nothing is |
| 993 | +`-ENOENT`, as a missing file is. |
| 994 | + |
| 989 | 995 | `nextEntry` gives every name in the directory except `.` and `..`, in |
| 990 | 996 | no particular order. `rawMode` turns off what the terminal does with |
| 991 | 997 | keys before the program reads them: echo, waiting for a whole line, |
| | @@ -1063,3 +1069,5 @@ |
| 1063 | 1069 | - **2026-10.5.** A module with files in more than one of the |
| 1064 | 1070 | directories searched is an error, unless the first is a link to one |
| 1065 | 1071 | of the others (section 3). |
| 1072 | +- **2026-10.6.** `Sys.Info` says whether the path is a symbolic link |
| 1073 | + (section 11). |