Re: Tclvfs: why no r+ file open mode?



It's a bug. See
http://sourceforge.net/tracker/index.php?func=detail&aid=990921&group_id=32692&atid=406308


Dave Bodenstab wrote:
> To learn tclvfs, I am writing a memchan-based memory-only vfs.
> I noticed that when I do "open filename r+" then my fs proc gets
> called with a mode of "a+".
>
> A rather quick look thru the Tcl 8.4.11 source and vfs.c shows
> that while Tcl correctly translates the mode string to posix
> open flags (O_RDONLY, etc), vfs.c does not do the correct
> reverse translation. Why? ...or should I ask this on another list?

.



Relevant Pages

  • Re: Tclvfs: why no r+ file open mode?
    ... I noticed that when I do "open filename r+" then my fs proc gets ... A rather quick look thru the Tcl 8.4.11 source and vfs.c shows ... that while Tcl correctly translates the mode string to posix ...
    (comp.lang.tcl)
  • Tclvfs: why no r+ file open mode?
    ... I noticed that when I do "open filename r+" then my fs proc gets ... A rather quick look thru the Tcl 8.4.11 source and vfs.c shows ... that while Tcl correctly translates the mode string to posix ...
    (comp.lang.tcl)
  • Re: Availability of OS X-specific features
    ... the dock menu, but both are indeed possible to do via carbon APIs, which you can call from Tcl via Ffidl, or by writing a small critcl extension: http://developer.apple.com/documentation/Carbon/Conceptual/customizing_docktile/ ... dock menu without writing code by adding a key to Info.plist and adding a .nib file to your .app bundle. ... You'll still have to install a carbon event handler to react to the new menu events, an example on how to do this with Ffidl is at the bottom of http://wiki.tcl.tk/Ffidl ... subject of Tcl on Macintoshes should be ghetto-ized into a sourceforge ...
    (comp.lang.tcl)
  • Re: Is there a documentation about source code of Tcl?
    ... open source projects and read that _sometimes_ projects have documents ... contribute back to Tcl. ... technical writer might consider writing. ... The brain works a bit like a cache, if you can keep the higher level ...
    (comp.lang.tcl)
  • Re: C programming for TCL geeks.
    ... Note that make/makefile/automake is not C programming, ... Writing C code, particular after having been exposed to C coding ... Writing C code that interacts with Tcl is learning ... I recommend that you first learn to program Tcl at the script level. ...
    (comp.lang.tcl)