summaryrefslogtreecommitdiff
path: root/internal/eventloop.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-10 22:50:58 +0300
committerPaul Buetow <paul@buetow.org>2025-07-10 22:50:58 +0300
commit639af92806847f55c986cc2643986acccba19884 (patch)
tree5174e73b6ea6b349e471a568a41840d67455f3a4 /internal/eventloop.go
parent755036f41001a6c408fc97e2642a02d5ea7f51a3 (diff)
Remove outdated dup3 TODO and add comprehensive tests
- Remove misleading TODO comment about dup3 implementation (already implemented) - Add comprehensive test for dup3 with O_CLOEXEC flag verification - Add comprehensive test for dup2 without O_CLOEXEC flag - Both tests verify proper file descriptor lifecycle and flag handling The dup3 syscall was already fully implemented but lacked proper testing. These tests ensure correct behavior of both dup2 and dup3 syscalls, particularly the O_CLOEXEC flag handling which differentiates them. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/eventloop.go')
-rw-r--r--internal/eventloop.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/eventloop.go b/internal/eventloop.go
index 929f202..679d69f 100644
--- a/internal/eventloop.go
+++ b/internal/eventloop.go
@@ -350,7 +350,6 @@ func (e *eventLoop) tracepointExited(exitEv event.Event, ch chan<- *event.Pair)
default:
panic(fmt.Sprintf("unknown type: %v", v))
}
- // TODO: implement dup3 syscall
// TODO: implement copy_file_range
// TODO: open_by_handle_at
// TODO: name_to_handle_at