Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 27 May 2014 01:26:25 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: [UGLY PATCH v3] Support for no-legacy-syscalls archs

This updated patch should actually compile if you #undef all the SYS_*
constants for syscalls that new archs don't provide. Major changes
include:

- use of pause in exit and quick_exit
- fixed bugs in poll and select
- linux epoll/inotify/eventfd/signalfd
- other functions i'd overlooked that use some of these syscalls

In the case of epoll, etc. I reworked the code to always prefer the
new syscalls and only fallback to the old ones if (1) they exist, and
(2) the new one returned ENOSYS. signalfd already has fallback code
that handles FD_CLOEXEC as best it can when the new syscall is not
available, but the others seem to be lacking the proper fallback code
so I should perhaps add that too.

Rich

View attachment "no_legacy_syscall_archs_v3.diff" of type "text/plain" (22280 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.