<commit_before>(in-package #:eventfd)

(defun eventfd.new (initval &key cloexec (nonblock t) semaphore)
  (let ((flags (logior
                (if cloexec iolib.syscalls:o-cloexec 0)
                (if nonblock iolib.syscalls:o-nonblock 0)
                (if semaphore iolib.syscalls:efd-semaphore 0))))
    (iolib.syscalls:eventfd initval flags)))

(defun eventfd.close (fd)<commit_msg>use efd specific flag names<commit_after>(in-package #:eventfd)

(defun eventfd.new (initval &key cloexec (nonblock t) semaphore)
  (let ((flags (logior
                (if cloexec iolib.syscalls:efd-cloexec 0)
                (if nonblock iolib.syscalls:efd-nonblock 0)
                (if semaphore iolib.syscalls:efd-semaphore 0))))
    (iolib.syscalls:eventfd initval flags)))

(defun eventfd.close (fd)
{'fraction_non_alphanumeric': 0.11809045226130653, 'fraction_numerical': 0.007537688442211055, 'mean_word_length': 3.045685279187817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2436031', 'n_tokens_mistral': 308, 'n_tokens_neox': 282, 'n_words': 65}