View Issue Details

IDProjectCategoryView StatusLast Update
00012441003.1(2016/18)/Issue7+TC2System Interfacespublic2024-06-11 09:08
Reporterwahern Assigned To 
PrioritynormalSeverityCommentTypeClarification Requested
Status ClosedResolutionAccepted As Marked 
NameWilliam Ahern
Organization
User Reference
Sectionopenlog
Page Number695
Line Number23775-23796
Interp StatusApproved
Final Accepted Text0001244:0004454
Summary0001244: ident string lifetime not specified
DescriptionIt's not stated that the ident string value may be used directly and therefore must remain valid after the call to openlog (until the next openlog?). Most implementations I've checked seem to use it directly--glibc 2.29, OpenBSD 6.4, and (per man page) Solaris 11.4. At least one makes a copy--musl libc 1.1.21 (silently truncating).

This came to my attention when writing bindings for a scripting language.
Desired ActionAmend to explicitly state that the lifetime of the ident string object must persist for the lifetime of the process or until (immediately after?) the next call to openlog.
Tagstc3-2008

Activities

geoffclare

2019-06-27 15:44

manager   bugnote:0004454

Interpretation response
------------------------
The standard is unclear on this issue, and no conformance distinction can be made between alternative implementations based on this. This is being referred to the sponsor.

Rationale:
-------------
None.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------

On page 695 line 23775 section closelog(), change:
The ident argument is a string that is prepended to every message.
to:
The ident argument is a pointer to a null-terminated identifier that shall be prepended (without the null terminator) to every message. The application shall ensure that the string pointed to by ident remains valid during the syslog() calls that will prepend this identifier; however, it is unspecified whether changes made to the string will change the identifier prepended by later syslog() calls.

agadmin

2019-10-07 15:16

administrator   bugnote:0004603

Interpretation proposed: 7 October 2019

agadmin

2019-11-11 12:20

administrator   bugnote:0004648

Interpretation Approved: 11 Nov 2019

Issue History

Date Modified Username Field Change
2019-04-03 22:02 wahern New Issue
2019-04-03 22:02 wahern Name => William Ahern
2019-04-03 22:02 wahern Section => openlog
2019-04-03 22:02 wahern Page Number => (page or range of pages)
2019-04-03 22:02 wahern Line Number => (Line or range of lines)
2019-06-24 16:18 Don Cragun Page Number (page or range of pages) => 695
2019-06-24 16:18 Don Cragun Line Number (Line or range of lines) => 23775-23796
2019-06-24 16:18 Don Cragun Interp Status => ---
2019-06-27 15:44 geoffclare Note Added: 0004454
2019-06-27 15:45 geoffclare Interp Status --- => Pending
2019-06-27 15:45 geoffclare Final Accepted Text => 0001244:0004454
2019-06-27 15:45 geoffclare Status New => Interpretation Required
2019-06-27 15:45 geoffclare Resolution Open => Accepted As Marked
2019-06-27 15:46 geoffclare Tag Attached: tc3-2008
2019-10-07 15:16 agadmin Interp Status Pending => Proposed
2019-10-07 15:16 agadmin Note Added: 0004603
2019-11-11 12:20 agadmin Interp Status Proposed => Approved
2019-11-11 12:20 agadmin Note Added: 0004648
2019-12-04 11:56 geoffclare Status Interpretation Required => Applied
2024-06-11 09:08 agadmin Status Applied => Closed