[832e33c] | 1 | @c |
---|
| 2 | @c COPYRIGHT (c) 1988-1998. |
---|
| 3 | @c On-Line Applications Research Corporation (OAR). |
---|
| 4 | @c All rights reserved. |
---|
| 5 | @c |
---|
| 6 | @c $Id$ |
---|
| 7 | @c |
---|
| 8 | |
---|
| 9 | @chapter Process Dump Control Manager |
---|
| 10 | |
---|
| 11 | @section Introduction |
---|
| 12 | |
---|
[d1a859c] | 13 | The process dump control manager provides a portable |
---|
| 14 | interface for changing the path to which a process dump |
---|
| 15 | is written. The capabilities in this manager were defined in |
---|
| 16 | the POSIX 1003.1h/D3 proposed standard titled @b{Services for Reliable, |
---|
| 17 | Available, and Serviceable Systems}. |
---|
[832e33c] | 18 | |
---|
| 19 | The directives provided by the process dump control manager are: |
---|
| 20 | |
---|
| 21 | @itemize @bullet |
---|
[8c82d8d1] | 22 | @item @code{dump_setpath} - Dump File Control |
---|
[832e33c] | 23 | @end itemize |
---|
| 24 | |
---|
| 25 | @section Background |
---|
| 26 | |
---|
[571a915] | 27 | There is no background. |
---|
| 28 | |
---|
[832e33c] | 29 | @section Operations |
---|
| 30 | |
---|
[571a915] | 31 | There is no discussion of the operations. |
---|
| 32 | |
---|
[832e33c] | 33 | @section Directives |
---|
| 34 | |
---|
| 35 | This section details the process dump control manager's directives. |
---|
| 36 | A subsection is dedicated to each of this manager's directives |
---|
| 37 | and describes the calling sequence, related constants, usage, |
---|
| 38 | and status codes. |
---|
| 39 | |
---|
| 40 | @page |
---|
[8c82d8d1] | 41 | @subsection dump_setpath - Dump File Control |
---|
[832e33c] | 42 | |
---|
| 43 | @subheading CALLING SEQUENCE: |
---|
| 44 | |
---|
| 45 | @ifset is-C |
---|
| 46 | @example |
---|
| 47 | int dump_setpath( |
---|
[8c82d8d1] | 48 | const char *path |
---|
[832e33c] | 49 | ); |
---|
| 50 | @end example |
---|
| 51 | @end ifset |
---|
| 52 | |
---|
| 53 | @ifset is-Ada |
---|
| 54 | @end ifset |
---|
| 55 | |
---|
| 56 | @subheading STATUS CODES: |
---|
| 57 | |
---|
[16bed8a] | 58 | @table @b |
---|
[8c82d8d1] | 59 | @item EACESS |
---|
| 60 | Search permission is denied for a component of the path prefix, |
---|
| 61 | or write permission is denied on the directory containing the |
---|
| 62 | file. |
---|
[d1a859c] | 63 | |
---|
[8c82d8d1] | 64 | @item ENAMETOOLONG |
---|
[d5ef5bd1] | 65 | The length of the argument exceeds @code{PATH_MAX} or a pathname |
---|
| 66 | component is longer than @code{NAME_MAX} while @code{_POSIX_NO_TRUNC} |
---|
[8c82d8d1] | 67 | is in effect. |
---|
[d1a859c] | 68 | |
---|
[8c82d8d1] | 69 | @item ENOENT |
---|
| 70 | The path argument points to an empty string. |
---|
[d1a859c] | 71 | |
---|
[8c82d8d1] | 72 | @item ENOTDIR |
---|
| 73 | A component of the path prefix is not a directory. |
---|
[d1a859c] | 74 | |
---|
[8c82d8d1] | 75 | @item EROFS |
---|
| 76 | The directory entry specified resides on a read-only file system. |
---|
[16bed8a] | 77 | |
---|
| 78 | @end table |
---|
| 79 | |
---|
[832e33c] | 80 | @subheading DESCRIPTION: |
---|
| 81 | |
---|
[d1a859c] | 82 | The @code{dump_setpath} function defines the pathname where process |
---|
| 83 | dumps are written. The pathname pointed to by @code{path} shall |
---|
| 84 | define where a process dump file will be written if the calling |
---|
| 85 | process terminates with a dump file. The @code{path} argument |
---|
| 86 | shall not name a directory. |
---|
[c40ad43] | 87 | |
---|
[d1a859c] | 88 | If the @code{path} argument is NULL, the system shall not write a |
---|
| 89 | process dump file if the calling process terminates with a dump |
---|
| 90 | file. If the @code{dump_setpath} function fails, the pathname for |
---|
| 91 | writing process dumps shall not change. |
---|
[8c82d8d1] | 92 | |
---|
[832e33c] | 93 | @subheading NOTES: |
---|
| 94 | |
---|
[d1a859c] | 95 | The @code{_POSIX_DUMP} feature flag is defined to indicate |
---|
| 96 | this service is available. |
---|