Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351589 - Need an extended set_errno() API to be able to use a formatted error messages.
Summary: Need an extended set_errno() API to be able to use a formatted error messages.
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Agent (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 0.4.0   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-08 11:06 EDT by Didier Brachet CLA
Modified: 2013-06-05 05:54 EDT (History)
2 users (show)

See Also:


Attachments
Patch for enhancment request (2.02 KB, patch)
2011-07-08 11:13 EDT, Didier Brachet CLA
eugene: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Didier Brachet CLA 2011-07-08 11:06:29 EDT
Build Identifier: 

In TCF agent, there is already a set_errno() API that can associate an error message with an error number; however this error message is a fixed string. in some cases it would be possible to use a more complex string with variable arguments. This can of course be done by first calling sprintf(), storing a result in a buffer and calling set_errno() with this buffer but it would be great if a generic API would do this.

Reproducible: Always
Comment 1 Didier Brachet CLA 2011-07-08 11:13:24 EDT
Created attachment 199343 [details]
Patch for enhancment request
Comment 2 Eugene Tarassov CLA 2011-07-08 12:11:08 EDT
I have committed the patch - with minor changes to get rid of compiler warnings.
Thanks!