| | @@ -9,7 +9,7 @@ |
| 9 | 9 | This report defines the language. It is short on purpose. Whatever it |
| 10 | 10 | doesn't allow, raz doesn't have. |
| 11 | 11 | |
| 12 | | -This is version 2026-10.7 of the report; section 12 says what each |
| 12 | +This is version 2026-10.8 of the report; section 12 says what each |
| 13 | 13 | version changed. |
| 14 | 14 | |
| 15 | 15 | ## 1. A first look |
| | @@ -976,7 +976,7 @@ |
| 976 | 976 | proc ready*(fd: I64; ms: I64): BOOL; (* something to read within ms, or ever if ms < 0 *) |
| 977 | 977 | |
| 978 | 978 | proc env*(name: []U8): []U8; (* the environment variable's value; "" if unset *) |
| 979 | | -proc workDir*(var buf: [4096]U8): I64; (* the working directory into buf: its length *) |
| 979 | +proc workDir*: ([]U8, I64); (* the working directory, good until the next call *) |
| 980 | 980 | |
| 981 | 981 | proc connect*(path: []U8): I64; (* a stream socket, connected to the Unix socket at path: its fd *) |
| 982 | 982 | proc send*(fd: I64; s: []U8): I64; (* write, to a socket: -32 (EPIPE), not a signal, if it is closed *) |
| | @@ -1083,3 +1083,5 @@ |
| 1083 | 1083 | and whether it is a symbolic link (section 11). |
| 1084 | 1084 | - **2026-10.7.** `Sys.send` writes to a socket without SIGPIPE |
| 1085 | 1085 | (section 11). |
| 1086 | +- **2026-10.8.** `Sys.workDir` returns the directory, with no `var` |
| 1087 | + parameter (section 11). |