Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

11. System Limits and Options > Retrieving File-Related Limits (and Options) at...

The pathconf() and fpathconf() functions allow an application to obtain the values of file-related limits at run time.

#include <unistd.h>

long pathconf(const char *pathname, int name);
long fpathconf(int fd, int name);

Note

Both return value of limit specified by name, or -1 if limit is indeterminate or an error occurred

The only difference between pathconf() and fpathconf() is the manner in which a file or directory is specified. For pathconf(), specification is by pathname; for fpathconf(), specification is via a (previously opened) file descriptor.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint