Advanced Programming in the UNIX® Environment
ptg10805159 Section 2.5 Limits 47 #include "apue.h" #include <errno.h> #include <limits.h> static void pr_sysconf(ch ...
ptg10805159 48 UNIX Standardization and Implementations Chapter 2 err_sys("sysconf error"); }else { fputs(" (no limit)\n", stdou ...
ptg10805159 Section 2.5 Limits 49 Solaris 10 FreeBSD Linux Mac OS X UFS PCFS 8.0 3.2.0 10.6.8 file system file system Limit ARG_ ...
ptg10805159 50 UNIX Standardization and Implementations Chapter 2 POSIX.1 tries to help with thePATH_MAXvalue, but if this value ...
ptg10805159 Section 2.5 Limits 51 errno = 0; if ((pathmax = pathconf("/", _PC_PATH_MAX)) < 0) { if (errno == 0) pathmax = PAT ...
ptg10805159 52 UNIX Standardization and Implementations Chapter 2 #include <unistd.h> for (i = 0; i < sysconf(_SC_OPEN_ ...
ptg10805159 Section 2.6 Options 53 For example, we can use theulimitcommand built into the Bourne-again shell to change the maxi ...
ptg10805159 54 UNIX Standardization and Implementations Chapter 2 For each option, we have three possibilities for a platform’s ...
ptg10805159 Section 2.6 Options 55 • _POSIX_READER_WRITER_LOCKS • _POSIX_REALTIME_SIGNALS • _POSIX_SEMAPHORES • _POSIX_SPIN_LOCK ...
ptg10805159 56 UNIX Standardization and Implementations Chapter 2 Name of option Indicates ... nameargument _POSIX_ASYNCHRONOUS_ ...
ptg10805159 Section 2.7 FeatureTest Macros 57 Figure2.20 shows several configuration options and their corresponding values on t ...
ptg10805159 58 UNIX Standardization and Implementations Chapter 2 This causes the featuretest macro to be defined beforeany head ...
ptg10805159 Section 2.9 Differences Between Standards 59 Type Description clock_t counter of clock ticks (process time) (Section ...
ptg10805159 60 UNIX Standardization and Implementations Chapter 2 2.10 Summary Much has happened with the standardization of the ...
ptg10805159 3 File I/O 3.1 Introduction We’ll start our discussion of the UNIX System by describing the functions available for ...
ptg10805159 62 File I/O Chapter 3 By convention, UNIX System shells associate file descriptor 0 with the standard input of a pro ...
ptg10805159 Section 3.3 openandopenatFunctions 63 The purpose of theO_SEARCHconstant is to evaluate search permissions at the ti ...
ptg10805159 64 File I/O Chapter 3 O_TTY_INIT When opening a terminal device that is not already open, set the nonstandardtermios ...
ptg10805159 Section 3.3 openandopenatFunctions 65 Thepathparameter specifies a relative pathname and thefdparameter has the spe ...
ptg10805159 66 File I/O Chapter 3 3.4 creatFunction Anew file can also be created by calling thecreatfunction. #include <fcnt ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf