aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/io-pathconf.c
Commit message (Collapse)AuthorAgeFilesLines
* libdiskfs,libnetfs: add missing io_pathconf casesSamuel Thibault2020-05-281-0/+10
| | | | | | | | * libdiskfs/io-pathconf.c (diskfs_S_io_pathconf): For _PC_REC_MAX_XFER_SIZE, _PC_REC_INCR_XFER_SIZE, _PC_SYMLINK_MAX, return undefined. For _PC_2_SYMLINKS, return 1. For _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, _PC_ALLOC_SIZE_MIN, return page size. * libnetfs/io-pathconf.c (netfs_S_io_pathconf): Likewise.
* Revert "libdiskfs: handle _PC_2_SYMLINKS in pathconf"Pino Toscano2012-10-041-4/+0
| | | | | | It turned out it is the wrong approach. This reverts commit b6768b326c2e80f5c2326ab46459644d417c6e98.
* libdiskfs: handle _PC_2_SYMLINKS in pathconfPino Toscano2012-09-301-0/+4
| | | | | | | | Advertize the possibility to handle symlinks depending on DISKFS_SHORTCUT_SYMLINK. * libdiskfs/io-pathconf.c (diskfs_S_io_pathconf): Handle _PC_2_SYMLINKS too.
* libdiskfs: handle _PC_PATH_MAX in pathconfPino Toscano2011-10-191-0/+1
| | | | | | | | Explicitly return -1 also for _PC_PATH_MAX to indicate there is no limit for it, otherwise EINVAL is returned for it. * libdiskfs/io-pathconf.c (diskfs_S_io_pathconf): Handle _PC_PATH_MAX too.
* 1999-10-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-141-3/+9
| | | | | | | * io-pathconf.c (diskfs_S_io_pathconf): Cap diskfs_name_max to size representable in struct dirent.d_namlen. (diskfs_S_io_pathconf): Always return 1 for _PC_NO_TRUNC, since we always constrain diskfs_name_max.
* 1999-10-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-141-2/+5
| | | | | | | * lookup.c (diskfs_lookup): Enforce diskfs_name_max limit for CREATE and RENAME, returning ENAMETOOLONG for violations. * io-pathconf.c (diskfs_S_io_pathconf): _PC_NO_TRUNC controlled by diskfs_name_max setting.
* 1999-10-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-131-5/+6
| | | | | | * diskfs.h (diskfs_name_max): Declare new variable. * io-pathconf.c (diskfs_S_io_pathconf): Use it for _PC_NAME_MAX, capping it to 1024.
* 1999-09-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-091-3/+42
| | | | | * io-pathconf.c: Include <unistd.h>. (diskfs_S_io_pathconf): Provide real definition.
* (diskfs_S_io_pathconf): Renamed from file_pathconf.c:diskfs_S_file_pathconf.Miles Bader1995-09-181-8/+6
|
* (diskfs_S_file_pathconf): Declare NAME to be unused.Michael I. Bushnell1995-06-091-2/+2
|
* entered into RCSRoland McGrath1994-05-051-1/+1
|
* Formerly file-pathconf.c.~2~Michael I. Bushnell1994-02-031-0/+1
|
* Initial revisionMichael I. Bushnell1994-01-311-0/+31