lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 11 Mar 2011 11:40:50 -0600
From:	Linas Vepstas <linasvepstas@...il.com>
To:	Chris Metcalf <cmetcalf@...era.com>
Cc:	Arnd Bergmann <arnd@...db.de>,
	GLIBC Devel <libc-alpha@...rceware.org>,
	linux-kernel@...r.kernel.org, libc-ports@...rceware.org
Subject: PATCH: generic/fcntl.h [was Re: asm-generic/unistd.h and glibc use of NR_ipc]

Chris,

Another patch, to generic/fcntl.h, at bottom.

On 28 September 2010 08:05, Chris Metcalf <cmetcalf@...era.com> wrote:
>  (Adding libc-ports to the cc list.)
>
> On 9/28/2010 4:40 AM, Arnd Bergmann wrote:
>> Chris Metcalf is using the generic unistd.h file on the tile architecture
>> and has a glibc port that should be easily portable to all future
>> architectures. There are a few of them getting ready to be merged
>> now (c6x, lm32, nios2, and some people have contacted me privately
>> for architectures I cannot name).
>>
>> I expect that all of them will just use the same syscall ABI and glibc
>> port.
>
> I'm happy to provide some previews of the work I'm doing to interested parties.

[...]

> Thanks in advance for any feedback.  Please keep me cc'ed on any
> discussions of the generic Linux syscall ABI.  Thanks!
>
> sysdeps/unix/sysv/linux/generic/access.c
> sysdeps/unix/sysv/linux/generic/bits/fcntl.h

glibc-2.13 breaks without F_GETPIPE_SZ

Closer inspection shows that F_DUPFD_CLOEXEC is usually
protected by __USE_XOPEN2K8 and not __USE_GNU so
I tweaked that; revert if you disagree ...

In lieu of the usual changelog entry ---
Signed-off-by: Linas Vepstas <linasvepsts@...il.com>

---
 sysdeps/unix/sysv/linux/generic/bits/fcntl.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: glibc-2.13/sysdeps/unix/sysv/linux/generic/bits/fcntl.h
===================================================================
--- glibc-2.13.orig/sysdeps/unix/sysv/linux/generic/bits/fcntl.h
 2011-03-11 11:11:12.000000000 -0600
+++ glibc-2.13/sysdeps/unix/sysv/linux/generic/bits/fcntl.h
2011-03-11 11:12:26.000000000 -0600
@@ -114,6 +114,10 @@
 # define F_SETLEASE    1024    /* Set a lease.  */
 # define F_GETLEASE    1025    /* Enquire what lease is active.  */
 # define F_NOTIFY      1026    /* Request notfications on a directory.  */
+# define F_SETPIPE_SZ   1031  /* Set pipe page size array.  */
+# define F_GETPIPE_SZ   1032  /* Set pipe page size array.  */
+#endif
+#ifdef __USE_XOPEN2K8
 # define F_DUPFD_CLOEXEC 1030  /* Duplicate file descriptor with
                                   close-on-exit set.  */
 #endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