diff options
author | gcc <gcc@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2006-08-17 01:30:22 +0000 |
---|---|---|
committer | gcc <gcc@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2006-08-17 01:30:22 +0000 |
commit | d5eb8bbe5f32d1af4db8b731c3bf290217fcb18e (patch) | |
tree | 7cef18fec81193830f7bff57599d11d34dc565bf /ports/sysdeps/unix/sysv/irix4/fpathconf.c | |
parent | 976b1f28a501872989e39e2db5cbe16ee7c4548e (diff) |
Import glibc-ports-2.3 for 2006-08-16eglibc-2_3@52
git-svn-id: svn://svn.eglibc.org/fsf/glibc-2_3-branch@12 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'ports/sysdeps/unix/sysv/irix4/fpathconf.c')
-rw-r--r-- | ports/sysdeps/unix/sysv/irix4/fpathconf.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ports/sysdeps/unix/sysv/irix4/fpathconf.c b/ports/sysdeps/unix/sysv/irix4/fpathconf.c new file mode 100644 index 000000000..236eb1a6b --- /dev/null +++ b/ports/sysdeps/unix/sysv/irix4/fpathconf.c @@ -0,0 +1,35 @@ +/* Copyright (C) 1994, 1995, 1997, 2004 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 + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +#include <errno.h> +#include <stddef.h> +#include <unistd.h> +#include <sys/syssgi.h> + +extern int __syssgi (int, ...); + +/* Get file-specific information about descriptor FD. */ +long int +__fpathconf (fd, name) + int fd; + int name; +{ + return __syssgi (SGI_PATHCONF, FPATHCONF, fd, name); +} + +weak_alias (__fpathconf, fpathconf) |