GNOME Bugzilla – Bug 97876
A console: method for accessing standard streams
Last modified: 2004-12-22 21:47:04 UTC
This is a bug for a method I've written that gives transparent access to standard streams (stdin, stdout, stderr). It is heavily based on the file: method. Many of the functions offered by the file: method are not supported. Some (tell, seek, truncate) are not supported to keep the method behaviour consistent with POSIX behaviour; some are not supported because they aren't useful (i.e. the directory handling functions), while some (like FAM support) may be implemented in future. The three streams may be accessed as console:///stdin console:///stdout console:///stderr They are seen as files in the root of an unspecified host, and thus their URIs have 3 '/' chars. In case an host is specified, its name is ignored. Attached are the console-method.c file and two patches for modules/default-modules.conf and modules/Makefile.in. Patches were made against the stock gnome-vfs-2.0.2.tar.gz release.
Created attachment 12099 [details] The source code of the method
Created attachment 12100 [details] [review] patch to default-modules.conf
Created attachment 12101 [details] [review] patch to Makefile.in
I committed your patch to cvs head. I made a few changes (patch Makefile.am instead of Makefile.in, and removed all the non implemented methods from the file, gnome-vfs should handle that correctly) Can you test to see if I broke something ?
This patch should be reverted. Gnome-vfs is not a stream library.
See also bug #99796.
Closing since bug #99796 which provides the same functionality is closed