summaryrefslogtreecommitdiff
path: root/eventfd.c
Commit message (Collapse)AuthorAgeFilesLines
* Add copyright headers to some files which lack themDmitry V. Levin2015-12-171-0/+28
| | | | | | | | | | Before this change, all files that exist since 20th century had copyright headers, while most files that appeared later didn't. This change fixes the inconsistency by adding missing copyright headers. It doesn't mean that copyright headers became maintained. In my view, git history provides much better information on this subject and is much more accurate than copyright headers.
* eventfd2: fix flags decodingDmitry V. Levin2015-08-011-1/+7
| | | | | | | | | | | | | | | | * configure.ac (AC_CHECK_HEADERS): Add sys/eventfd.h. * eventfd.c: Include <fcntl.h>. [HAVE_SYS_EVENTFD_H] Include <sys/eventfd.h>. Include "xlat/efd_flags.h". (do_eventfd): Use efd_flags for flags decoding. * xlat/efd_flags.in: New file. * tests/eventfd.c: New file. * tests/eventfd.expected: Likewise. * tests/eventfd.test: New test. * tests/Makefile.am (check_PROGRAMS): Add eventfd. (TESTS): Add eventfd.test. (EXTRA_DIST): Add eventfd.expected. * tests/.gitignore: Add eventfd.
* eventfd: print first argument as unsigned intDmitry V. Levin2015-08-011-1/+1
| | | | * eventfd.c (do_eventfd): Explicitly cast initial value to unsigned int.
* Mark eventfd return code with RVAL_FD flagDmitry V. Levin2015-08-011-1/+1
| | | | * eventfd.c (do_eventfd): Set RVAL_FD flag in the return code.
* desc.c: move eventfd parsers to a separate fileDmitry V. Levin2015-08-011-0/+23
* eventfd.c: New file. * Makefile.am (strace_SOURCES): Add it. * desc.c (do_eventfd, sys_eventfd, sys_eventfd2): Move to eventfd.c.