diff options
author | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2012-05-12 15:44:41 +0000 |
---|---|---|
committer | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2012-05-12 15:44:41 +0000 |
commit | 62eb53f68d92687a028f3c515489b30e3df1d979 (patch) | |
tree | 7fcf1c95d89caecbbff5d932778f04670c151c52 /libc/io | |
parent | c29b18b38ccefba22c13b33dd801acba0ae92523 (diff) | |
download | eglibc2-62eb53f68d92687a028f3c515489b30e3df1d979.tar.gz |
Merge changes between r18392 and r18519 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@18520 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/io')
-rw-r--r-- | libc/io/dup3.c | 5 | ||||
-rw-r--r-- | libc/io/fcntl.h | 26 |
2 files changed, 27 insertions, 4 deletions
diff --git a/libc/io/dup3.c b/libc/io/dup3.c index 90a3d6089..7e97bf733 100644 --- a/libc/io/dup3.c +++ b/libc/io/dup3.c @@ -24,7 +24,7 @@ open the same file as FD is which setting flags according to FLAGS. Return FD2 or -1. */ int -dup3 (fd, fd2, flags) +__dup3 (fd, fd2, flags) int fd; int fd2; int flags; @@ -42,7 +42,8 @@ dup3 (fd, fd2, flags) __set_errno (ENOSYS); return -1; } -libc_hidden_def (dup3) +libc_hidden_def (__dup3) +weak_alias (__dup3, dup3) stub_warning (dup3) #include <stub-tag.h> diff --git a/libc/io/fcntl.h b/libc/io/fcntl.h index 8b8726a44..c7d5e6972 100644 --- a/libc/io/fcntl.h +++ b/libc/io/fcntl.h @@ -1,5 +1,4 @@ -/* Copyright (C) 1991,1992,1994-2001,2003-2007,2009-2011,2012 - Free Software Foundation, Inc. +/* Copyright (C) 1991-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 @@ -32,6 +31,29 @@ __BEGIN_DECLS numbers and flag bits for `open', `fcntl', et al. */ #include <bits/fcntl.h> +#if defined __USE_XOPEN || defined __USE_XOPEN2K +/* The Single Unix specification says that some more types are + available here. */ +# ifndef __mode_t_defined +typedef __mode_t mode_t; +# define __mode_t_defined +# endif + +# ifndef __off_t_defined +# ifndef __USE_FILE_OFFSET64 +typedef __off_t off_t; +# else +typedef __off64_t off_t; +# endif +# define __off_t_defined +# endif + +# ifndef __pid_t_defined +typedef __pid_t pid_t; +# define __pid_t_defined +# endif +#endif /* X/Open */ + /* For XPG all symbols from <sys/stat.h> should also be available. */ #if defined __USE_XOPEN || defined __USE_XOPEN2K8 # include <bits/types.h> /* For __mode_t and __dev_t. */ |