Advanced Programming in the UNIX® Environment
ptg10805159 Appendix A Function Prototypes 887 int stat(const char *restrictpath,struct stat *restrictbuf); <sys/stat.h> p ...
ptg10805159 888 Function Prototypes Appendix A long sysconf(intname); <unistd.h> p. 42 name:_SC_ARG_MAX, _SC_ASYNCHRONOUS_ ...
ptg10805159 Appendix A Function Prototypes 889 int tcgetattr(intfd,struct termios *termptr); <termios.h> p. 683 Returns: 0 ...
ptg10805159 890 Function Prototypes Appendix A int truncate(const char *path,off_tlength); <unistd.h> p. 112 Returns: 0 if ...
ptg10805159 Appendix A Function Prototypes 891 int vdprintf(intfd,const char *restrictformat,va_listarg); <stdarg.h> p. 16 ...
ptg10805159 892 Function Prototypes Appendix A int vsscanf(const char *restrictbuf,const char *restrictformat, va_listarg); < ...
ptg10805159 Appendix A Function Prototypes 893 ssize_t write(intfd,const void *buf,size_tnbytes); <unistd.h> p. 72 Returns ...
ptg10805159 This page intentionally left blank ...
ptg10805159 Appendix B. Miscellaneous Source Code B.1Our Header File Most programs in the text include the headerapue.h,shown in ...
ptg10805159 896 Miscellaneous Source Code Appendix B #if defined(MACOS) || !defined(TIOCGWINSZ) #include <sys/ioctl.h> #en ...
ptg10805159 Section B.1 Our Header File 897 int send_fd(int, int); /* Figure 17.13 */ int send_err(int, int, const char *); /* F ...
ptg10805159 898 Miscellaneous Source Code Appendix B void log_open(const char *, int, int); void log_quit(const char *, ...) __a ...
ptg10805159 Section B.2 StandardError Routines 899 FigureB.2 summarizes the differences between the various error functions. Fun ...
ptg10805159 900 Miscellaneous Source Code Appendix B va_end(ap); exit(1); } /* *Nonfatal error unrelated to a system call. *Erro ...
ptg10805159 Section B.2 StandardError Routines 901 *Print a message and return. */ void err_msg(const char *fmt, ...) { va_list ...
ptg10805159 902 Miscellaneous Source Code Appendix B /* *Error routines for programs that can run as a daemon. */ #include "apue ...
ptg10805159 Section B.2 StandardError Routines 903 va_end(ap); exit(2); } /* *Nonfatal error unrelated to a system call. *Print ...
ptg10805159 904 Miscellaneous Source Code Appendix B static void log_doit(int errnoflag, int error, int priority, const char *fm ...
ptg10805159 Appendix C. Solutions to Selected Exercises Chapter 1 1.1 For this exercise, we use the following two arguments for ...
ptg10805159 906 Solutions to Selected Exercises Appendix C argument tostrerroris an integer,and since C passes all arguments by ...
«
42
43
44
45
46
47
48
49
50
51
»
Free download pdf