kernel/tmpfs: Add _PC_2_SYMLINKS support. getconf(1) adjustments.
authorSascha Wildner <saw@online.de>
Wed, 6 Jan 2016 10:33:39 +0000 (11:33 +0100)
committerSascha Wildner <saw@online.de>
Wed, 6 Jan 2016 10:33:39 +0000 (11:33 +0100)
sys/sys/unistd.h
sys/vfs/tmpfs/tmpfs_vnops.c
usr.bin/getconf/pathconf.gperf

index 46eb79d..49ed9cc 100644 (file)
 #define        _PC_SYMLINK_MAX         18
 #endif
 
+#if __POSIX_VISIBLE >= 200809
+#define        _PC_2_SYMLINKS          22
+#endif
+
 #if __BSD_VISIBLE
 #define        _PC_ACL_EXTENDED        59
 #define        _PC_ACL_PATH_MAX        60
index 4536fe4..7136b9b 100644 (file)
@@ -1749,6 +1749,10 @@ tmpfs_pathconf(struct vop_pathconf_args *v)
                *retval = 1;
                break;
 
+       case _PC_2_SYMLINKS:
+               *retval = 1;
+               break;
+
        default:
                error = EINVAL;
        }
index 364683d..834965e 100644 (file)
@@ -27,6 +27,7 @@ MAX_INPUT, _PC_MAX_INPUT
 NAME_MAX, _PC_NAME_MAX
 PATH_MAX, _PC_PATH_MAX
 PIPE_BUF, _PC_PIPE_BUF
+POSIX2_SYMLINKS, _PC_2_SYMLINKS
 POSIX_ALLOC_SIZE_MIN, _PC_ALLOC_SIZE_MIN
 POSIX_REC_INCR_XFER_SIZE, _PC_REC_INCR_XFER_SIZE
 POSIX_REC_MAX_XFER_SIZE, _PC_REC_MAX_XFER_SIZE