Modified Files: glib/ChangeLog glib/glib/giounix.c

Modified Files:
	glib/ChangeLog glib/glib/giounix.c

        * glib/giounix.c: fixed an error in setting close_on_unref
        in g_io_channel_new_file ()
This commit is contained in:
Ron Steinke 2001-08-16 23:50:13 +00:00
parent e7931debd2
commit 2da4b710cd
9 changed files with 49 additions and 9 deletions

View File

@ -1,4 +1,9 @@
2001-08-15 Ron Steinke <rsteinke@w-link.net> 2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref
in g_io_channel_new_file ()
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c glib/glib.def glib/giochannel.h: Added * glib/giochannel.c glib/glib.def glib/giochannel.h: Added
new functions g_io_channel_[set,get]_close_on_unref () new functions g_io_channel_[set,get]_close_on_unref ()

View File

@ -1,4 +1,9 @@
2001-08-15 Ron Steinke <rsteinke@w-link.net> 2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref
in g_io_channel_new_file ()
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c glib/glib.def glib/giochannel.h: Added * glib/giochannel.c glib/glib.def glib/giochannel.h: Added
new functions g_io_channel_[set,get]_close_on_unref () new functions g_io_channel_[set,get]_close_on_unref ()

View File

@ -1,4 +1,9 @@
2001-08-15 Ron Steinke <rsteinke@w-link.net> 2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref
in g_io_channel_new_file ()
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c glib/glib.def glib/giochannel.h: Added * glib/giochannel.c glib/glib.def glib/giochannel.h: Added
new functions g_io_channel_[set,get]_close_on_unref () new functions g_io_channel_[set,get]_close_on_unref ()

View File

@ -1,4 +1,9 @@
2001-08-15 Ron Steinke <rsteinke@w-link.net> 2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref
in g_io_channel_new_file ()
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c glib/glib.def glib/giochannel.h: Added * glib/giochannel.c glib/glib.def glib/giochannel.h: Added
new functions g_io_channel_[set,get]_close_on_unref () new functions g_io_channel_[set,get]_close_on_unref ()

View File

@ -1,4 +1,9 @@
2001-08-15 Ron Steinke <rsteinke@w-link.net> 2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref
in g_io_channel_new_file ()
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c glib/glib.def glib/giochannel.h: Added * glib/giochannel.c glib/glib.def glib/giochannel.h: Added
new functions g_io_channel_[set,get]_close_on_unref () new functions g_io_channel_[set,get]_close_on_unref ()

View File

@ -1,4 +1,9 @@
2001-08-15 Ron Steinke <rsteinke@w-link.net> 2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref
in g_io_channel_new_file ()
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c glib/glib.def glib/giochannel.h: Added * glib/giochannel.c glib/glib.def glib/giochannel.h: Added
new functions g_io_channel_[set,get]_close_on_unref () new functions g_io_channel_[set,get]_close_on_unref ()

View File

@ -1,4 +1,9 @@
2001-08-15 Ron Steinke <rsteinke@w-link.net> 2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref
in g_io_channel_new_file ()
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c glib/glib.def glib/giochannel.h: Added * glib/giochannel.c glib/glib.def glib/giochannel.h: Added
new functions g_io_channel_[set,get]_close_on_unref () new functions g_io_channel_[set,get]_close_on_unref ()

View File

@ -1,4 +1,9 @@
2001-08-15 Ron Steinke <rsteinke@w-link.net> 2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giounix.c: fixed an error in setting close_on_unref
in g_io_channel_new_file ()
2001-08-16 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c glib/glib.def glib/giochannel.h: Added * glib/giochannel.c glib/glib.def glib/giochannel.h: Added
new functions g_io_channel_[set,get]_close_on_unref () new functions g_io_channel_[set,get]_close_on_unref ()

View File

@ -514,7 +514,6 @@ g_io_channel_new_file (const gchar *filename,
channel = (GIOChannel *) g_new (GIOUnixChannel, 1); channel = (GIOChannel *) g_new (GIOUnixChannel, 1);
channel->close_on_unref = TRUE;
channel->is_seekable = S_ISREG (buffer.st_mode) || S_ISCHR (buffer.st_mode) channel->is_seekable = S_ISREG (buffer.st_mode) || S_ISCHR (buffer.st_mode)
|| S_ISBLK (buffer.st_mode); || S_ISBLK (buffer.st_mode);
@ -540,6 +539,7 @@ g_io_channel_new_file (const gchar *filename,
} }
g_io_channel_init (channel); g_io_channel_init (channel);
channel->close_on_unref = TRUE; /* must be after g_io_channel_init () */
channel->funcs = &unix_channel_funcs; channel->funcs = &unix_channel_funcs;
((GIOUnixChannel *) channel)->fd = fid; ((GIOUnixChannel *) channel)->fd = fid;