After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 97876 - A console: method for accessing standard streams
A console: method for accessing standard streams
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Module: (other)
2.0.x
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2002-11-06 21:10 UTC by Giovanni Corriga
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
The source code of the method (13.30 KB, text/plain)
2002-11-06 21:11 UTC, Giovanni Corriga
  Details
patch to default-modules.conf (295 bytes, patch)
2002-11-06 21:12 UTC, Giovanni Corriga
none Details | Review
patch to Makefile.in (5.04 KB, patch)
2002-11-06 21:13 UTC, Giovanni Corriga
none Details | Review

Description Giovanni Corriga 2002-11-06 21:10:19 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.
Comment 1 Giovanni Corriga 2002-11-06 21:11:42 UTC
Created attachment 12099 [details]
The source code of the method
Comment 2 Giovanni Corriga 2002-11-06 21:12:23 UTC
Created attachment 12100 [details] [review]
patch to default-modules.conf
Comment 3 Giovanni Corriga 2002-11-06 21:13:00 UTC
Created attachment 12101 [details] [review]
patch to Makefile.in
Comment 4 Christophe Fergeau 2002-11-08 13:37:05 UTC
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 ?
Comment 5 Alex Graveley 2002-11-15 20:09:48 UTC
This patch should be reverted.  Gnome-vfs is not a stream library.
Comment 6 Giovanni Corriga 2002-11-28 08:40:17 UTC
See also bug #99796.
Comment 7 Christophe Fergeau 2003-01-08 12:23:55 UTC
Closing since bug #99796 which provides the same functionality is closed