summaryrefslogtreecommitdiff
path: root/internal/eventloop_comm.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-30 22:07:11 +0300
committerPaul Buetow <paul@buetow.org>2026-05-30 22:07:11 +0300
commitdfb6190d109593227545df2e0caf82b6ee2c578f (patch)
tree089c7647a3ff87cdc16ddcbcdeb0c17149f3039d /internal/eventloop_comm.go
parent9d5d1138df447a29da1ca7c733aa09ffabce703b (diff)
test(generate): lock in msgctl SysV-op classification
msgctl(2) operates on a System V message queue identified by msqid (args[0]). msqid is a SysV IPC id returned by msgget, NOT a file descriptor; capturing it as an fd would corrupt the fd-resource view. ior already classifies msgctl as KindSysVOp in FamilyIPC (consistent with siblings semctl/shmctl/msgget/msgsnd/msgrcv), emits a null_event with no arg capture, and reports the int status as UNCLASSIFIED. Add lock-in tests pinning this behavior: - TestGenerateMsgctlHandler: KindSysVOp for msgctl/semctl/shmctl, all FamilyIPC; generated enter handler emits null_event and captures no args (asserts no ctx->args[ and no ev->fd); exit ret is UNCLASSIFIED. - TestClassifyRetMsgctlUnclassified: msgctl ret is never a byte count. No implementation change needed; mage generate produces no diff. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/eventloop_comm.go')
0 files changed, 0 insertions, 0 deletions