summaryrefslogtreecommitdiff
path: root/src/syscall-i386.h
Commit message (Collapse)AuthorAgeFilesLines
* add support for io_pgeteventsChristoph Hellwig2018-01-161-0/+1
| | | | | | | | | | | | | | | | | | This is ppoll/pselect equivalent for io_getevents. It atomically executes the following sequence: sigset_t origmask; pthread_sigmask(SIG_SETMASK, &sigmask, &origmask); ret = io_getevents(ctx, min_nr, nr, events, timeout); pthread_sigmask(SIG_SETMASK, &origmask, NULL); And thus allows to safely mix aio and signals, especially together with IO_CMD_POLL. See the pselect(2) man page for a more detailed explanation. Signed-off-by: Christoph Hellwig <hch@lst.de> [JEM: add sigset size parameter to io_pgetevents] Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
* syscall: get rid of custom syscall implementationsyscall-refactorJeff Moyer2018-01-121-67/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Maintaining the custom system call code for each architecture is a burden. I'm not convinced that we have clobber registers correct, and at best, we are just duplicating work that has already been done by the glibc maintainers. I asked Ben what the reasoning was behind not just using syscall. This was his answer: The main issue was that glibc's pthreads implementation really sucked back during initial development and there was a use-case for having the io_XXX functions usable directly from clone()ed threads that didn't have all the glibc pthread state setup for per-cpu areas to handle per-thread errno. That made sense back then, but is rather silly today. This patch gets rid of the architecture specific system call wrappers in favor of using syscall(). We leave the per-arch header files with the syscall numbers because we'll be adding a new system call soon, and this will allow us to add the new number without requiring newer kernels on build servers. Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
* - Revert syscall return values to be -ERRNO. This was an inadvertant buglibaio.0-3-101.1Jeff Moyer2004-10-131-0/+67
| | | | | introduced when clobber lists changed. - add ppc64pseries and ppc64iseries to exclusivearch
* update syscall calling mechanism to be more generic. add -fpic to i386 ↵libaio.0-3-97.1Jeff Moyer2004-02-241-52/+0
| | | | build. fix s390 build errors for rh9
* symbol versioning patch from UlrichMichael K. Johnson2003-05-201-15/+15
|
* fixup i386 breakageBen LaHaise2002-09-131-25/+46
|
* libaio-0.4.0 targetted changeslibaio.0-3-90.1Ben LaHaise2002-09-051-0/+36