good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
1ea5279d
Commit
1ea5279d
authored
6 years ago
by
HackyMiner
Committed by
Guillaume Ballet
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
vendor: vendor/github.com/mattn/go-isatty - add missing files (reported by mksully22) (#18376)
parent
27913dd2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go
+25
-0
25 additions, 0 deletions
vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go
vendor/github.com/mattn/go-isatty/isatty_others.go
+15
-0
15 additions, 0 deletions
vendor/github.com/mattn/go-isatty/isatty_others.go
with
40 additions
and
0 deletions
vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go
0 → 100644
+
25
−
0
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
}
This diff is collapsed.
Click to expand it.
vendor/github.com/mattn/go-isatty/isatty_others.go
0 → 100644
+
15
−
0
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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment