1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Define miss_F_GETOWN_EX only if needed.

When doing i686-unknown-linux-gnu build configured with --enable-kernel=2.6.24,
there are several warnings like this:

  ../sysdeps/unix/sysv/linux/i386/fcntl.c:36:12: warning: ‘miss_F_GETOWN_EX’ defined but not used
This commit is contained in:
Ulrich Drepper
2010-03-27 04:11:14 -07:00
parent 8dc1d0baa0
commit 62f8db6e49
2 changed files with 17 additions and 11 deletions

View File

@ -1,3 +1,9 @@
2010-03-26 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/fcntl.c: Define miss_F_GETOWN_EX
only if needed.
Patch mostly by Paul Pluzhnikov <ppluzhnikov@google.com>.
2010-03-26 Richard Henderson <rth@redhat.com>
* sysdeps/generic/ldsodefs.h (_dl_random): Mark attribute_relro;

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2000,2002,2003,2004,2006,2009 Free Software Foundation, Inc.
/* Copyright (C) 2000,2002-2004,2006,2009,2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -25,23 +25,23 @@
#include <sys/syscall.h>
#include <kernel-features.h>
#if __ASSUME_FCNTL64 == 0
#ifndef __ASSUME_FCNTL64
/* This variable is shared with all files that check for fcntl64. */
int __have_no_fcntl64;
#endif
#ifdef __ASSUME_F_GETOWN_EX
# define miss_F_GETOWN_EX 0
#else
#elif !defined __ASSUME_FCNTL64
static int miss_F_GETOWN_EX;
#endif
#if defined NO_CANCELLATION && __ASSUME_FCNTL64 == 0
#if defined NO_CANCELLATION && !defined __ASSUME_FCNTL64
# define __fcntl_nocancel __libc_fcntl
#endif
#if !defined NO_CANCELLATION || __ASSUME_FCNTL64 == 0
#if !defined NO_CANCELLATION || !defined __ASSUME_FCNTL64
int
__fcntl_nocancel (int fd, int cmd, ...)
{
@ -52,7 +52,7 @@ __fcntl_nocancel (int fd, int cmd, ...)
arg = va_arg (ap, void *);
va_end (ap);
#if __ASSUME_FCNTL64 == 0
#ifndef __ASSUME_FCNTL64
# ifdef __NR_fcntl64
if (! __have_no_fcntl64)
{
@ -168,7 +168,7 @@ __libc_fcntl (int fd, int cmd, ...)
arg = va_arg (ap, void *);
va_end (ap);
#if __ASSUME_FCNTL64 > 0
# ifdef __ASSUME_FCNTL64
if (SINGLE_THREAD_P || (cmd != F_SETLKW && cmd != F_SETLKW64))
return INLINE_SYSCALL (fcntl64, 3, fd, cmd, arg);