diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2015-11-16 19:14:05 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-11-16 19:14:05 +0100 |
| commit | 6892001bbc38e19c6f06cf9e78390962b007bc4f (patch) | |
| tree | 835227d2296bbbbcce282251567d4cd993db06b7 /sys/decl.go | |
| parent | 3716eb38300268c5400907f4e2178a5d96440d59 (diff) | |
add tty-related ioctl's
Diffstat (limited to 'sys/decl.go')
| -rw-r--r-- | sys/decl.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/decl.go b/sys/decl.go index 107139006..c5107efe8 100644 --- a/sys/decl.go +++ b/sys/decl.go @@ -69,6 +69,7 @@ const ( FdMq FdInotify FdFanotify + FdTty IPCMsq IPCSem @@ -165,7 +166,7 @@ func (t ResourceType) Size() uintptr { func (t ResourceType) SubKinds() []ResourceSubkind { switch t.Kind { case ResFD: - return []ResourceSubkind{FdFile, FdSock, FdPipe, FdSignal, FdEvent, FdTimer, FdEpoll, FdDir, FdMq, FdInotify, FdFanotify} + return []ResourceSubkind{FdFile, FdSock, FdPipe, FdSignal, FdEvent, FdTimer, FdEpoll, FdDir, FdMq, FdInotify, FdFanotify, FdTty} case ResIPC: return []ResourceSubkind{IPCMsq, IPCSem, IPCShm} case ResIOCtx, ResKey, ResInotifyDesc, ResPid, ResUid, ResGid, ResTimerid: @@ -217,6 +218,12 @@ type ConstType struct { Val uintptr } +type StrConstType struct { + TypeCommon + TypeSize uintptr + Val string +} + type IntKind int const ( |
