aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/fpathconf.c7
-rw-r--r--sysdeps/posix/pathconf.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 642bedaa0c..605cd171d0 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 7e3fd0371c..75c99ee5c0 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;
}
}