]> Cypherpunks repositories - gostls13.git/commit
os/signal/internal/pty: use libc (not cgo) on macOS
authorRuss Cox <rsc@golang.org>
Wed, 9 Nov 2022 20:43:54 +0000 (15:43 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 10 Nov 2022 19:24:46 +0000 (19:24 +0000)
commit059c3ed09fb7f9feb479b71dc967219741ac7c06
tree84edaaeb928920d2ca0b62cacdd79f7b10f452a7
parent1e11eaa902083e2b39234d264c046f1e31a3ec03
os/signal/internal/pty: use libc (not cgo) on macOS

This package is only used by tests anyway, but might as well
remove the cgo use on macOS so that it doesn't show up as
a cgo user, as part of our overall strategy to remove cgo use
in the standard library on macOS.

Change-Id: I5a1a39ed56373385f9d43a5e17098035dc1a451a
Reviewed-on: https://go-review.googlesource.com/c/go/+/449315
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/internal/syscall/unix/asm_darwin.s
src/internal/syscall/unix/pty_darwin.go [new file with mode: 0644]
src/os/signal/internal/pty/pty.go
src/os/signal/internal/pty/pty_cgo.go [new file with mode: 0644]
src/os/signal/internal/pty/pty_darwin.go [new file with mode: 0644]