[all-commits] [llvm/llvm-project] 04b4f6: [libc] Fix epoll_create behavior when only epoll_c...

Mikhail R. Gadelha via All-commits all-commits at lists.llvm.org
Sun Jul 20 11:41:16 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 04b4f62e2f91a66ad47276f6e344afd0be17a325
      https://github.com/llvm/llvm-project/commit/04b4f62e2f91a66ad47276f6e344afd0be17a325
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2025-07-20 (Sun, 20 Jul 2025)

  Changed paths:
    M libc/src/sys/epoll/linux/epoll_create.cpp
    M libc/test/src/sys/epoll/linux/epoll_create_test.cpp

  Log Message:
  -----------
  [libc] Fix epoll_create behavior when only epoll_create1 is available (#149713)

In PR #99785, I disabled a test for `epoll_create` that was intended to
fail on systems where only `epoll_create1` is available. This is because
`epoll_create1` cannot fail in the same way that `epoll_create` does.

Specifically, calling `epoll_create(0)` should result in an EINVAL
error. So, when only `epoll_create1` is available, we should simply
check if the argument is zero and return the error accordingly.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list