What are other restrictions on what an absolute pathname can be?
It seems that the only restrictions are that it must begin with a “/”, and the following sequence of ascii characters must consist of segments of ascii characters each separated by “/”.
Note: I’m trying to figure out the name space of a function that maps pathnames to files.
Edit: It turns out that for my homework, my reasoning on the restrictions is correct.
The length of a pathname name cannot exceed PATH_MAX – see /usr/include/limits.h or sysconf(3).
The length of a file cannot exceed NAME_MAX which is filesystem dependent – see fpathconf(3) or pathconf.
An absolute path does start with ‘/’