Changeset 82db2d3a in rtems
- Timestamp:
- 08/28/98 19:59:44 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 90c60f7
- Parents:
- 566669f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/new_chapters/eventlog.t
r566669f5 r82db2d3a 24 24 @item @code{log_write_entry} - Write entry to any log file 25 25 @item @code{log_open} - Open a log file 26 @item @code{log_read} - Read from the system Log26 @item @code{log_read} - Read from a log file 27 27 @item @code{log_notify} - Notify Process of writes to the system log 28 28 @item @code{log_close} - Close log descriptor … … 463 463 464 464 @page 465 @subsection log_read - Read from the system Log465 @subsection log_read - Read from a log file 466 466 467 467 @subheading CALLING SEQUENCE: … … 487 487 488 488 @table @b 489 @item E2BIG 490 This error indicates an inconsistency in the implementation. 491 Report this as a bug. 492 489 493 @item EBADF 490 The logdes argument is not a valid log file descriptor. 494 The @code{logdes} argument is not a valid log file descriptor. 495 496 @item EFAULT 497 The @code{entry} argument is not a valid pointer to a log entry structure. 498 499 @item EFAULT 500 The @code{log_sizeread} argument is not a valid pointer to a size_t. 491 501 492 502 @item EBUSY 493 No data available. The open log file descriptor references 494 the current system log. and there are no unread event records 495 remaining. 503 No data available. There are no unread event records remaining 504 in this log file. 496 505 497 506 @item EINTR … … 501 510 An I/O error occurred in reading from the event log. 502 511 503 @end table 504 505 @subheading DESCRIPTION: 506 507 The @code{log_read} function shall attempt to read the @code{log_entry} 508 structure and @code{log_len} bytes of data from the next event record 509 of the log file associated with the open log file descriptor @code{logdes}, 510 placing the @code{log_entry} structure into the buffer pointed to by 511 @code{entry}, and the data into the buffer pointed to by @code{log_buf}. 512 The log record ID of the returned event record shall be stored in the 512 @item EINVAL 513 The matching event record has data associated with it and 514 @code{log_buf} was not a valid pointer. 515 516 @item EINVAL 517 The matching event record has data associated with it which is 518 longer than @code{log_len}. 519 520 @end table 521 522 @subheading DESCRIPTION: 523 524 The @code{log_read} function reads the @code{log_entry} 525 structure and up to @code{log_len} bytes of data from the next 526 event record of the log file associated with the open log file 527 descriptor @code{logdes}. The event record read is placed 528 into the @code{log_entry} structure pointed to by 529 @code{entry} and any data into the buffer pointed to by @code{log_buf}. 530 The log record ID of the returned event record is be stored in the 513 531 @code{log_recid} member of the @code{log_entry} structure for the event 514 532 record. 515 533 516 534 If the query attribute of the open log file description associated with 517 the @code{logdes} is set, the event record read shall match that query. 518 If the @code{entry} argument is not NULL it will point to a @code{log_entry} 519 structure which shall be filled with the creation information for this log 520 entry. If the argument @code{log_buf} is not NULL the data written with the 521 log entry will be placed in the buffer. The size of the buffer is specified 522 by the argument @code{log_len}. 523 524 If the @code{log_read} is successful the call shall store the actual length 535 the @code{logdes} is set, the event record read will match that query. 536 537 If the @code{log_read} is successful the call stores the actual length 525 538 of the data associated with the event record into the location specified by 526 @code{log_sizeread}. This number may be smaller or greater than539 @code{log_sizeread}. This number will be less than or equal to 527 540 @code{log_len}. 528 541 … … 531 544 The @code{_POSIX_LOGGING} feature flag is defined to indicate 532 545 this service is available. 546 547 When @code{EINVAL} is returned, then no data is returned although the 548 event record is returned. This is an extension to the POSIX specification. 549 550 The POSIX specification specifically allows @code{log_read} to write 551 greater than @code{log_len} bytes into @code{log_buf}. This is highly 552 undesirable and this implementation will NOT do this. 533 553 534 554 @page
Note: See TracChangeset
for help on using the changeset viewer.