From ebbd9966a48135800321d5eb6d28e7e28448ab39 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Sun, 11 Oct 2026 11:20:23 +0100 Subject: [PATCH] The report, for review: Sys.Info tells a symbolic link (2026-10.6) info follows a link as before; link says the path was one, so a walk (rloc's) can refuse to follow a link back up the tree. --- diff --git a/doc/raz.md b/doc/raz.md index 9ead1d4..1c1f7a7 100644 --- a/doc/raz.md +++ b/doc/raz.md @@ -956,6 +956,7 @@ Info* = record size*: I64; (* in bytes *) dir*: BOOL; (* a directory *) + link*: BOOL; (* the path itself is a symbolic link *) end; Dir* = record ... end; (* an open directory; its fields are the target's *) @@ -986,6 +987,11 @@ proc kill*(pid, signal: I64): I64; ``` +`info` follows a symbolic link: `size` and `dir` are those of what it +names, and `link` says the path was a link, so that a program walking +a tree can choose not to follow one back up it. A link to nothing is +`-ENOENT`, as a missing file is. + `nextEntry` gives every name in the directory except `.` and `..`, in no particular order. `rawMode` turns off what the terminal does with keys before the program reads them: echo, waiting for a whole line, @@ -1063,3 +1069,5 @@ - **2026-10.5.** A module with files in more than one of the directories searched is an error, unless the first is a link to one of the others (section 3). +- **2026-10.6.** `Sys.Info` says whether the path is a symbolic link + (section 11).