Index: hurd/xattr.c
===================================================================
RCS file: hurd/xattr.c
diff -N hurd/xattr.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ hurd/xattr.c 6 Mar 2005 23:56:43 -0000
...
+error_t
+_hurd_xattr_list (io_t port, void *buffer, size_t *size)
+{
+ size_t total = 0;
+ char *bufp = buffer;
+ inline void add (const char *name, size_t len)
+ {
+ total += len;
+ if (bufp != NULL && total <= *size)
+ bufp = __mempcpy (bufp, name, len);
+ }
+#define add(s) add (s, sizeof s)
Does this actually work? Won't gcc get annoyed about definitions
here?
_______________________________________________
Bug-hurd mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-hurd