GMappedFile: Add API to create from an existing file descriptor
authorPhilip Van Hoof <philip@codeminded.be>
Wed, 21 Sep 2011 17:59:03 +0000 (19:59 +0200)
committerPhilip Van Hoof <philip@codeminded.be>
Wed, 21 Sep 2011 22:01:56 +0000 (00:01 +0200)
commitca154c399b879ad17804af5d9a81e607e049861e
tree5c531a7eab294aa1570daad3edc3faaaa6113621
parent24652730a9faaedb19b9e90024077eb7f75a6907
GMappedFile: Add API to create from an existing file descriptor

At Tracker we want to mmap files using O_NOATIME. With GMappedFile this is at
the moment impossible. For that reason I added the constructor new_from_fd to
the GMappedFile type.

https://bugzilla.gnome.org/show_bug.cgi?id=659754
glib/glib.symbols
glib/gmappedfile.c
glib/gmappedfile.h
glib/tests/mappedfile.c