This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH roland/getrlimit] Re: Bug 14138 - Move some functions to syscalls.list


> Adding this line to linux/syscalls.list:
> 
> getrlimit	-	ugetrlimit	i:ip	__new_getrlimit __getrlimit getrlimit@@GLIBC_2.2
> 
> The unix/syscalls.list takes precendence of the linux one. So, this did 
> not work out for x86 ;( Or did I made an error?

What exactly does that mean?  What getrlimit-related lines appear in the
sysd-syscalls generated after the change?  

> Btw. I  removed the linux/i386/getrlimit.c file for this as well,

Yes, that's necessary.

Anyway, you must have made some error, because it worked for me.
The change below is on the roland/getrlimit branch.

It needs testing and sign-off from powerpc, sh, am33, arm, and m68k
maintainers.


Thanks,
Roland


2012-07-26  Roland McGrath  <roland@hack.frob.com>

	[BZ #14138]
	* sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
	* sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
	* sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
	* sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.

ports/ChangeLog.am33
2012-07-26  Roland McGrath  <roland@hack.frob.com>

	[BZ #14138]
	* sysdeps/unix/sysv/linux/am33/getrlimit.c: File removed.

ports/ChangeLog.arm
2012-07-26  Roland McGrath  <roland@hack.frob.com>

	[BZ #14138]
	* sysdeps/unix/sysv/linux/arm/getrlimit.c: File removed.

ports/ChangeLog.m68k
2012-07-26  Roland McGrath  <roland@hack.frob.com>

	[BZ #14138]
	* sysdeps/unix/sysv/linux/m68k/getrlimit.c: File removed.


diff --git a/ports/sysdeps/unix/sysv/linux/am33/getrlimit.c b/ports/sysdeps/unix/sysv/linux/am33/getrlimit.c
deleted file mode 100644
index fc06dbd..0000000
diff --git a/ports/sysdeps/unix/sysv/linux/arm/getrlimit.c b/ports/sysdeps/unix/sysv/linux/arm/getrlimit.c
deleted file mode 100644
index fc06dbd..0000000
diff --git a/ports/sysdeps/unix/sysv/linux/m68k/getrlimit.c b/ports/sysdeps/unix/sysv/linux/m68k/getrlimit.c
deleted file mode 100644
index fc06dbd..0000000
diff --git a/sysdeps/unix/sysv/linux/i386/getrlimit.c b/sysdeps/unix/sysv/linux/i386/getrlimit.c
deleted file mode 100644
index e18f9de..0000000
diff --git a/sysdeps/unix/sysv/linux/powerpc/getrlimit.c b/sysdeps/unix/sysv/linux/powerpc/getrlimit.c
deleted file mode 100644
index fc06dbd..0000000
diff --git a/sysdeps/unix/sysv/linux/sh/getrlimit.c b/sysdeps/unix/sysv/linux/sh/getrlimit.c
deleted file mode 100644
index fc06dbd..0000000
diff --git a/sysdeps/unix/sysv/linux/syscalls.list b/sysdeps/unix/sysv/linux/syscalls.list
index 9ec0028..6343272 100644
--- a/sysdeps/unix/sysv/linux/syscalls.list
+++ b/sysdeps/unix/sysv/linux/syscalls.list
@@ -25,6 +25,7 @@ getpmsg		-	getpmsg		i:ipppp	getpmsg
 getppid		-	getppid		Ei:	__getppid	getppid
 getresuid	-	getresuid	i:ppp	getresuid
 getresgid	-	getresgid	i:ppp	getresgid
+getrlimit	-	ugetrlimit	i:ip	__new_getrlimit __getrlimit getrlimit@@GLIBC_2.2
 getsid		-	getsid		i:i	getsid
 init_module	EXTRA	init_module	5	init_module
 inotify_add_watch	EXTRA	inotify_add_watch	i:isi	inotify_add_watch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]