<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/syscall/exec_libc.go, branch json-isValidNumber-before</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=json-isValidNumber-before</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=json-isValidNumber-before'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2023-01-25T03:23:11Z</updated>
<entry>
<title>syscall: clean up variable declarations in forkAndExecInChild</title>
<updated>2023-01-25T03:23:11Z</updated>
<author>
<name>Bryan C. Mills</name>
<email>bcmills@google.com</email>
</author>
<published>2022-12-09T17:30:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e216ee7e7416df48dc9550a6f18552a4ada5d419'/>
<id>urn:sha1:e216ee7e7416df48dc9550a6f18552a4ada5d419</id>
<content type='text'>
The various forkAndExecInChild implementations have comments
explaining that they pre-declare variables to force allocations
to occur before forking, but then later use ":=" declarations
for additional variables.

To make it clearer that those ":=" declarations do not allocate,
we move their declarations up to the predeclared blocks.

For #57208.

Change-Id: Ie8cb577fa7180b51b64d6dc398169053fdf8ea97
Reviewed-on: https://go-review.googlesource.com/c/go/+/456516
Auto-Submit: Bryan Mills &lt;bcmills@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Bryan Mills &lt;bcmills@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>syscall: remove redundant type conversion</title>
<updated>2022-10-02T02:27:38Z</updated>
<author>
<name>cui fliter</name>
<email>imcusg@gmail.com</email>
</author>
<published>2022-09-30T03:41:42Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=51297dd6df713b988b5c587e448b27d18ca1bd8a'/>
<id>urn:sha1:51297dd6df713b988b5c587e448b27d18ca1bd8a</id>
<content type='text'>
Change-Id: Iae290216687fd1ce8be720600157fb78cc2446d0
GitHub-Last-Rev: 4fba64ecb14a704d39f6ecc33989522bcac6656f
GitHub-Pull-Request: golang/go#55959
Reviewed-on: https://go-review.googlesource.com/c/go/+/436881
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Run-TryBot: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>syscall: use fcntl F_DUP2FD_CLOEXEC in forkAndExecInChild on solaris</title>
<updated>2022-09-15T21:07:18Z</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2022-09-14T08:45:15Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=a7db14241cf59f9d3bf4e1a68cf9e503e1a05211'/>
<id>urn:sha1:a7db14241cf59f9d3bf4e1a68cf9e503e1a05211</id>
<content type='text'>
Use fcntl(oldfd, F_DUP2FD_CLOEXEC, newfd) to duplicate the file
descriptor and mark is as close-on-exec instead of dup2 &amp; fcntl.

Note that the value for F_DUP2FD_CLOEXEC is different on Solaris and
Illumos and thus the definition is moved from zerrors_solaris_amd64.go
to solaris/illumos specific files.

Change-Id: I9a52801d1a01471ec3f065520575e3fafee92855
Reviewed-on: https://go-review.googlesource.com/c/go/+/428375
Run-TryBot: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
Auto-Submit: Jenny Rakoczy &lt;jenny@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Jenny Rakoczy &lt;jenny@golang.org&gt;
Run-TryBot: Jenny Rakoczy &lt;jenny@golang.org&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>syscall: rename close to closeFD</title>
<updated>2022-08-08T20:38:29Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2022-08-06T20:28:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ced4d6fd2d415d43c0f26e01fe332e4afa80114a'/>
<id>urn:sha1:ced4d6fd2d415d43c0f26e01fe332e4afa80114a</id>
<content type='text'>
...to avoid conflicts with the predeclared close function.

Change-Id: If6a19a004c390f4e0795ec207c72caa79a7281f4
Reviewed-on: https://go-review.googlesource.com/c/go/+/421934
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
Reviewed-by: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>all: separate doc comment from //go: directives</title>
<updated>2022-04-05T17:54:15Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2022-01-31T01:13:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=9839668b5619f45e293dd40339bf0ac614ea6bee'/>
<id>urn:sha1:9839668b5619f45e293dd40339bf0ac614ea6bee</id>
<content type='text'>
A future change to gofmt will rewrite

	// Doc comment.
	//go:foo

to

	// Doc comment.
	//
	//go:foo

