GLib 2.8.0 released
Posted on: 08/13/2005 04:16 AM

GLib 2.8.0 is now available for download at:

glib-2.8.0.tar.bz2 md5sum: 803305bfd59cf7421d90983bf63e5227
glib-2.8.0.tar.gz md5sum: a1447fdb1d4c989ec7852d8f935403ad

GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.

GLib 2.8 is a stable release adding an incremental improvement in functionality over GLib 2.6 while maintaining binary and source compatibility. New features include:

Major new APIs
* GMappedFile, a wrapper around mmap()

Miscellaneous new functions
* g_access(), g_chdir(), g_chmod() and g_creat() wrap more of
the Posix file API
* g_build_filenamev() and g_build_pathv() are language-binding
friendly variants of existing functions
* g_file_set_contents() replaces a file atomically
* g_mkdir_with_parents() does the same as mkdir -p
* g_get_host_name() returns the host name
* g_listenv() returns the names of all set environment variables
* g_try_new(), g_try_renew(), g_try_new0() and g_try_malloc0()
are variants of existing allocation functions that can fail
* g_utf8_collate_key_for_filename() returns collation keys
which are more suitable for sorting filenames
* g_win32_locale_filename_from_utf8() converts a filename from UTF-8
to the system codepage

Other changes
* Use atomic operations to make reference counting threadsafe for
GIOChannel, GObject, GParamSpec and GClosure.
* Make GOption more flexible by allowing callbacks which expect
filenames, callbacks with optional arguments and allow to turn
off automatic long option name disambiguation
* Make g_value_transform() handle enum values correctly on ppc64.
Third-party code accessing enumeration values in GValues should
also be changed to access v_long, not v_int, in order to work on
bigendian 64bit machines.

More information about GLib is available at:

The GLib Team:

Hans Breuer, Matthias Clasen, Tim Janik, Tor Lillqvist, Manish Singh, Owen Taylor, and Sebastian Wilhelmi

Printed from Linux Compatible (