From 540d7568aefbc870e8f618905cfbc38f9e6fcc61 Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Sat, 28 Jan 2012 11:51:44 -0500 Subject: Use <> brackets for not-cancel.h in sysdeps/unix/sysv/linux/grantpt.c. --- sysdeps/unix/sysv/linux/grantpt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv') diff --git a/sysdeps/unix/sysv/linux/grantpt.c b/sysdeps/unix/sysv/linux/grantpt.c index f2fc60f..0a3cd47 100644 --- a/sysdeps/unix/sysv/linux/grantpt.c +++ b/sysdeps/unix/sysv/linux/grantpt.c @@ -7,7 +7,8 @@ #include #include -#include "not-cancel.h" +#include + #include "pty-private.h" -- cgit v1.1 From 463de8625241174b25e339c119d7c59e79b474ec Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Sat, 28 Jan 2012 12:00:12 -0500 Subject: Use include/sys/epoll.h to provide libc_hidden_proto for epoll_pwait(). --- sysdeps/unix/sysv/linux/epoll_pwait.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv') diff --git a/sysdeps/unix/sysv/linux/epoll_pwait.c b/sysdeps/unix/sysv/linux/epoll_pwait.c index e689073..a9c5b3c 100644 --- a/sysdeps/unix/sysv/linux/epoll_pwait.c +++ b/sysdeps/unix/sysv/linux/epoll_pwait.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2007 Free Software Foundation, Inc. +/* Copyright (C) 2007, 2011, 2012 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 @@ -67,3 +67,5 @@ stub_warning (epoll_pwait) # include #endif + +libc_hidden_def (epoll_pwait) -- cgit v1.1 From 3601428fb029e1c6e98d409dad64d709972cdf57 Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Sat, 28 Jan 2012 12:07:46 -0500 Subject: Call __fxstatat64 from faccessat() to avoid PLT in -Os builds. --- sysdeps/unix/sysv/linux/faccessat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/sysv') diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c index c154deb..bff7a4b 100644 --- a/sysdeps/unix/sysv/linux/faccessat.c +++ b/sysdeps/unix/sysv/linux/faccessat.c @@ -1,5 +1,5 @@ /* Test for access to file, relative to open directory. Linux version. - Copyright (C) 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2012 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 @@ -114,7 +114,7 @@ faccessat (fd, file, mode, flag) #endif struct stat64 stats; - if (fstatat64 (fd, file, &stats, flag & AT_SYMLINK_NOFOLLOW)) + if (__fxstatat64 (_STAT_VER, fd, file, &stats, flag & AT_SYMLINK_NOFOLLOW)) return -1; mode &= (X_OK | W_OK | R_OK); /* Clear any bogus bits. */ -- cgit v1.1