Apply that change preemptively to all comments (not necessarily just doc comments).

For #51082.

Change-Id: Iffe0285418d1e79d34526af3520b415a12203ca9
Reviewed-on: https://go-review.googlesource.com/c/go/+/384260
Trust: Russ Cox &lt;rsc@golang.org&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor)</title>
<updated>2021-10-28T18:17:57Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2021-08-25T16:48:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f229e7031a6efb2f23241b5da000c3b3203081d6'/>
<id>urn:sha1:f229e7031a6efb2f23241b5da000c3b3203081d6</id>
<content type='text'>
When these packages are released as part of Go 1.18,
Go 1.16 will no longer be supported, so we can remove
the +build tags in these files.

Ran go fix -fix=buildtag std cmd and then reverted the bootstrapDirs
as defined in src/cmd/dist/buildtool.go, which need to continue
to build with Go 1.4 for now.

Also reverted src/vendor and src/cmd/vendor, which will need
to be updated in their own repos first.

Manual changes in runtime/pprof/mprof_test.go to adjust line numbers.

For #41184.

Change-Id: Ic0f93f7091295b6abc76ed5cd6e6746e1280861e
Reviewed-on: https://go-review.googlesource.com/c/go/+/344955
Trust: Russ Cox &lt;rsc@golang.org&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Bryan C. Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>syscall: use fcntl F_DUP2FD_CLOEXEC in forkAndExecInChild on illumos</title>
<updated>2021-10-26T05:02:53Z</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2021-10-25T11:37:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ec6c00418c83aa4f68a5afc9803831f43f8d794f'/>
<id>urn:sha1:ec6c00418c83aa4f68a5afc9803831f43f8d794f</id>
<content type='text'>
Use fcntl(oldfd, F_DUP2FD_CLOEXEC, newfd) to duplicate the file
descriptor and mark is as close-on-exec instead of dup2 &amp; fcntl.

Illumos implements dup3 like this in libc.

Change-Id: I9782bce553ffb832e9b1a12bbf3c0a40c821f56e
Reviewed-on: https://go-review.googlesource.com/c/go/+/358374
Trust: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
Run-TryBot: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>syscall: restore signal mask after setting foreground process group</title>
<updated>2021-04-27T13:50:09Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2021-04-27T00:27:58Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=7d22c2181b4343b58e40962cefd52af1284b4294'/>
<id>urn:sha1:7d22c2181b4343b58e40962cefd52af1284b4294</id>
<content type='text'>
Fixes #37217

Change-Id: I0151bb77fc4c4552d1b19c31d784943b72f84b80
Reviewed-on: https://go-review.googlesource.com/c/go/+/313653
Trust: Ian Lance Taylor &lt;iant@golang.org&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
</content>
</entry>
<entry>
<title>all: go fmt std cmd (but revert vendor)</title>
<updated>2021-02-20T03:54:50Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2021-02-19T23:35:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=d4b26382342c98a95b85140b2863bc30c48edd68'/>
<id>urn:sha1:d4b26382342c98a95b85140b2863bc30c48edd68</id>
<content type='text'>
Make all our package sources use Go 1.17 gofmt format
(adding //go:build lines).

Part of //go:build change (#41184).
See https://golang.org/design/draft-gobuild

Change-Id: Ia0534360e4957e58cd9a18429c39d0e32a6addb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/294430
Trust: Russ Cox &lt;rsc@golang.org&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>syscall: document exact meaning of Ctty field</title>
<updated>2020-05-01T04:53:11Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2020-04-24T04:15:03Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=07cb63aae5629213a0f5c484a8d79ae4bc1026e6'/>
<id>urn:sha1:07cb63aae5629213a0f5c484a8d79ae4bc1026e6</id>
<content type='text'>
The Ctty field is a child descriptor number when Setctty is set,
but a parent descriptor when Foreground is set. This is absurd
but changing either behavior breaks existing programs.

With this change we at least document how it works.

For #29458

Change-Id: If9cf0a1a1e6ed0d4a4edae5043016d5b4ee3308b
Reviewed-on: https://go-review.googlesource.com/c/go/+/229768
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
</feed>
