Bug 232157 - [tcf][api] FileSystem open flags
Summary: [tcf][api] FileSystem open flags
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 0.2   Edit
Assignee: Eugene Tarassov CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2008-05-14 15:02 EDT by Eugene Tarassov CLA
Modified: 2013-06-05 08:01 EDT (History)
2 users (show)

See Also:
eugene: documentation+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Tarassov CLA 2008-05-14 15:02:34 EDT
Add TCF_ prefix to TCF File System Service O_ flags to prevent a potential conflict with libc definitions.

Ed Swarthout wrote:
"The open flags for FileSystem (as shown in "TCF Service - File
System.html") use the same names (i.e. O_CREAT) that are defined in libc's fcntl.h.  

Unfortunately, I hadn't noticed that they are defined differently and I used the fcntl.h values in some c-client code I wrote.
It didn't work.

Looking at the source, I see that agent/filesystem.c prefix's the open flag definitions with TCF_ so they don't conflict.

Wouldn't it be good to add this same prefix in the java interface, IFileSystem.java?
That way the language independent API can show a single name for the open flags?"
Comment 1 Eugene Tarassov CLA 2008-06-26 15:56:02 EDT
Fixed: added TCF_ prefix in docs and Java.
Comment 2 Doug Schaefer CLA 2011-05-17 10:49:05 EDT
Moving bugs to new home for IP log.
Comment 3 Martin Oberhuber CLA 2013-06-05 06:26:31 EDT
Bulk change: Marking all bugs from the TM era (until June 2011) target 0.3