Skip to content

Commit

Permalink
doc/go1.21: mention syscall package changes
Browse files Browse the repository at this point in the history
One of the changes also affects the os package, so mention it
there too.

For #46259

Change-Id: I8041a5ce009725ab210118ee668fc94196d9ff82
Reviewed-on: https://go-review.googlesource.com/c/go/+/498376
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
  • Loading branch information
ianlancetaylor authored and gopherbot committed May 26, 2023
1 parent 1ff8900 commit c2633df
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions doc/go1.21.html
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,13 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>

<dl id="os"><dt><a href="/pkg/os/">os</a></dt>
<dd>
<p><!-- CL 480135 -->
On Windows the
<a href="/pkg/os#File.Chdir"><code>File.Chdir></a> method
now changes the current directory to the file, rather than
always returning an error.
</p>

<p><!-- https://go.dev/issue/32558 -->
TODO: <a href="https://go.dev/issue/32558">https://go.dev/issue/32558</a>: allow Chtimes with time.Time{} to avoid setting time
</p>
Expand Down Expand Up @@ -760,16 +767,18 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>

<dl id="syscall"><dt><a href="/pkg/syscall/">syscall</a></dt>
<dd>
<p><!-- https://go.dev/issue/46259 -->
TODO: <a href="https://go.dev/issue/46259">https://go.dev/issue/46259</a>: add Jail int32 to SysProcAttr on FreeBSD
</p>

<p><!-- CL 458335 -->
TODO: <a href="https://go.dev/cl/458335">https://go.dev/cl/458335</a>: syscall: add jail support to ForkExec on FreeBSD; modified api/next/46259.txt
<p><!-- CL 480135 -->
On Windows the
<a href="/pkg/syscall#Fchdir"><code>Fchdir</code></a> function
now changes the current directory to its argument, rather than
always returning an error.
</p>

<p><!-- CL 480135 -->
TODO: <a href="https://go.dev/cl/480135">https://go.dev/cl/480135</a>: syscall: implement Fchdir on Windows
<p><!-- https://go.dev/issue/46259, CL 458335 -->
On FreeBSD
<a href="/pkg/syscall#SysProcAttr"><code>SysProcAttr</code></a>
has a new field <code>Jail</code> that may be used to put the
newly created process in a jailed environment.
</p>
</dd>
</dl><!-- syscall -->
Expand Down

0 comments on commit c2633df

Please sign in to comment.