This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [COMMITTED PATCH] Move tilegx, tilepro, and linux-generic from ports to libc.
- From: Chris Metcalf <cmetcalf at ezchip dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: szabolcs.nagy <szabolcs dot nagy at arm dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 19 Mar 2015 13:37:44 -0400
- Subject: Re: [COMMITTED PATCH] Move tilegx, tilepro, and linux-generic from ports to libc.
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;
- References: <201402101603 dot s1AG30C9000514 at gx-1 dot internal dot tilera dot com> <CAMe9rOpqM3QsZpFnCb57gcWMwFR6acdVCvofV=U40avD78nG8w at mail dot gmail dot com> <550AF9F1 dot 2080600 at ezchip dot com> <CAMe9rOpR29gEFuhGLPg_o1DK0+XHrvFw8zk=zYA5s1QuJ_yAVQ at mail dot gmail dot com> <550B006B dot 5030300 at ezchip dot com> <CAMe9rOoU=XLGWEVRP87KrcgGn4+iy2PNYoN6YPNRCojsQj7kzQ at mail dot gmail dot com> <550B037D dot 4010203 at ezchip dot com> <CAMe9rOqgGBWnGQF-eq2Xb-ezHz6h4R0DovtC5isq1aDKhpku8g at mail dot gmail dot com>
On 03/19/2015 01:18 PM, H.J. Lu wrote:
Is the linux/generic scheme
documented in glibc tree? Should there be a README in
linux/generic directory?
It was not specifically documented, so I have added a README (and
committed it). I think it is probably worthwhile to see how much of the
existing linux/generic/wordsize-32 support can be used by x32 or
AArch64:ILP32. Some of it wouldn't apply (e.g. fstatfs.c, to take an
obvious example), but other parts might; I'm not sure. I guess the
kernel API is still being nailed down anyway.
diff --git a/sysdeps/unix/sysv/linux/generic/README b/sysdeps/unix/sysv/linux/generic/README
new file mode 100644
index 000000000000..301a6107e17f
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/generic/README
@@ -0,0 +1,11 @@
+This hierarchy supports Linux systems using the new
+asm-generic/unistd.h, which removes many familiar old syscalls. For
+example, to implement open(), newer Linux architectures require glibc
+to invoke the __NR_openat syscall with AT_FDCWD. This hierarchy
+provides all those implementations.
+
+It also provides support for 32-bit platforms using the 64-bit kernel
+syscall APIs, as the 32-bit ones are no longer provided. Note that
+newer ILP32 environments (x32 or AArch64:ILP32, for example) are
+converting to use more 64-bit types in kernel syscalls, so that aspect
+of this support is in more flux as of this writing.
--
Chris Metcalf, EZChip Semiconductor
http://www.ezchip.com
- References:
- Re: [COMMITTED PATCH] Move tilegx, tilepro, and linux-generic from ports to libc.
- Re: [COMMITTED PATCH] Move tilegx, tilepro, and linux-generic from ports to libc.
- Re: [COMMITTED PATCH] Move tilegx, tilepro, and linux-generic from ports to libc.
- Re: [COMMITTED PATCH] Move tilegx, tilepro, and linux-generic from ports to libc.
- Re: [COMMITTED PATCH] Move tilegx, tilepro, and linux-generic from ports to libc.
- Re: [COMMITTED PATCH] Move tilegx, tilepro, and linux-generic from ports to libc.
- Re: [COMMITTED PATCH] Move tilegx, tilepro, and linux-generic from ports to libc.