Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
1ea5279d
Commit
1ea5279d
authored
Jan 03, 2019
by
HackyMiner
Committed by
Guillaume Ballet
Jan 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vendor: vendor/github.com/mattn/go-isatty - add missing files (reported by mksully22) (#18376)
parent
27913dd2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
isatty_linux_ppc64x.go
vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go
+25
-0
isatty_others.go
vendor/github.com/mattn/go-isatty/isatty_others.go
+15
-0
No files found.
vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go
0 → 100644
View file @
1ea5279d
// +build linux
// +build ppc64 ppc64le
package
isatty
import
(
"unsafe"
syscall
"golang.org/x/sys/unix"
)
const
ioctlReadTermios
=
syscall
.
TCGETS
// IsTerminal return true if the file descriptor is terminal.
func
IsTerminal
(
fd
uintptr
)
bool
{
var
termios
syscall
.
Termios
_
,
_
,
err
:=
syscall
.
Syscall6
(
syscall
.
SYS_IOCTL
,
fd
,
ioctlReadTermios
,
uintptr
(
unsafe
.
Pointer
(
&
termios
)),
0
,
0
,
0
)
return
err
==
0
}
// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
// terminal. This is also always false on this environment.
func
IsCygwinTerminal
(
fd
uintptr
)
bool
{
return
false
}
vendor/github.com/mattn/go-isatty/isatty_others.go
0 → 100644
View file @
1ea5279d
// +build appengine js
package
isatty
// IsTerminal returns true if the file descriptor is terminal which
// is always false on js and appengine classic which is a sandboxed PaaS.
func
IsTerminal
(
fd
uintptr
)
bool
{
return
false
}
// IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2
// terminal. This is also always false on this environment.
func
IsCygwinTerminal
(
fd
uintptr
)
bool
{
return
false
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment