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 57689 - Unimplemented iochannel functions under win32
Unimplemented iochannel functions under win32
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: win32
1.3.x
Other All
: Normal major
: ---
Assigned To: Tor Lillqvist
Tor Lillqvist
Depends on:
Blocks:
 
 
Reported: 2001-07-17 21:53 UTC by Ron Steinke
Modified: 2011-02-18 15:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample patch mentioned in discussion (1.73 KB, patch)
2001-08-16 23:29 UTC, Ron Steinke
none Details | Review

Description Ron Steinke 2001-07-17 21:53:12 UTC
The functions g_io_channel_new_file() and g_io_channel_[set,get]_flags()
are not implemented for win32.
Comment 1 Hans Breuer 2001-08-04 13:26:27 UTC
They are implememented now as far as I could get. See Bug #57690 
Comment 2 Ron Steinke 2001-08-16 23:28:08 UTC
Looking at the code for gnet (http://www.gnetlibrary.org),
it appears that windows uses a function called
ioctlsocket() to set sockets nonblocking. This
is probably the function we need to use in the
socket version of set/get flags. Try and dig around
a little and see if you can find a file version of
this function, too.

Also, a few comments about the current implementation.
The archtecture dependent code doesn't need to set
the IS_*ABLE flags in its return value, as this
is taken care of in generic code in giochannel.c.
It does, however, need to recheck the values of
is_readable and is_writeable whenever get_flags
is called. If set_flags is unimplemented, you need
to give a warning, not just return an error, as
GError is intended to be used only for run time errors.
I'm attaching a sample patch to give you some idea of
what I'm talking about.
Comment 3 Ron Steinke 2001-08-16 23:29:12 UTC
Created attachment 910 [details] [review]
sample patch mentioned in discussion
Comment 4 Owen Taylor 2002-03-07 19:27:06 UTC
Moving open 2.0.0 Win32 bugs to 2.0.1 milestone.
Comment 5 Owen Taylor 2002-03-25 22:24:36 UTC
Moving 2.0.1 Win32 bugs to 2.0.2 milestone.
Comment 6 Tor Lillqvist 2002-12-17 04:57:55 UTC
Fix applied to HEAD. Quite extensive changes. (Unfortunately, missed 
the 2.1.5 release by a little.) Reopen bug if there still are 
problems.