From: GV <gv_kovai@yahoo.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] sys_epoll patch for ia64-linux
Date: Sun, 04 May 2003 00:43:25 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590723705633@msgid-missing> (raw)
Hello All,
I am new to this list. Have a sys_epoll patched 2.4.20
kernel. sys_epoll
patch adds the following 3 system calls
epoll_create()
epoll_ctl()
epoll_wait().
As this patch actually targets i386, modified the two
files for ia64 as
follows for the kernel compilation.
/usr/src/linux-2.4.20.se1/include/asm-ia64/unistd.h
/* Added by GV - sys_epoll support */
#define __NR_epoll_create 1280
#define __NR_epoll_ctl 1281
#define __NR_epoll_wait 1282
/usr/src/linux-2.4.20.se1/arch/ia64/kernel/entry.S
data8 ia64_ni_syscall // 1279
reserved for sys_lookup_dcookie
data8 sys_epoll_create // 1280
data8 sys_epoll_ctl
data8 sys_epoll_wait
To overcome glibc issue, wrote the simple code as
follows...
#include <unistd.h>
#include <sys/syscall.h>
#include <errno.h>
#define SYS_epoll_create 1280
int main() {
int rc;
rc = syscall(SYS_epoll_create, 10);
if(rc = -1) {
printf("syscall Failed, %s %d\n",
strerror(errno), errno);
return 1;
} else {
printf("syscall passed\n");
}
}
Note: Also tried with '__NR_' instead of 'SYS'
----------------------------------------
This program returns with error code 38 - Function NOT
implemented.
Here is the patch :
http://www.xmailserver.org/linux-patches/epoll-lt-2.4.20-0.5
.diff
Any help/thoughts will be much appreciated.
Regards,
GV
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
reply other threads:[~2003-05-04 0:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105590723705633@msgid-missing \
--to=gv_kovai@yahoo.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.