diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-03-14 06:28:45 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-03-14 06:28:45 +0000 |
commit | 564cd8b67ec487fe090c8ead2fb93be91959985d (patch) | |
tree | a45ad932a67e2684648c3065026c66166006827e /sysdeps/posix | |
parent | 59b28a2e4b51c293025c157c62bfc27b633aee19 (diff) | |
download | glibc-564cd8b67ec487fe090c8ead2fb93be91959985d.zip glibc-564cd8b67ec487fe090c8ead2fb93be91959985d.tar.gz glibc-564cd8b67ec487fe090c8ead2fb93be91959985d.tar.bz2 |
Update.
2003-03-13 Ulrich Drepper <drepper@redhat.com>
* posix/getconf.c: Recognize POSIX2_SYMLINKS.
* sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
* sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
* sysdeps/posix/pathconf.c: Likewise.
* sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
* sysdeps/unix/sysv/linux/pathconf.c: Likewise.
* sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
* sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
words.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/fpathconf.c | 7 | ||||
-rw-r--r-- | sysdeps/posix/pathconf.c | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c index 642beda..605cd17 100644 --- a/sysdeps/posix/fpathconf.c +++ b/sysdeps/posix/fpathconf.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1991,1995,1996,1998,2000,2001 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1998,2000,2001,2003 + 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 @@ -229,6 +230,10 @@ __fpathconf (fd, name) /* In general there are no limits. If a system has one it should overwrite this case. */ return -1; + + case _PC_2_SYMLINKS: + /* Unix systems generally have symlinks. */ + return 1; } } diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c index 7e3fd03..75c99ee 100644 --- a/sysdeps/posix/pathconf.c +++ b/sysdeps/posix/pathconf.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1991,1995,1996,1998,2000,2001 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1998,2000,2001,2003 + 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 @@ -225,6 +226,10 @@ __pathconf (const char *path, int name) /* In general there are no limits. If a system has one it should overwrite this case. */ return -1; + + case _PC_2_SYMLINKS: + /* Unix systems generally have symlinks. */ + return 1; } } |