From 6892001bbc38e19c6f06cf9e78390962b007bc4f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 16 Nov 2015 19:14:05 +0100 Subject: add tty-related ioctl's --- sys/decl.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/decl.go') 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 ( -- cgit mrf-deployment