summaryrefslogtreecommitdiff
path: root/libdiskfs/diskfs.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-10-13 19:41:44 +0000
committerRoland McGrath <roland@gnu.org>1999-10-13 19:41:44 +0000
commit4602afce4572c8e39e695386d298de70da2b3c80 (patch)
treee2c31f3bcd5f7577b81e331cd601d6f50e33fd67 /libdiskfs/diskfs.h
parent4953b53158c66b5c71afa0430204b9abc4c22c5e (diff)
1999-10-13 Roland McGrath <roland@baalperazim.frob.com>
* 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.
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r--libdiskfs/diskfs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 65452c60..e8974a11 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -201,6 +201,12 @@ extern size_t diskfs_dirstat_size;
reimplement dir_rename yourself. */
extern int diskfs_link_max;
+/* The user must define this variable; it is the maximum length of
+ a single pathname component (i.e. file name within directory).
+ The filesystem code does not use this for anything, but it is
+ returned to user queries for _PC_NAME_MAX. */
+extern int diskfs_name_max;
+
/* The user must define this variable; it is the maximum number of
symlinks to be traversed within a single call to dir_pathtrans.
If this is exceeded, dir_pathtrans will return ELOOP. */