Changeset 23f014a in rtems
- Timestamp:
- 09/11/98 19:21:41 (25 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- bfcf4cb3
- Parents:
- b29378e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/new_chapters/eventlog.t
rb29378e r23f014a 36 36 @item @code{log_facilitydelset} - Manipulate log facility sets 37 37 @item @code{log_facilityismember} - Manipulate log facility sets 38 @item @code{log_facilityisvalid} - Manipulate log facility sets 38 39 @end itemize 39 40 … … 71 72 @subsection Creating and Writing a non-System Log 72 73 73 Discuss creating and writing to a non-system log. 74 75 @example 76 log_create 77 log_write loop 74 The following snips of code create a non-System log file at /temp/. 75 A previously read entry and buffer (log_buf) of size readsize are written 76 into the log. See the dicussion on opening and reading a log for 77 how the entry is created. 78 79 @example 80 #include <evlog.h> 81 : 82 logd_t *outlog = NULL; 83 char *path = "/temp/"; 84 85 log_create( outlog, path ); 86 : 87 log_write_entry( outlog, &entry, log_buf, readsize ); 88 78 89 @end example 79 90 … … 700 711 @item EBADF 701 712 The @code{logdes} argument is not a valid log file descriptor. 713 @item EINVAL 714 The @code{log_recid} argument is not a valid record id. 702 715 703 716 @end table … … 1028 1041 1029 1042 @page 1043 @subsection log_facilityismember - Manipulate log facility sets 1044 1045 @subheading CALLING SEQUENCE: 1046 1047 @ifset is-C 1048 @example 1049 #include <evlog.h> 1050 1051 int log_facilityisvalid( 1052 log_facility_t facilityno 1053 ); 1054 @end example 1055 @end ifset 1056 1057 @ifset is-Ada 1058 @end ifset 1059 1060 @subheading STATUS CODES: 1061 1062 @table @b 1063 @item EFAULT 1064 The @code{set} or @code{member} argument is an invalid pointer. 1065 1066 @item EINVAL 1067 The @code{facilityno} argument is not a valid facility. 1068 1069 @end table 1070 1071 @subheading DESCRIPTION: 1072 1073 The @code{log_facilityisvalid} function tests whether the facility 1074 specified by the value of the argument @code{facilityno} is a valid 1075 facility number which is less than 32. Upon successful completion, 1076 the @code{log_facilityisvalid} function either returns a value of 1077 0 if the specified facility is a valid facility or value of EINVAL 1078 if the specified facility is not a valid facility. 1079 1080 @subheading NOTES: 1081 1082 The @code{_POSIX_LOGGING} feature flag is defined to indicate 1083 this service is available. 1084 1085 Applications shall call either @code{log_facilityemptyset} or 1086 @code{log_facilityfillset} at least once for each object of type 1087 @code{log_facilityset_t} prior to any other use of that object. If 1088 such an object is not initialized in this way, but is nonetheless 1089 supplied as an argument to any of the @code{log_facilityaddset}, 1090 @code{logfacilitydelset}, @code{log_facilityismember} or 1091 @code{log_open} functions, the results are undefined. 1092 1093 @page 1030 1094 @subsection log_create - Creates a log file 1031 1095
Note: See TracChangeset
for help on using the changeset viewer.