glib2 0.90.8-x86-mingw32 → 0.90.9-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +46 -0
- data/Rakefile +1 -0
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbglib_iochannel.c +15 -6
- data/ext/glib2/rbgobj_signal.c +1 -1
- data/ext/glib2/rbgobject.h +1 -1
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/gnome2-raketask.rb +3 -2
- data/lib/mkmf-gnome2.rb +47 -23
- data/test/glib-test-init.rb +1 -3
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +2 -2
- data/vendor/local/bin/glib-mkenums +3 -2
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/include/glib-2.0/gio/gaction.h +91 -0
- data/vendor/local/include/glib-2.0/gio/gactiongroup.h +151 -0
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gapplication.h +165 -0
- data/vendor/local/include/glib-2.0/gio/gapplicationcommandline.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +2 -0
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +15 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gio.h +14 -0
- data/vendor/local/include/glib-2.0/gio/gioenums.h +158 -2
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +12 -0
- data/vendor/local/include/glib-2.0/gio/giomodule.h +1 -1
- data/vendor/local/include/glib-2.0/gio/giostream.h +11 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +48 -0
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gpollableinputstream.h +101 -0
- data/vendor/local/include/glib-2.0/gio/gpollableoutputstream.h +98 -0
- data/vendor/local/include/glib-2.0/gio/gsettings.h +9 -2
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +6 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleaction.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleactiongroup.h +87 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +7 -0
- data/vendor/local/include/glib-2.0/gio/gtcpwrapperconnection.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gtlsbackend.h +92 -0
- data/vendor/local/include/glib-2.0/gio/gtlscertificate.h +83 -0
- data/vendor/local/include/glib-2.0/gio/gtlsclientconnection.h +72 -0
- data/vendor/local/include/glib-2.0/gio/gtlsconnection.h +136 -0
- data/vendor/local/include/glib-2.0/gio/gtlsserverconnection.h +61 -0
- data/vendor/local/include/glib-2.0/glib/glist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +27 -6
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +80 -5
- data/vendor/local/include/glib-2.0/glib/grand.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gsequence.h +8 -0
- data/vendor/local/include/glib-2.0/glib/gslist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +37 -0
- data/vendor/local/include/glib-2.0/glib/gtypes.h +1 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +22 -16
- data/vendor/local/include/glib-2.0/glib/gutils.h +5 -0
- data/vendor/local/include/glib-2.0/glib/gvariant.h +35 -11
- data/vendor/local/include/glib-2.0/gobject/gobject.h +15 -0
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +5 -0
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +4 -2
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +1 -1
- data/vendor/local/lib/gio-2.0.def +142 -0
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +21 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +3 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
- data/vendor/local/manifest/{glib-dev_2.26.1-1_win32.mft → glib-dev_2.28.1-1_win32.mft} +55 -19
- data/vendor/local/manifest/{glib_2.26.1-1_win32.mft → glib_2.28.1-1_win32.mft} +3 -2
- data/vendor/local/share/aclocal/glib-2.0.m4 +4 -4
- data/vendor/local/share/doc/{glib-2.26.1 → glib-2.28.1}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.26.1 → glib-dev-2.28.1}/COPYING +0 -0
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +72 -21
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +21 -8
- data/vendor/local/share/gtk-doc/html/gio/GAction.html +469 -0
- data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +754 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +296 -249
- data/vendor/local/share/gtk-doc/html/gio/GApplication.html +1458 -0
- data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +815 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +61 -97
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +31 -38
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +52 -68
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +38 -50
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +120 -77
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +26 -34
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +49 -51
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +26 -35
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +415 -650
- data/vendor/local/share/gtk-doc/html/gio/{gio-GDBusError.html → GDBusError.html} +118 -147
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +204 -347
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +66 -111
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +210 -309
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +68 -87
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +190 -232
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +89 -118
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +196 -270
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +56 -24
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +1090 -1443
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +13 -16
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +66 -86
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +31 -45
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +19 -21
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +466 -602
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +32 -40
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +60 -59
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +32 -47
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +37 -45
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +32 -38
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +184 -52
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +45 -54
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +96 -125
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +21 -25
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +49 -71
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +102 -134
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +43 -54
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +21 -24
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +34 -41
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +223 -294
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +127 -153
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +35 -46
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +37 -46
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +138 -174
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +46 -68
- data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +398 -0
- data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +340 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +89 -32
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +42 -56
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +59 -34
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +82 -95
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +58 -72
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +597 -357
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +125 -75
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +339 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleActionGroup.html +200 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +232 -167
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +15 -16
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +291 -406
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +39 -45
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +301 -223
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +41 -44
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +41 -49
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +22 -32
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +88 -107
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +26 -32
- data/vendor/local/share/gtk-doc/html/gio/{gio-GSrvTarget.html → GSrvTarget.html} +74 -77
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +21 -22
- data/vendor/local/share/gtk-doc/html/gio/GTcpWrapperConnection.html +156 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +29 -35
- data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +260 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +396 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +428 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +869 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +158 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +32 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +28 -34
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +44 -54
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +36 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +59 -67
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +49 -57
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +142 -187
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +99 -132
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +33 -32
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +22 -24
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +43 -13
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +10 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +36 -28
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-28.html +744 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +915 -107
- data/vendor/local/share/gtk-doc/html/gio/application.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/async.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +23 -24
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +54 -36
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +188 -41
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +19 -108
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +16 -179
- data/vendor/local/share/gtk-doc/html/gio/ch28.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch26s02.html → ch28s02.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s03.html → ch28s03.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s04.html → ch28s04.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s05.html → ch28s05.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s06.html → ch28s06.html} +17 -15
- data/vendor/local/share/gtk-doc/html/gio/{ch26s07.html → ch28s07.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/ch29.html +70 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +130 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +202 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch27s04.html → ch29s04.html} +11 -11
- data/vendor/local/share/gtk-doc/html/gio/{ch27s05.html → ch29s05.html} +12 -12
- data/vendor/local/share/gtk-doc/html/gio/{ch27s06.html → ch29s06.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +27 -14
- data/vendor/local/share/gtk-doc/html/gio/extending.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +141 -248
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +28 -40
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +29 -112
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +45 -57
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +58 -68
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +16 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +18 -20
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +82 -76
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +34 -28
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +25 -33
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +87 -113
- data/vendor/local/share/gtk-doc/html/gio/gio-TLS-Overview.html +287 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +119 -151
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +62 -95
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +66 -6
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +312 -91
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +386 -133
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +162 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +7 -4
- data/vendor/local/share/gtk-doc/html/gio/icons.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/index.html +88 -36
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +506 -95
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/networking.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +68 -17
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/settings.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +9 -3
- data/vendor/local/share/gtk-doc/html/gio/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gio/tls.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/tools.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/types.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/utils.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +8 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +25 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-28.html +112 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +15 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +9 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +201 -89
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +144 -210
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +97 -136
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +40 -58
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +99 -128
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +104 -155
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +42 -71
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +40 -43
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +224 -314
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +104 -142
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +193 -308
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +51 -76
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +170 -307
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +154 -198
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +45 -67
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +60 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +390 -428
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +265 -333
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +306 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +60 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +122 -152
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +241 -571
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +233 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +310 -34
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +739 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +136 -143
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +22 -29
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +210 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +294 -355
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +27 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +102 -95
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +402 -486
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +308 -442
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +75 -116
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +229 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +36 -36
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +121 -187
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +23 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +80 -107
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +46 -69
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +63 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +121 -115
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +304 -327
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +307 -366
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +39 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +230 -343
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +121 -167
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +31 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +73 -113
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +75 -106
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +229 -184
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +31 -40
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +247 -286
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +281 -283
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +83 -337
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +65 -80
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +36 -42
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +408 -621
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +253 -322
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +161 -252
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +677 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +88 -111
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +378 -475
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +27 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +39 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +19 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +57 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +413 -534
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +117 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +38 -53
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +60 -114
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +38 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +7 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +6 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +82 -82
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +9 -9
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +26 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +144 -103
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +170 -105
- data/vendor/local/share/gtk-doc/html/glib/glib.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +48 -43
- data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +660 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +8 -4
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +67 -2
- data/vendor/local/share/gtk-doc/html/glib/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/glib/tools.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +72 -90
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +79 -108
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +67 -85
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +63 -9
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-28.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +65 -53
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +8 -11
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +19 -19
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +18 -18
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +22 -22
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +16 -16
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +40 -54
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +405 -512
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +170 -213
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +242 -292
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +91 -127
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +407 -573
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +951 -1268
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +383 -441
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +648 -829
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +82 -95
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +31 -49
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +15 -14
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +14 -14
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/index.html +11 -10
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +13 -1
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +13 -13
- data/vendor/local/share/gtk-doc/html/gobject/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +3 -3
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +2 -2
- data/vendor/local/share/man/man1/glib-mkenums.1 +2 -2
- data/vendor/local/share/man/man1/gobject-query.1 +2 -2
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.log → glib_2.28.1-1_win32.log} +690 -773
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.sh → glib_2.28.1-1_win32.sh} +2 -4
- metadata +78 -146
- data/ext/glib2/Makefile +0 -169
- data/ext/glib2/glib-enum-types.c +0 -1065
- data/ext/glib2/glib-enum-types.h +0 -144
- data/ext/glib2/ruby-glib2.pc +0 -3
- data/test-unit/COPYING +0 -56
- data/test-unit/GPL +0 -340
- data/test-unit/History.txt +0 -279
- data/test-unit/Manifest.txt +0 -110
- data/test-unit/PSFL +0 -271
- data/test-unit/README.txt +0 -75
- data/test-unit/Rakefile +0 -53
- data/test-unit/TODO +0 -5
- data/test-unit/bin/testrb +0 -5
- data/test-unit/html/bar.png +0 -0
- data/test-unit/html/bar.svg +0 -153
- data/test-unit/html/developer.png +0 -0
- data/test-unit/html/developer.svg +0 -469
- data/test-unit/html/famfamfam-logo.png +0 -0
- data/test-unit/html/favicon.ico +0 -0
- data/test-unit/html/favicon.png +0 -0
- data/test-unit/html/favicon.svg +0 -82
- data/test-unit/html/heading-mark.png +0 -0
- data/test-unit/html/heading-mark.svg +0 -393
- data/test-unit/html/index.html +0 -285
- data/test-unit/html/index.html.ja +0 -299
- data/test-unit/html/install.png +0 -0
- data/test-unit/html/install.svg +0 -636
- data/test-unit/html/jp.png +0 -0
- data/test-unit/html/kinotan-failure.png +0 -0
- data/test-unit/html/kinotan-pass.png +0 -0
- data/test-unit/html/logo.png +0 -0
- data/test-unit/html/logo.svg +0 -483
- data/test-unit/html/reference.png +0 -0
- data/test-unit/html/rubyforge.png +0 -0
- data/test-unit/html/tango-logo.png +0 -0
- data/test-unit/html/test-unit.css +0 -339
- data/test-unit/html/tutorial.png +0 -0
- data/test-unit/html/tutorial.svg +0 -559
- data/test-unit/html/us.png +0 -0
- data/test-unit/images/color-diff.png +0 -0
- data/test-unit/lib/test/unit.rb +0 -328
- data/test-unit/lib/test/unit/assertionfailederror.rb +0 -25
- data/test-unit/lib/test/unit/assertions.rb +0 -1792
- data/test-unit/lib/test/unit/attribute.rb +0 -125
- data/test-unit/lib/test/unit/autorunner.rb +0 -415
- data/test-unit/lib/test/unit/collector.rb +0 -38
- data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
- data/test-unit/lib/test/unit/collector/dir.rb +0 -108
- data/test-unit/lib/test/unit/collector/load.rb +0 -187
- data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
- data/test-unit/lib/test/unit/collector/xml.rb +0 -250
- data/test-unit/lib/test/unit/color-scheme.rb +0 -106
- data/test-unit/lib/test/unit/color.rb +0 -96
- data/test-unit/lib/test/unit/diff.rb +0 -740
- data/test-unit/lib/test/unit/error.rb +0 -131
- data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
- data/test-unit/lib/test/unit/failure.rb +0 -136
- data/test-unit/lib/test/unit/fixture.rb +0 -185
- data/test-unit/lib/test/unit/notification.rb +0 -129
- data/test-unit/lib/test/unit/omission.rb +0 -191
- data/test-unit/lib/test/unit/pending.rb +0 -150
- data/test-unit/lib/test/unit/priority.rb +0 -180
- data/test-unit/lib/test/unit/runner/console.rb +0 -52
- data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
- data/test-unit/lib/test/unit/runner/tap.rb +0 -8
- data/test-unit/lib/test/unit/runner/xml.rb +0 -15
- data/test-unit/lib/test/unit/testcase.rb +0 -515
- data/test-unit/lib/test/unit/testresult.rb +0 -125
- data/test-unit/lib/test/unit/testsuite.rb +0 -134
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -467
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -63
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +0 -82
- data/test-unit/lib/test/unit/ui/testrunner.rb +0 -53
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -86
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/test-unit/lib/test/unit/ui/xml/testrunner.rb +0 -224
- data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -42
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +0 -28
- data/test-unit/lib/test/unit/util/observable.rb +0 -90
- data/test-unit/lib/test/unit/util/output.rb +0 -31
- data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
- data/test-unit/lib/test/unit/version.rb +0 -7
- data/test-unit/sample/adder.rb +0 -13
- data/test-unit/sample/subtracter.rb +0 -12
- data/test-unit/sample/test_adder.rb +0 -20
- data/test-unit/sample/test_subtracter.rb +0 -20
- data/test-unit/sample/test_user.rb +0 -23
- data/test-unit/test/collector/test-descendant.rb +0 -133
- data/test-unit/test/collector/test-load.rb +0 -442
- data/test-unit/test/collector/test_dir.rb +0 -406
- data/test-unit/test/collector/test_objectspace.rb +0 -100
- data/test-unit/test/run-test.rb +0 -22
- data/test-unit/test/test-assertions.rb +0 -1849
- data/test-unit/test/test-attribute.rb +0 -86
- data/test-unit/test/test-color-scheme.rb +0 -69
- data/test-unit/test/test-color.rb +0 -47
- data/test-unit/test/test-diff.rb +0 -518
- data/test-unit/test/test-emacs-runner.rb +0 -60
- data/test-unit/test/test-fixture.rb +0 -324
- data/test-unit/test/test-notification.rb +0 -33
- data/test-unit/test/test-omission.rb +0 -81
- data/test-unit/test/test-pending.rb +0 -70
- data/test-unit/test/test-priority.rb +0 -119
- data/test-unit/test/test-testcase.rb +0 -569
- data/test-unit/test/test_error.rb +0 -26
- data/test-unit/test/test_failure.rb +0 -33
- data/test-unit/test/test_testresult.rb +0 -113
- data/test-unit/test/test_testsuite.rb +0 -137
- data/test-unit/test/testunit-test-util.rb +0 -14
- data/test-unit/test/ui/test_tap.rb +0 -33
- data/test-unit/test/ui/test_testrunmediator.rb +0 -20
- data/test-unit/test/util/test-method-owner-finder.rb +0 -38
- data/test-unit/test/util/test-output.rb +0 -11
- data/test-unit/test/util/test_backtracefilter.rb +0 -41
- data/test-unit/test/util/test_observable.rb +0 -102
- data/test-unit/test/util/test_procwrapper.rb +0 -36
- data/vendor/local/share/gtk-doc/html/gio/ch24.html +0 -75
- data/vendor/local/share/gtk-doc/html/gio/ch25.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +0 -39
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="glib-utilities.html" title="GLib Utilities">
|
9
9
|
<link rel="prev" href="glib-Spawning-Processes.html" title="Spawning Processes">
|
10
10
|
<link rel="next" href="glib-URI-Functions.html" title="URI Functions">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.16.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<a href="#glib-File-Utilities.description" class="shortcut">Description</a>
|
27
27
|
</td></tr>
|
28
28
|
</table>
|
29
|
-
<div class="refentry"
|
29
|
+
<div class="refentry">
|
30
30
|
<a name="glib-File-Utilities"></a><div class="titlepage"></div>
|
31
31
|
<div class="refnamediv"><table width="100%"><tr>
|
32
32
|
<td valign="top">
|
@@ -35,7 +35,7 @@
|
|
35
35
|
</td>
|
36
36
|
<td valign="top" align="right"></td>
|
37
37
|
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv"
|
38
|
+
<div class="refsynopsisdiv">
|
39
39
|
<a name="glib-File-Utilities.synopsis"></a><h2>Synopsis</h2>
|
40
40
|
<pre class="synopsis">
|
41
41
|
#include <glib.h>
|
@@ -45,83 +45,63 @@ enum <a class="link" href="glib-File-Utilities.html#GFileError" t
|
|
45
45
|
#define <a class="link" href="glib-File-Utilities.html#G-FILE-ERROR:CAPS" title="G_FILE_ERROR">G_FILE_ERROR</a>
|
46
46
|
enum <a class="link" href="glib-File-Utilities.html#GFileTest" title="enum GFileTest">GFileTest</a>;
|
47
47
|
<a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="returnvalue">GFileError</span></a> <a class="link" href="glib-File-Utilities.html#g-file-error-from-errno" title="g_file_error_from_errno ()">g_file_error_from_errno</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> err_no</code></em>);
|
48
|
-
|
49
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **contents</code></em>,
|
50
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
|
51
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
48
|
+
#define <a class="link" href="glib-File-Utilities.html#g-file-get-contents" title="g_file_get_contents">g_file_get_contents</a>
|
52
49
|
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-File-Utilities.html#g-file-set-contents" title="g_file_set_contents ()">g_file_set_contents</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
53
50
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *contents</code></em>,
|
54
51
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> length</code></em>,
|
55
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
56
|
-
|
57
|
-
|
58
|
-
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-File-Utilities.html#g-mkstemp" title="g_mkstemp ()">g_mkstemp</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *tmpl</code></em>);
|
52
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
53
|
+
#define <a class="link" href="glib-File-Utilities.html#g-file-test" title="g_file_test">g_file_test</a>
|
54
|
+
#define <a class="link" href="glib-File-Utilities.html#g-mkstemp" title="g_mkstemp">g_mkstemp</a>
|
59
55
|
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-File-Utilities.html#g-mkstemp-full" title="g_mkstemp_full ()">g_mkstemp_full</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *tmpl</code></em>,
|
60
56
|
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
|
61
57
|
<em class="parameter"><code><span class="type">int</span> mode</code></em>);
|
62
|
-
|
63
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **name_used</code></em>,
|
64
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
58
|
+
#define <a class="link" href="glib-File-Utilities.html#g-file-open-tmp" title="g_file_open_tmp">g_file_open_tmp</a>
|
65
59
|
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-File-Utilities.html#g-file-read-link" title="g_file_read_link ()">g_file_read_link</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
66
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
60
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
67
61
|
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-mkdir-with-parents" title="g_mkdir_with_parents ()">g_mkdir_with_parents</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *pathname</code></em>,
|
68
62
|
<em class="parameter"><code><span class="type">int</span> mode</code></em>);
|
69
63
|
|
70
64
|
<a class="link" href="glib-File-Utilities.html#GDir" title="GDir">GDir</a>;
|
71
|
-
|
72
|
-
|
73
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
74
|
-
const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-File-Utilities.html#g-dir-read-name" title="g_dir_read_name ()">g_dir_read_name</a> (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="type">GDir</span></a> *dir</code></em>);
|
65
|
+
#define <a class="link" href="glib-File-Utilities.html#g-dir-open" title="g_dir_open">g_dir_open</a>
|
66
|
+
#define <a class="link" href="glib-File-Utilities.html#g-dir-read-name" title="g_dir_read_name">g_dir_read_name</a>
|
75
67
|
<span class="returnvalue">void</span> <a class="link" href="glib-File-Utilities.html#g-dir-rewind" title="g_dir_rewind ()">g_dir_rewind</a> (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="type">GDir</span></a> *dir</code></em>);
|
76
68
|
<span class="returnvalue">void</span> <a class="link" href="glib-File-Utilities.html#g-dir-close" title="g_dir_close ()">g_dir_close</a> (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="type">GDir</span></a> *dir</code></em>);
|
77
69
|
|
78
70
|
<a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile">GMappedFile</a>;
|
79
71
|
<a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="returnvalue">GMappedFile</span></a> * <a class="link" href="glib-File-Utilities.html#g-mapped-file-new" title="g_mapped_file_new ()">g_mapped_file_new</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
80
72
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> writable</code></em>,
|
81
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
73
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
82
74
|
<a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="returnvalue">GMappedFile</span></a> * <a class="link" href="glib-File-Utilities.html#g-mapped-file-ref" title="g_mapped_file_ref ()">g_mapped_file_ref</a> (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> *file</code></em>);
|
83
75
|
<span class="returnvalue">void</span> <a class="link" href="glib-File-Utilities.html#g-mapped-file-unref" title="g_mapped_file_unref ()">g_mapped_file_unref</a> (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> *file</code></em>);
|
84
76
|
<span class="returnvalue">void</span> <a class="link" href="glib-File-Utilities.html#g-mapped-file-free" title="g_mapped_file_free ()">g_mapped_file_free</a> (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> *file</code></em>);
|
85
77
|
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="returnvalue">gsize</span></a> <a class="link" href="glib-File-Utilities.html#g-mapped-file-get-length" title="g_mapped_file_get_length ()">g_mapped_file_get_length</a> (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> *file</code></em>);
|
86
78
|
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-File-Utilities.html#g-mapped-file-get-contents" title="g_mapped_file_get_contents ()">g_mapped_file_get_contents</a> (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> *file</code></em>);
|
87
79
|
|
88
|
-
<
|
89
|
-
|
90
|
-
|
91
|
-
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-rename" title="g_rename ()">g_rename</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *oldfilename</code></em>,
|
92
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *newfilename</code></em>);
|
93
|
-
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-mkdir" title="g_mkdir ()">g_mkdir</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
94
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);
|
80
|
+
#define <a class="link" href="glib-File-Utilities.html#g-open" title="g_open">g_open</a>
|
81
|
+
#define <a class="link" href="glib-File-Utilities.html#g-rename" title="g_rename">g_rename</a>
|
82
|
+
#define <a class="link" href="glib-File-Utilities.html#g-mkdir" title="g_mkdir">g_mkdir</a>
|
95
83
|
typedef <a class="link" href="glib-File-Utilities.html#GStatBuf" title="GStatBuf">GStatBuf</a>;
|
96
|
-
<
|
97
|
-
|
98
|
-
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-lstat" title="g_lstat ()">g_lstat</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
99
|
-
<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GStatBuf" title="GStatBuf"><span class="type">GStatBuf</span></a> *buf</code></em>);
|
84
|
+
#define <a class="link" href="glib-File-Utilities.html#g-stat" title="g_stat">g_stat</a>
|
85
|
+
#define <a class="link" href="glib-File-Utilities.html#g-lstat" title="g_lstat">g_lstat</a>
|
100
86
|
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-unlink" title="g_unlink ()">g_unlink</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>);
|
101
|
-
<
|
87
|
+
#define <a class="link" href="glib-File-Utilities.html#g-remove" title="g_remove">g_remove</a>
|
102
88
|
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-rmdir" title="g_rmdir ()">g_rmdir</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>);
|
103
|
-
<
|
104
|
-
|
105
|
-
<
|
106
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *mode</code></em>,
|
107
|
-
<em class="parameter"><code><span class="type">FILE</span> *stream</code></em>);
|
108
|
-
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-chmod" title="g_chmod ()">g_chmod</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
109
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);
|
89
|
+
#define <a class="link" href="glib-File-Utilities.html#g-fopen" title="g_fopen">g_fopen</a>
|
90
|
+
#define <a class="link" href="glib-File-Utilities.html#g-freopen" title="g_freopen">g_freopen</a>
|
91
|
+
#define <a class="link" href="glib-File-Utilities.html#g-chmod" title="g_chmod">g_chmod</a>
|
110
92
|
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-access" title="g_access ()">g_access</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
111
93
|
<em class="parameter"><code><span class="type">int</span> mode</code></em>);
|
112
|
-
<
|
113
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);
|
94
|
+
#define <a class="link" href="glib-File-Utilities.html#g-creat" title="g_creat">g_creat</a>
|
114
95
|
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-chdir" title="g_chdir ()">g_chdir</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *path</code></em>);
|
115
|
-
<
|
116
|
-
<em class="parameter"><code><span class="type">struct utimbuf</span> *utb</code></em>);
|
96
|
+
#define <a class="link" href="glib-File-Utilities.html#g-utime" title="g_utime">g_utime</a>
|
117
97
|
</pre>
|
118
98
|
</div>
|
119
|
-
<div class="refsect1"
|
99
|
+
<div class="refsect1">
|
120
100
|
<a name="glib-File-Utilities.description"></a><h2>Description</h2>
|
121
101
|
<p>
|
122
102
|
There is a group of functions which wrap the common POSIX functions
|
123
|
-
dealing with filenames (<a class="link" href="glib-File-Utilities.html#g-open" title="g_open
|
124
|
-
<a class="link" href="glib-File-Utilities.html#g-unlink" title="g_unlink ()"><code class="function">g_unlink()</code></a>, <a class="link" href="glib-File-Utilities.html#g-remove" title="g_remove
|
103
|
+
dealing with filenames (<a class="link" href="glib-File-Utilities.html#g-open" title="g_open"><code class="function">g_open()</code></a>, <a class="link" href="glib-File-Utilities.html#g-rename" title="g_rename"><code class="function">g_rename()</code></a>, <a class="link" href="glib-File-Utilities.html#g-mkdir" title="g_mkdir"><code class="function">g_mkdir()</code></a>, <a class="link" href="glib-File-Utilities.html#g-stat" title="g_stat"><code class="function">g_stat()</code></a>,
|
104
|
+
<a class="link" href="glib-File-Utilities.html#g-unlink" title="g_unlink ()"><code class="function">g_unlink()</code></a>, <a class="link" href="glib-File-Utilities.html#g-remove" title="g_remove"><code class="function">g_remove()</code></a>, <a class="link" href="glib-File-Utilities.html#g-fopen" title="g_fopen"><code class="function">g_fopen()</code></a>, <a class="link" href="glib-File-Utilities.html#g-freopen" title="g_freopen"><code class="function">g_freopen()</code></a>). The point of these
|
125
105
|
wrappers is to make it possible to handle file names with any Unicode
|
126
106
|
characters in them on Windows without having to use ifdefs and the
|
127
107
|
wide character API in the application code.
|
@@ -141,13 +121,13 @@ systems), otherwise convert to/from the system code page.
|
|
141
121
|
</p>
|
142
122
|
<p>
|
143
123
|
Another group of functions allows to open and read directories
|
144
|
-
in the GLib file name encoding. These are <a class="link" href="glib-File-Utilities.html#g-dir-open" title="g_dir_open
|
145
|
-
<a class="link" href="glib-File-Utilities.html#g-dir-read-name" title="g_dir_read_name
|
124
|
+
in the GLib file name encoding. These are <a class="link" href="glib-File-Utilities.html#g-dir-open" title="g_dir_open"><code class="function">g_dir_open()</code></a>,
|
125
|
+
<a class="link" href="glib-File-Utilities.html#g-dir-read-name" title="g_dir_read_name"><code class="function">g_dir_read_name()</code></a>, <a class="link" href="glib-File-Utilities.html#g-dir-rewind" title="g_dir_rewind ()"><code class="function">g_dir_rewind()</code></a>, <a class="link" href="glib-File-Utilities.html#g-dir-close" title="g_dir_close ()"><code class="function">g_dir_close()</code></a>.
|
146
126
|
</p>
|
147
127
|
</div>
|
148
|
-
<div class="refsect1"
|
128
|
+
<div class="refsect1">
|
149
129
|
<a name="glib-File-Utilities.details"></a><h2>Details</h2>
|
150
|
-
<div class="refsect2"
|
130
|
+
<div class="refsect2">
|
151
131
|
<a name="GFileError"></a><h3>enum GFileError</h3>
|
152
132
|
<pre class="programlisting">typedef enum
|
153
133
|
{
|
@@ -359,7 +339,7 @@ differences in when a system will report a given error, etc.
|
|
359
339
|
<td><p><a name="G-FILE-ERROR-FAILED:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_FAILED</code></span></p></td>
|
360
340
|
<td>Does not correspond to a UNIX error code; this
|
361
341
|
is the standard "failed for unspecified reason" error code present in
|
362
|
-
all <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> error code enumerations. Returned if no specific
|
342
|
+
all <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> error code enumerations. Returned if no specific
|
363
343
|
code applies.
|
364
344
|
</td>
|
365
345
|
</tr>
|
@@ -367,18 +347,18 @@ differences in when a system will report a given error, etc.
|
|
367
347
|
</table></div>
|
368
348
|
</div>
|
369
349
|
<hr>
|
370
|
-
<div class="refsect2"
|
350
|
+
<div class="refsect2">
|
371
351
|
<a name="G-FILE-ERROR:CAPS"></a><h3>G_FILE_ERROR</h3>
|
372
352
|
<pre class="programlisting">#define G_FILE_ERROR g_file_error_quark ()
|
373
353
|
</pre>
|
374
354
|
<p>
|
375
355
|
Error domain for file operations. Errors in this domain will
|
376
|
-
be from the <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a> enumeration. See <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> for information on
|
356
|
+
be from the <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a> enumeration. See <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> for information on
|
377
357
|
error domains.
|
378
358
|
</p>
|
379
359
|
</div>
|
380
360
|
<hr>
|
381
|
-
<div class="refsect2"
|
361
|
+
<div class="refsect2">
|
382
362
|
<a name="GFileTest"></a><h3>enum GFileTest</h3>
|
383
363
|
<pre class="programlisting">typedef enum
|
384
364
|
{
|
@@ -390,7 +370,7 @@ error domains.
|
|
390
370
|
} GFileTest;
|
391
371
|
</pre>
|
392
372
|
<p>
|
393
|
-
A test to perform on a file using <a class="link" href="glib-File-Utilities.html#g-file-test" title="g_file_test
|
373
|
+
A test to perform on a file using <a class="link" href="glib-File-Utilities.html#g-file-test" title="g_file_test"><code class="function">g_file_test()</code></a>.
|
394
374
|
</p>
|
395
375
|
<div class="variablelist"><table border="0">
|
396
376
|
<col align="left" valign="top">
|
@@ -432,7 +412,7 @@ A test to perform on a file using <a class="link" href="glib-File-Utilities.html
|
|
432
412
|
</table></div>
|
433
413
|
</div>
|
434
414
|
<hr>
|
435
|
-
<div class="refsect2"
|
415
|
+
<div class="refsect2">
|
436
416
|
<a name="g-file-error-from-errno"></a><h3>g_file_error_from_errno ()</h3>
|
437
417
|
<pre class="programlisting"><a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="returnvalue">GFileError</span></a> g_file_error_from_errno (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> err_no</code></em>);</pre>
|
438
418
|
<p>
|
@@ -442,33 +422,30 @@ For example, if you pass in <code class="literal">EEXIST</code> this function re
|
|
442
422
|
assume that all <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a> values will exist.
|
443
423
|
</p>
|
444
424
|
<p>
|
445
|
-
Normally a <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a> value goes into a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> returned
|
425
|
+
Normally a <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a> value goes into a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> returned
|
446
426
|
from a function that manipulates files. So you would use
|
447
|
-
<a class="link" href="glib-File-Utilities.html#g-file-error-from-errno" title="g_file_error_from_errno ()"><code class="function">g_file_error_from_errno()</code></a> when constructing a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a>.
|
427
|
+
<a class="link" href="glib-File-Utilities.html#g-file-error-from-errno" title="g_file_error_from_errno ()"><code class="function">g_file_error_from_errno()</code></a> when constructing a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>.
|
448
428
|
</p>
|
449
429
|
<div class="variablelist"><table border="0">
|
450
430
|
<col align="left" valign="top">
|
451
431
|
<tbody>
|
452
432
|
<tr>
|
453
433
|
<td><p><span class="term"><em class="parameter"><code>err_no</code></em> :</span></p></td>
|
454
|
-
<td>an "errno" value
|
455
|
-
</td>
|
434
|
+
<td>an "errno" value</td>
|
456
435
|
</tr>
|
457
436
|
<tr>
|
458
437
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
459
|
-
<td>
|
438
|
+
<td>
|
439
|
+
<a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a> corresponding to the given <em class="parameter"><code>errno</code></em>
|
460
440
|
</td>
|
461
441
|
</tr>
|
462
442
|
</tbody>
|
463
443
|
</table></div>
|
464
444
|
</div>
|
465
445
|
<hr>
|
466
|
-
<div class="refsect2"
|
467
|
-
<a name="g-file-get-contents"></a><h3>g_file_get_contents
|
468
|
-
<pre class="programlisting"
|
469
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **contents</code></em>,
|
470
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
|
471
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
446
|
+
<div class="refsect2">
|
447
|
+
<a name="g-file-get-contents"></a><h3>g_file_get_contents</h3>
|
448
|
+
<pre class="programlisting">#define g_file_get_contents</pre>
|
472
449
|
<p>
|
473
450
|
Reads an entire file into allocated memory, with good error
|
474
451
|
checking.
|
@@ -484,43 +461,20 @@ codes are those in the <a class="link" href="glib-File-Utilities.html#GFileError
|
|
484
461
|
</p>
|
485
462
|
<div class="variablelist"><table border="0">
|
486
463
|
<col align="left" valign="top">
|
487
|
-
<tbody>
|
488
|
-
<tr>
|
489
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
490
|
-
<td>name of a file to read contents from, in the GLib file name encoding
|
491
|
-
</td>
|
492
|
-
</tr>
|
493
|
-
<tr>
|
494
|
-
<td><p><span class="term"><em class="parameter"><code>contents</code></em> :</span></p></td>
|
495
|
-
<td>location to store an allocated string, use <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a> to free
|
496
|
-
the returned string
|
497
|
-
</td>
|
498
|
-
</tr>
|
499
|
-
<tr>
|
500
|
-
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
501
|
-
<td>location to store length in bytes of the contents, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
502
|
-
</td>
|
503
|
-
</tr>
|
504
|
-
<tr>
|
505
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
506
|
-
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
507
|
-
</td>
|
508
|
-
</tr>
|
509
|
-
<tr>
|
464
|
+
<tbody><tr>
|
510
465
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
511
|
-
<td>
|
512
|
-
</td>
|
513
|
-
</tr>
|
514
|
-
</tbody>
|
466
|
+
<td>
|
467
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> on success, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> if an error occurred</td>
|
468
|
+
</tr></tbody>
|
515
469
|
</table></div>
|
516
470
|
</div>
|
517
471
|
<hr>
|
518
|
-
<div class="refsect2"
|
472
|
+
<div class="refsect2">
|
519
473
|
<a name="g-file-set-contents"></a><h3>g_file_set_contents ()</h3>
|
520
474
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_file_set_contents (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
521
475
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *contents</code></em>,
|
522
476
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> length</code></em>,
|
523
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
477
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
524
478
|
<p>
|
525
479
|
Writes all of <em class="parameter"><code>contents</code></em> to a file named <em class="parameter"><code>filename</code></em>, with good error checking.
|
526
480
|
If a file called <em class="parameter"><code>filename</code></em> already exists it will be overwritten.
|
@@ -564,39 +518,34 @@ to 7 characters to <em class="parameter"><code>filename</code></em>.
|
|
564
518
|
<tr>
|
565
519
|
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
566
520
|
<td>name of a file to write <em class="parameter"><code>contents</code></em> to, in the GLib file name
|
567
|
-
|
568
|
-
</td>
|
521
|
+
encoding</td>
|
569
522
|
</tr>
|
570
523
|
<tr>
|
571
524
|
<td><p><span class="term"><em class="parameter"><code>contents</code></em> :</span></p></td>
|
572
|
-
<td>string to write to the file
|
573
|
-
</td>
|
525
|
+
<td>string to write to the file</td>
|
574
526
|
</tr>
|
575
527
|
<tr>
|
576
528
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
577
|
-
<td>length of <em class="parameter"><code>contents</code></em>, or -1 if <em class="parameter"><code>contents</code></em> is a nul-terminated string
|
578
|
-
</td>
|
529
|
+
<td>length of <em class="parameter"><code>contents</code></em>, or -1 if <em class="parameter"><code>contents</code></em> is a nul-terminated string</td>
|
579
530
|
</tr>
|
580
531
|
<tr>
|
581
532
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
582
|
-
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
533
|
+
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
583
534
|
</td>
|
584
535
|
</tr>
|
585
536
|
<tr>
|
586
537
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
587
|
-
<td>
|
588
|
-
|
589
|
-
</td>
|
538
|
+
<td>
|
539
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> on success, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> if an error occurred</td>
|
590
540
|
</tr>
|
591
541
|
</tbody>
|
592
542
|
</table></div>
|
593
543
|
<p class="since">Since 2.8</p>
|
594
544
|
</div>
|
595
545
|
<hr>
|
596
|
-
<div class="refsect2"
|
597
|
-
<a name="g-file-test"></a><h3>g_file_test
|
598
|
-
<pre class="programlisting"
|
599
|
-
<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GFileTest" title="enum GFileTest"><span class="type">GFileTest</span></a> test</code></em>);</pre>
|
546
|
+
<div class="refsect2">
|
547
|
+
<a name="g-file-test"></a><h3>g_file_test</h3>
|
548
|
+
<pre class="programlisting">#define g_file_test</pre>
|
600
549
|
<p>
|
601
550
|
Returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if any of the tests in the bitfield <em class="parameter"><code>test</code></em> are
|
602
551
|
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>. For example, <code class="literal">(G_FILE_TEST_EXISTS |
|
@@ -607,15 +556,15 @@ passing in more than one test at a time.
|
|
607
556
|
</p>
|
608
557
|
<p>
|
609
558
|
Apart from <a class="link" href="glib-File-Utilities.html#G-FILE-TEST-IS-SYMLINK:CAPS"><code class="literal">G_FILE_TEST_IS_SYMLINK</code></a> all tests follow symbolic links,
|
610
|
-
so for a symbolic link to a regular file <a class="link" href="glib-File-Utilities.html#g-file-test" title="g_file_test
|
559
|
+
so for a symbolic link to a regular file <a class="link" href="glib-File-Utilities.html#g-file-test" title="g_file_test"><code class="function">g_file_test()</code></a> will return
|
611
560
|
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> for both <a class="link" href="glib-File-Utilities.html#G-FILE-TEST-IS-SYMLINK:CAPS"><code class="literal">G_FILE_TEST_IS_SYMLINK</code></a> and <a class="link" href="glib-File-Utilities.html#G-FILE-TEST-IS-REGULAR:CAPS"><code class="literal">G_FILE_TEST_IS_REGULAR</code></a>.
|
612
561
|
</p>
|
613
562
|
<p>
|
614
|
-
Note, that for a dangling symbolic link <a class="link" href="glib-File-Utilities.html#g-file-test" title="g_file_test
|
563
|
+
Note, that for a dangling symbolic link <a class="link" href="glib-File-Utilities.html#g-file-test" title="g_file_test"><code class="function">g_file_test()</code></a> will return
|
615
564
|
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> for <a class="link" href="glib-File-Utilities.html#G-FILE-TEST-IS-SYMLINK:CAPS"><code class="literal">G_FILE_TEST_IS_SYMLINK</code></a> and <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> for all other flags.
|
616
565
|
</p>
|
617
566
|
<p>
|
618
|
-
You should never use <a class="link" href="glib-File-Utilities.html#g-file-test" title="g_file_test
|
567
|
+
You should never use <a class="link" href="glib-File-Utilities.html#g-file-test" title="g_file_test"><code class="function">g_file_test()</code></a> to test whether it is safe
|
619
568
|
to perform an operation, because there is always the possibility
|
620
569
|
of the condition changing before you actually perform the operation.
|
621
570
|
For example, you might think you could use <a class="link" href="glib-File-Utilities.html#G-FILE-TEST-IS-SYMLINK:CAPS"><code class="literal">G_FILE_TEST_IS_SYMLINK</code></a>
|
@@ -662,29 +611,17 @@ extensions and those listed in the <code class="literal">PATHEXT</code> environm
|
|
662
611
|
</p>
|
663
612
|
<div class="variablelist"><table border="0">
|
664
613
|
<col align="left" valign="top">
|
665
|
-
<tbody>
|
666
|
-
<tr>
|
667
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
668
|
-
<td>a filename to test in the GLib file name encoding
|
669
|
-
</td>
|
670
|
-
</tr>
|
671
|
-
<tr>
|
672
|
-
<td><p><span class="term"><em class="parameter"><code>test</code></em> :</span></p></td>
|
673
|
-
<td>bitfield of <a class="link" href="glib-File-Utilities.html#GFileTest" title="enum GFileTest"><span class="type">GFileTest</span></a> flags
|
674
|
-
</td>
|
675
|
-
</tr>
|
676
|
-
<tr>
|
614
|
+
<tbody><tr>
|
677
615
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
678
|
-
<td>
|
616
|
+
<td>whether a test was <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>
|
679
617
|
</td>
|
680
|
-
</tr>
|
681
|
-
</tbody>
|
618
|
+
</tr></tbody>
|
682
619
|
</table></div>
|
683
620
|
</div>
|
684
621
|
<hr>
|
685
|
-
<div class="refsect2"
|
686
|
-
<a name="g-mkstemp"></a><h3>g_mkstemp
|
687
|
-
<pre class="programlisting"
|
622
|
+
<div class="refsect2">
|
623
|
+
<a name="g-mkstemp"></a><h3>g_mkstemp</h3>
|
624
|
+
<pre class="programlisting">#define g_mkstemp</pre>
|
688
625
|
<p>
|
689
626
|
Opens a temporary file. See the <code class="function">mkstemp()</code> documentation
|
690
627
|
on most UNIX-like systems.
|
@@ -692,7 +629,7 @@ on most UNIX-like systems.
|
|
692
629
|
<p>
|
693
630
|
The parameter is a string that should follow the rules for
|
694
631
|
<code class="function">mkstemp()</code> templates, i.e. contain the string "XXXXXX".
|
695
|
-
<a class="link" href="glib-File-Utilities.html#g-mkstemp" title="g_mkstemp
|
632
|
+
<a class="link" href="glib-File-Utilities.html#g-mkstemp" title="g_mkstemp"><code class="function">g_mkstemp()</code></a> is slightly more flexible than <code class="function">mkstemp()</code>
|
696
633
|
in that the sequence does not have to occur at the very end of the
|
697
634
|
template. The X string will
|
698
635
|
be modified to form the name of a file that didn't exist.
|
@@ -701,25 +638,17 @@ on Windows it should be in UTF-8.
|
|
701
638
|
</p>
|
702
639
|
<div class="variablelist"><table border="0">
|
703
640
|
<col align="left" valign="top">
|
704
|
-
<tbody>
|
705
|
-
<tr>
|
706
|
-
<td><p><span class="term"><em class="parameter"><code>tmpl</code></em> :</span></p></td>
|
707
|
-
<td>template filename
|
708
|
-
</td>
|
709
|
-
</tr>
|
710
|
-
<tr>
|
641
|
+
<tbody><tr>
|
711
642
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
712
|
-
<td>
|
643
|
+
<td>A file handle (as from <code class="function">open()</code>) to the file
|
713
644
|
opened for reading and writing. The file is opened in binary mode
|
714
645
|
on platforms where there is a difference. The file handle should be
|
715
|
-
closed with <code class="function">close()</code>. In case of errors, -1 is returned
|
716
|
-
</
|
717
|
-
</tr>
|
718
|
-
</tbody>
|
646
|
+
closed with <code class="function">close()</code>. In case of errors, -1 is returned.</td>
|
647
|
+
</tr></tbody>
|
719
648
|
</table></div>
|
720
649
|
</div>
|
721
650
|
<hr>
|
722
|
-
<div class="refsect2"
|
651
|
+
<div class="refsect2">
|
723
652
|
<a name="g-mkstemp-full"></a><h3>g_mkstemp_full ()</h3>
|
724
653
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_mkstemp_full (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *tmpl</code></em>,
|
725
654
|
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
|
@@ -743,51 +672,44 @@ on Windows it should be in UTF-8.
|
|
743
672
|
<tbody>
|
744
673
|
<tr>
|
745
674
|
<td><p><span class="term"><em class="parameter"><code>tmpl</code></em> :</span></p></td>
|
746
|
-
<td>template filename
|
747
|
-
</td>
|
675
|
+
<td>template filename</td>
|
748
676
|
</tr>
|
749
677
|
<tr>
|
750
678
|
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
|
751
679
|
<td>flags to pass to an <code class="function">open()</code> call in addition to O_EXCL and
|
752
|
-
|
753
|
-
</td>
|
680
|
+
O_CREAT, which are passed automatically</td>
|
754
681
|
</tr>
|
755
682
|
<tr>
|
756
683
|
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
757
|
-
<td>permissios to create the temporary file with
|
758
|
-
</td>
|
684
|
+
<td>permissios to create the temporary file with</td>
|
759
685
|
</tr>
|
760
686
|
<tr>
|
761
687
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
762
|
-
<td>
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
</td>
|
688
|
+
<td>A file handle (as from <code class="function">open()</code>) to the file
|
689
|
+
opened for reading and writing. The file handle should be
|
690
|
+
closed with <code class="function">close()</code>. In case of errors, -1 is returned.</td>
|
767
691
|
</tr>
|
768
692
|
</tbody>
|
769
693
|
</table></div>
|
770
694
|
<p class="since">Since 2.22</p>
|
771
695
|
</div>
|
772
696
|
<hr>
|
773
|
-
<div class="refsect2"
|
774
|
-
<a name="g-file-open-tmp"></a><h3>g_file_open_tmp
|
775
|
-
<pre class="programlisting"
|
776
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **name_used</code></em>,
|
777
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
697
|
+
<div class="refsect2">
|
698
|
+
<a name="g-file-open-tmp"></a><h3>g_file_open_tmp</h3>
|
699
|
+
<pre class="programlisting">#define g_file_open_tmp</pre>
|
778
700
|
<p>
|
779
701
|
Opens a file for writing in the preferred directory for temporary
|
780
|
-
files (as returned by <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-tmp-dir" title="g_get_tmp_dir
|
702
|
+
files (as returned by <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-tmp-dir" title="g_get_tmp_dir"><code class="function">g_get_tmp_dir()</code></a>).
|
781
703
|
</p>
|
782
704
|
<p>
|
783
705
|
<em class="parameter"><code>tmpl</code></em> should be a string in the GLib file name encoding containing
|
784
|
-
a sequence of six 'X' characters, as the parameter to <a class="link" href="glib-File-Utilities.html#g-mkstemp" title="g_mkstemp
|
706
|
+
a sequence of six 'X' characters, as the parameter to <a class="link" href="glib-File-Utilities.html#g-mkstemp" title="g_mkstemp"><code class="function">g_mkstemp()</code></a>.
|
785
707
|
However, unlike these functions, the template should only be a
|
786
708
|
basename, no directory components are allowed. If template is
|
787
709
|
<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, a default template is used.
|
788
710
|
</p>
|
789
711
|
<p>
|
790
|
-
Note that in contrast to <a class="link" href="glib-File-Utilities.html#g-mkstemp" title="g_mkstemp
|
712
|
+
Note that in contrast to <a class="link" href="glib-File-Utilities.html#g-mkstemp" title="g_mkstemp"><code class="function">g_mkstemp()</code></a> (and <code class="function">mkstemp()</code>)
|
791
713
|
<em class="parameter"><code>tmpl</code></em> is not modified, and might thus be a read-only literal string.
|
792
714
|
</p>
|
793
715
|
<p>
|
@@ -797,71 +719,49 @@ The returned name is in the GLib file name encoding.
|
|
797
719
|
</p>
|
798
720
|
<div class="variablelist"><table border="0">
|
799
721
|
<col align="left" valign="top">
|
800
|
-
<tbody>
|
801
|
-
<tr>
|
802
|
-
<td><p><span class="term"><em class="parameter"><code>tmpl</code></em> :</span></p></td>
|
803
|
-
<td>Template for file name, as in <a class="link" href="glib-File-Utilities.html#g-mkstemp" title="g_mkstemp ()"><code class="function">g_mkstemp()</code></a>, basename only,
|
804
|
-
or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, to a default template
|
805
|
-
</td>
|
806
|
-
</tr>
|
807
|
-
<tr>
|
808
|
-
<td><p><span class="term"><em class="parameter"><code>name_used</code></em> :</span></p></td>
|
809
|
-
<td>location to store actual name used, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
810
|
-
</td>
|
811
|
-
</tr>
|
812
|
-
<tr>
|
813
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
814
|
-
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a>
|
815
|
-
</td>
|
816
|
-
</tr>
|
817
|
-
<tr>
|
722
|
+
<tbody><tr>
|
818
723
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
819
|
-
<td>
|
820
|
-
the file opened for reading and writing. The file is opened in binary
|
724
|
+
<td>A file handle (as from <code class="function">open()</code>) to
|
725
|
+
the file opened for reading and writing. The file is opened in binary
|
821
726
|
mode on platforms where there is a difference. The file handle should be
|
822
|
-
closed with <code class="function">close()</code>. In case of errors, -1 is returned
|
823
|
-
and <em class="parameter"><code>error</code></em> will be set
|
824
|
-
</
|
825
|
-
</tr>
|
826
|
-
</tbody>
|
727
|
+
closed with <code class="function">close()</code>. In case of errors, -1 is returned
|
728
|
+
and <em class="parameter"><code>error</code></em> will be set.</td>
|
729
|
+
</tr></tbody>
|
827
730
|
</table></div>
|
828
731
|
</div>
|
829
732
|
<hr>
|
830
|
-
<div class="refsect2"
|
733
|
+
<div class="refsect2">
|
831
734
|
<a name="g-file-read-link"></a><h3>g_file_read_link ()</h3>
|
832
735
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_file_read_link (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
833
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
736
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
834
737
|
<p>
|
835
738
|
Reads the contents of the symbolic link <em class="parameter"><code>filename</code></em> like the POSIX
|
836
739
|
<code class="function">readlink()</code> function. The returned string is in the encoding used
|
837
|
-
for filenames. Use <a class="link" href="glib-Character-Set-Conversion.html#g-filename-to-utf8" title="g_filename_to_utf8
|
740
|
+
for filenames. Use <a class="link" href="glib-Character-Set-Conversion.html#g-filename-to-utf8" title="g_filename_to_utf8"><code class="function">g_filename_to_utf8()</code></a> to convert it to UTF-8.
|
838
741
|
</p>
|
839
742
|
<div class="variablelist"><table border="0">
|
840
743
|
<col align="left" valign="top">
|
841
744
|
<tbody>
|
842
745
|
<tr>
|
843
746
|
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
844
|
-
<td>the symbolic link
|
845
|
-
</td>
|
747
|
+
<td>the symbolic link</td>
|
846
748
|
</tr>
|
847
749
|
<tr>
|
848
750
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
849
|
-
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a>
|
751
|
+
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>
|
850
752
|
</td>
|
851
753
|
</tr>
|
852
754
|
<tr>
|
853
755
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
854
|
-
<td>
|
855
|
-
|
856
|
-
|
857
|
-
</td>
|
756
|
+
<td>A newly-allocated string with the contents of the symbolic link,
|
757
|
+
or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if an error occurred.</td>
|
858
758
|
</tr>
|
859
759
|
</tbody>
|
860
760
|
</table></div>
|
861
761
|
<p class="since">Since 2.4</p>
|
862
762
|
</div>
|
863
763
|
<hr>
|
864
|
-
<div class="refsect2"
|
764
|
+
<div class="refsect2">
|
865
765
|
<a name="g-mkdir-with-parents"></a><h3>g_mkdir_with_parents ()</h3>
|
866
766
|
<pre class="programlisting"><span class="returnvalue">int</span> g_mkdir_with_parents (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *pathname</code></em>,
|
867
767
|
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
@@ -874,27 +774,23 @@ parent directories as needed, too.
|
|
874
774
|
<tbody>
|
875
775
|
<tr>
|
876
776
|
<td><p><span class="term"><em class="parameter"><code>pathname</code></em> :</span></p></td>
|
877
|
-
<td>a pathname in the GLib file name encoding
|
878
|
-
</td>
|
777
|
+
<td>a pathname in the GLib file name encoding</td>
|
879
778
|
</tr>
|
880
779
|
<tr>
|
881
780
|
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
882
|
-
<td>permissions to use for newly created directories
|
883
|
-
</td>
|
781
|
+
<td>permissions to use for newly created directories</td>
|
884
782
|
</tr>
|
885
783
|
<tr>
|
886
784
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
887
|
-
<td>
|
888
|
-
created. Returns -1 if an error occurred, with errno set
|
889
|
-
|
890
|
-
</td>
|
785
|
+
<td>0 if the directory already exists, or was successfully
|
786
|
+
created. Returns -1 if an error occurred, with errno set.</td>
|
891
787
|
</tr>
|
892
788
|
</tbody>
|
893
789
|
</table></div>
|
894
790
|
<p class="since">Since 2.8</p>
|
895
791
|
</div>
|
896
792
|
<hr>
|
897
|
-
<div class="refsect2"
|
793
|
+
<div class="refsect2">
|
898
794
|
<a name="GDir"></a><h3>GDir</h3>
|
899
795
|
<pre class="programlisting">typedef struct _GDir GDir;</pre>
|
900
796
|
<p>
|
@@ -902,51 +798,28 @@ An opaque structure representing an opened directory.
|
|
902
798
|
</p>
|
903
799
|
</div>
|
904
800
|
<hr>
|
905
|
-
<div class="refsect2"
|
906
|
-
<a name="g-dir-open"></a><h3>g_dir_open
|
907
|
-
<pre class="programlisting"
|
908
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> flags</code></em>,
|
909
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
801
|
+
<div class="refsect2">
|
802
|
+
<a name="g-dir-open"></a><h3>g_dir_open</h3>
|
803
|
+
<pre class="programlisting">#define g_dir_open</pre>
|
910
804
|
<p>
|
911
805
|
Opens a directory for reading. The names of the files in the
|
912
|
-
directory can then be retrieved using <a class="link" href="glib-File-Utilities.html#g-dir-read-name" title="g_dir_read_name
|
806
|
+
directory can then be retrieved using <a class="link" href="glib-File-Utilities.html#g-dir-read-name" title="g_dir_read_name"><code class="function">g_dir_read_name()</code></a>. Note
|
913
807
|
that the ordering is not defined.
|
914
808
|
</p>
|
915
809
|
<div class="variablelist"><table border="0">
|
916
810
|
<col align="left" valign="top">
|
917
|
-
<tbody>
|
918
|
-
<tr>
|
919
|
-
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
|
920
|
-
<td>the path to the directory you are interested in. On Unix
|
921
|
-
in the on-disk encoding. On Windows in UTF-8
|
922
|
-
</td>
|
923
|
-
</tr>
|
924
|
-
<tr>
|
925
|
-
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
|
926
|
-
<td>Currently must be set to 0. Reserved for future use.
|
927
|
-
</td>
|
928
|
-
</tr>
|
929
|
-
<tr>
|
930
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
931
|
-
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
932
|
-
If non-<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, an error will be set if and only if
|
933
|
-
<a class="link" href="glib-File-Utilities.html#g-dir-open" title="g_dir_open ()"><code class="function">g_dir_open()</code></a> fails.
|
934
|
-
</td>
|
935
|
-
</tr>
|
936
|
-
<tr>
|
811
|
+
<tbody><tr>
|
937
812
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
938
|
-
<td>
|
939
|
-
|
940
|
-
|
941
|
-
</
|
942
|
-
</tr>
|
943
|
-
</tbody>
|
813
|
+
<td>a newly allocated <a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="type">GDir</span></a> on success, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on failure.
|
814
|
+
If non-<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, you must free the result with <a class="link" href="glib-File-Utilities.html#g-dir-close" title="g_dir_close ()"><code class="function">g_dir_close()</code></a>
|
815
|
+
when you are finished with it.</td>
|
816
|
+
</tr></tbody>
|
944
817
|
</table></div>
|
945
818
|
</div>
|
946
819
|
<hr>
|
947
|
-
<div class="refsect2"
|
948
|
-
<a name="g-dir-read-name"></a><h3>g_dir_read_name
|
949
|
-
<pre class="programlisting"
|
820
|
+
<div class="refsect2">
|
821
|
+
<a name="g-dir-read-name"></a><h3>g_dir_read_name</h3>
|
822
|
+
<pre class="programlisting">#define g_dir_read_name</pre>
|
950
823
|
<p>
|
951
824
|
Retrieves the name of another entry in the directory, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
952
825
|
The order of entries returned from this function is not defined,
|
@@ -963,41 +836,33 @@ filenames, the returned name is in UTF-8.
|
|
963
836
|
</p>
|
964
837
|
<div class="variablelist"><table border="0">
|
965
838
|
<col align="left" valign="top">
|
966
|
-
<tbody>
|
967
|
-
<tr>
|
968
|
-
<td><p><span class="term"><em class="parameter"><code>dir</code></em> :</span></p></td>
|
969
|
-
<td>a <a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="type">GDir</span></a>* created by <a class="link" href="glib-File-Utilities.html#g-dir-open" title="g_dir_open ()"><code class="function">g_dir_open()</code></a>
|
970
|
-
</td>
|
971
|
-
</tr>
|
972
|
-
<tr>
|
839
|
+
<tbody><tr>
|
973
840
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
974
|
-
<td>
|
975
|
-
|
976
|
-
|
977
|
-
</
|
978
|
-
</tr>
|
979
|
-
</tbody>
|
841
|
+
<td>The entry's name or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if there are no
|
842
|
+
more entries. The return value is owned by GLib and
|
843
|
+
must not be modified or freed.</td>
|
844
|
+
</tr></tbody>
|
980
845
|
</table></div>
|
981
846
|
</div>
|
982
847
|
<hr>
|
983
|
-
<div class="refsect2"
|
848
|
+
<div class="refsect2">
|
984
849
|
<a name="g-dir-rewind"></a><h3>g_dir_rewind ()</h3>
|
985
850
|
<pre class="programlisting"><span class="returnvalue">void</span> g_dir_rewind (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="type">GDir</span></a> *dir</code></em>);</pre>
|
986
851
|
<p>
|
987
|
-
Resets the given directory. The next call to <a class="link" href="glib-File-Utilities.html#g-dir-read-name" title="g_dir_read_name
|
852
|
+
Resets the given directory. The next call to <a class="link" href="glib-File-Utilities.html#g-dir-read-name" title="g_dir_read_name"><code class="function">g_dir_read_name()</code></a>
|
988
853
|
will return the first entry again.
|
989
854
|
</p>
|
990
855
|
<div class="variablelist"><table border="0">
|
991
856
|
<col align="left" valign="top">
|
992
857
|
<tbody><tr>
|
993
858
|
<td><p><span class="term"><em class="parameter"><code>dir</code></em> :</span></p></td>
|
994
|
-
<td>a <a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="type">GDir</span></a>* created by <a class="link" href="glib-File-Utilities.html#g-dir-open" title="g_dir_open
|
859
|
+
<td>a <a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="type">GDir</span></a>* created by <a class="link" href="glib-File-Utilities.html#g-dir-open" title="g_dir_open"><code class="function">g_dir_open()</code></a>
|
995
860
|
</td>
|
996
861
|
</tr></tbody>
|
997
862
|
</table></div>
|
998
863
|
</div>
|
999
864
|
<hr>
|
1000
|
-
<div class="refsect2"
|
865
|
+
<div class="refsect2">
|
1001
866
|
<a name="g-dir-close"></a><h3>g_dir_close ()</h3>
|
1002
867
|
<pre class="programlisting"><span class="returnvalue">void</span> g_dir_close (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="type">GDir</span></a> *dir</code></em>);</pre>
|
1003
868
|
<p>
|
@@ -1007,13 +872,13 @@ Closes the directory and deallocates all related resources.
|
|
1007
872
|
<col align="left" valign="top">
|
1008
873
|
<tbody><tr>
|
1009
874
|
<td><p><span class="term"><em class="parameter"><code>dir</code></em> :</span></p></td>
|
1010
|
-
<td>a <a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="type">GDir</span></a>* created by <a class="link" href="glib-File-Utilities.html#g-dir-open" title="g_dir_open
|
875
|
+
<td>a <a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="type">GDir</span></a>* created by <a class="link" href="glib-File-Utilities.html#g-dir-open" title="g_dir_open"><code class="function">g_dir_open()</code></a>
|
1011
876
|
</td>
|
1012
877
|
</tr></tbody>
|
1013
878
|
</table></div>
|
1014
879
|
</div>
|
1015
880
|
<hr>
|
1016
|
-
<div class="refsect2"
|
881
|
+
<div class="refsect2">
|
1017
882
|
<a name="GMappedFile"></a><h3>GMappedFile</h3>
|
1018
883
|
<pre class="programlisting">typedef struct _GMappedFile GMappedFile;</pre>
|
1019
884
|
<p>
|
@@ -1023,11 +888,11 @@ not be accessed directly.
|
|
1023
888
|
</p>
|
1024
889
|
</div>
|
1025
890
|
<hr>
|
1026
|
-
<div class="refsect2"
|
891
|
+
<div class="refsect2">
|
1027
892
|
<a name="g-mapped-file-new"></a><h3>g_mapped_file_new ()</h3>
|
1028
893
|
<pre class="programlisting"><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="returnvalue">GMappedFile</span></a> * g_mapped_file_new (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
1029
894
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> writable</code></em>,
|
1030
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
895
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
1031
896
|
<p>
|
1032
897
|
Maps a file into memory. On UNIX, this is using the <code class="function">mmap()</code> function.
|
1033
898
|
</p>
|
@@ -1048,32 +913,28 @@ atomically (e.g. using <a class="link" href="glib-File-Utilities.html#g-file-set
|
|
1048
913
|
<tbody>
|
1049
914
|
<tr>
|
1050
915
|
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1051
|
-
<td>The path of the file to load, in the GLib filename encoding
|
1052
|
-
</td>
|
916
|
+
<td>The path of the file to load, in the GLib filename encoding</td>
|
1053
917
|
</tr>
|
1054
918
|
<tr>
|
1055
919
|
<td><p><span class="term"><em class="parameter"><code>writable</code></em> :</span></p></td>
|
1056
|
-
<td>whether the mapping should be writable
|
1057
|
-
</td>
|
920
|
+
<td>whether the mapping should be writable</td>
|
1058
921
|
</tr>
|
1059
922
|
<tr>
|
1060
923
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
1061
|
-
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
924
|
+
<td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1062
925
|
</td>
|
1063
926
|
</tr>
|
1064
927
|
<tr>
|
1065
928
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1066
|
-
<td>
|
1067
|
-
|
1068
|
-
|
1069
|
-
</td>
|
929
|
+
<td>a newly allocated <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> which must be unref'd
|
930
|
+
with <a class="link" href="glib-File-Utilities.html#g-mapped-file-unref" title="g_mapped_file_unref ()"><code class="function">g_mapped_file_unref()</code></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if the mapping failed.</td>
|
1070
931
|
</tr>
|
1071
932
|
</tbody>
|
1072
933
|
</table></div>
|
1073
934
|
<p class="since">Since 2.8</p>
|
1074
935
|
</div>
|
1075
936
|
<hr>
|
1076
|
-
<div class="refsect2"
|
937
|
+
<div class="refsect2">
|
1077
938
|
<a name="g-mapped-file-ref"></a><h3>g_mapped_file_ref ()</h3>
|
1078
939
|
<pre class="programlisting"><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="returnvalue">GMappedFile</span></a> * g_mapped_file_ref (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> *file</code></em>);</pre>
|
1079
940
|
<p>
|
@@ -1090,16 +951,14 @@ this function from any thread.
|
|
1090
951
|
</tr>
|
1091
952
|
<tr>
|
1092
953
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1093
|
-
<td>
|
1094
|
-
|
1095
|
-
</td>
|
954
|
+
<td>the passed in <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a>.</td>
|
1096
955
|
</tr>
|
1097
956
|
</tbody>
|
1098
957
|
</table></div>
|
1099
958
|
<p class="since">Since 2.22</p>
|
1100
959
|
</div>
|
1101
960
|
<hr>
|
1102
|
-
<div class="refsect2"
|
961
|
+
<div class="refsect2">
|
1103
962
|
<a name="g-mapped-file-unref"></a><h3>g_mapped_file_unref ()</h3>
|
1104
963
|
<pre class="programlisting"><span class="returnvalue">void</span> g_mapped_file_unref (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> *file</code></em>);</pre>
|
1105
964
|
<p>
|
@@ -1122,10 +981,10 @@ Since 2.22
|
|
1122
981
|
</table></div>
|
1123
982
|
</div>
|
1124
983
|
<hr>
|
1125
|
-
<div class="refsect2"
|
984
|
+
<div class="refsect2">
|
1126
985
|
<a name="g-mapped-file-free"></a><h3>g_mapped_file_free ()</h3>
|
1127
986
|
<pre class="programlisting"><span class="returnvalue">void</span> g_mapped_file_free (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> *file</code></em>);</pre>
|
1128
|
-
<div class="warning"
|
987
|
+
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
1129
988
|
<h3 class="title">Warning</h3>
|
1130
989
|
<p><code class="literal">g_mapped_file_free</code> has been deprecated since version 2.22 and should not be used in newly-written code. Use <a class="link" href="glib-File-Utilities.html#g-mapped-file-unref" title="g_mapped_file_unref ()"><code class="function">g_mapped_file_unref()</code></a> instead.</p>
|
1131
990
|
</div>
|
@@ -1144,7 +1003,7 @@ exactly the same as <a class="link" href="glib-File-Utilities.html#g-mapped-file
|
|
1144
1003
|
<p class="since">Since 2.8</p>
|
1145
1004
|
</div>
|
1146
1005
|
<hr>
|
1147
|
-
<div class="refsect2"
|
1006
|
+
<div class="refsect2">
|
1148
1007
|
<a name="g-mapped-file-get-length"></a><h3>g_mapped_file_get_length ()</h3>
|
1149
1008
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="returnvalue">gsize</span></a> g_mapped_file_get_length (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> *file</code></em>);</pre>
|
1150
1009
|
<p>
|
@@ -1160,16 +1019,14 @@ Returns the length of the contents of a <a class="link" href="glib-File-Utilitie
|
|
1160
1019
|
</tr>
|
1161
1020
|
<tr>
|
1162
1021
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1163
|
-
<td>
|
1164
|
-
|
1165
|
-
</td>
|
1022
|
+
<td>the length of the contents of <em class="parameter"><code>file</code></em>.</td>
|
1166
1023
|
</tr>
|
1167
1024
|
</tbody>
|
1168
1025
|
</table></div>
|
1169
1026
|
<p class="since">Since 2.8</p>
|
1170
1027
|
</div>
|
1171
1028
|
<hr>
|
1172
|
-
<div class="refsect2"
|
1029
|
+
<div class="refsect2">
|
1173
1030
|
<a name="g-mapped-file-get-contents"></a><h3>g_mapped_file_get_contents ()</h3>
|
1174
1031
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_mapped_file_get_contents (<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> *file</code></em>);</pre>
|
1175
1032
|
<p>
|
@@ -1192,20 +1049,16 @@ If the file is empty then <a class="link" href="glib-Standard-Macros.html#NULL:C
|
|
1192
1049
|
</tr>
|
1193
1050
|
<tr>
|
1194
1051
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1195
|
-
<td>
|
1196
|
-
|
1197
|
-
</td>
|
1052
|
+
<td>the contents of <em class="parameter"><code>file</code></em>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.</td>
|
1198
1053
|
</tr>
|
1199
1054
|
</tbody>
|
1200
1055
|
</table></div>
|
1201
1056
|
<p class="since">Since 2.8</p>
|
1202
1057
|
</div>
|
1203
1058
|
<hr>
|
1204
|
-
<div class="refsect2"
|
1205
|
-
<a name="g-open"></a><h3>g_open
|
1206
|
-
<pre class="programlisting"
|
1207
|
-
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
|
1208
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
1059
|
+
<div class="refsect2">
|
1060
|
+
<a name="g-open"></a><h3>g_open</h3>
|
1061
|
+
<pre class="programlisting">#define g_open</pre>
|
1209
1062
|
<p>
|
1210
1063
|
A wrapper for the POSIX <code class="function">open()</code> function. The <code class="function">open()</code> function is
|
1211
1064
|
used to convert a pathname into a file descriptor.
|
@@ -1231,38 +1084,18 @@ See your C library manual for more details about <code class="function">open()</
|
|
1231
1084
|
</p>
|
1232
1085
|
<div class="variablelist"><table border="0">
|
1233
1086
|
<col align="left" valign="top">
|
1234
|
-
<tbody>
|
1235
|
-
<tr>
|
1236
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1237
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1238
|
-
</td>
|
1239
|
-
</tr>
|
1240
|
-
<tr>
|
1241
|
-
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
|
1242
|
-
<td>as in <code class="function">open()</code>
|
1243
|
-
</td>
|
1244
|
-
</tr>
|
1245
|
-
<tr>
|
1246
|
-
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
1247
|
-
<td>as in <code class="function">open()</code>
|
1248
|
-
</td>
|
1249
|
-
</tr>
|
1250
|
-
<tr>
|
1087
|
+
<tbody><tr>
|
1251
1088
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1252
|
-
<td>
|
1253
|
-
return value can be used exactly like the return value from <code class="function">open()</code
|
1254
|
-
|
1255
|
-
</td>
|
1256
|
-
</tr>
|
1257
|
-
</tbody>
|
1089
|
+
<td>a new file descriptor, or -1 if an error occurred. The
|
1090
|
+
return value can be used exactly like the return value from <code class="function">open()</code>.</td>
|
1091
|
+
</tr></tbody>
|
1258
1092
|
</table></div>
|
1259
1093
|
<p class="since">Since 2.6</p>
|
1260
1094
|
</div>
|
1261
1095
|
<hr>
|
1262
|
-
<div class="refsect2"
|
1263
|
-
<a name="g-rename"></a><h3>g_rename
|
1264
|
-
<pre class="programlisting"
|
1265
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *newfilename</code></em>);</pre>
|
1096
|
+
<div class="refsect2">
|
1097
|
+
<a name="g-rename"></a><h3>g_rename</h3>
|
1098
|
+
<pre class="programlisting">#define g_rename</pre>
|
1266
1099
|
<p>
|
1267
1100
|
A wrapper for the POSIX <code class="function">rename()</code> function. The <code class="function">rename()</code> function
|
1268
1101
|
renames a file, moving it between directories if required.
|
@@ -1274,32 +1107,17 @@ a file that is open to some process.
|
|
1274
1107
|
</p>
|
1275
1108
|
<div class="variablelist"><table border="0">
|
1276
1109
|
<col align="left" valign="top">
|
1277
|
-
<tbody>
|
1278
|
-
<tr>
|
1279
|
-
<td><p><span class="term"><em class="parameter"><code>oldfilename</code></em> :</span></p></td>
|
1280
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1281
|
-
</td>
|
1282
|
-
</tr>
|
1283
|
-
<tr>
|
1284
|
-
<td><p><span class="term"><em class="parameter"><code>newfilename</code></em> :</span></p></td>
|
1285
|
-
<td>a pathname in the GLib file name encoding
|
1286
|
-
</td>
|
1287
|
-
</tr>
|
1288
|
-
<tr>
|
1110
|
+
<tbody><tr>
|
1289
1111
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1290
|
-
<td>
|
1291
|
-
|
1292
|
-
</td>
|
1293
|
-
</tr>
|
1294
|
-
</tbody>
|
1112
|
+
<td>0 if the renaming succeeded, -1 if an error occurred</td>
|
1113
|
+
</tr></tbody>
|
1295
1114
|
</table></div>
|
1296
1115
|
<p class="since">Since 2.6</p>
|
1297
1116
|
</div>
|
1298
1117
|
<hr>
|
1299
|
-
<div class="refsect2"
|
1300
|
-
<a name="g-mkdir"></a><h3>g_mkdir
|
1301
|
-
<pre class="programlisting"
|
1302
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
1118
|
+
<div class="refsect2">
|
1119
|
+
<a name="g-mkdir"></a><h3>g_mkdir</h3>
|
1120
|
+
<pre class="programlisting">#define g_mkdir</pre>
|
1303
1121
|
<p>
|
1304
1122
|
A wrapper for the POSIX <code class="function">mkdir()</code> function. The <code class="function">mkdir()</code> function
|
1305
1123
|
attempts to create a directory with the given name and permissions.
|
@@ -1310,44 +1128,31 @@ See your C library manual for more details about <code class="function">mkdir()<
|
|
1310
1128
|
</p>
|
1311
1129
|
<div class="variablelist"><table border="0">
|
1312
1130
|
<col align="left" valign="top">
|
1313
|
-
<tbody>
|
1314
|
-
<tr>
|
1315
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1316
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1317
|
-
</td>
|
1318
|
-
</tr>
|
1319
|
-
<tr>
|
1320
|
-
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
1321
|
-
<td>permissions to use for the newly created directory
|
1322
|
-
</td>
|
1323
|
-
</tr>
|
1324
|
-
<tr>
|
1131
|
+
<tbody><tr>
|
1325
1132
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1326
|
-
<td>
|
1327
|
-
|
1328
|
-
|
1329
|
-
</td>
|
1330
|
-
</tr>
|
1331
|
-
</tbody>
|
1133
|
+
<td>0 if the directory was successfully created, -1 if an error
|
1134
|
+
occurred</td>
|
1135
|
+
</tr></tbody>
|
1332
1136
|
</table></div>
|
1333
1137
|
<p class="since">Since 2.6</p>
|
1334
1138
|
</div>
|
1335
1139
|
<hr>
|
1336
|
-
<div class="refsect2"
|
1140
|
+
<div class="refsect2">
|
1337
1141
|
<a name="GStatBuf"></a><h3>GStatBuf</h3>
|
1142
|
+
<pre class="programlisting">typedef struct _stat32 GStatBuf;
|
1143
|
+
</pre>
|
1338
1144
|
<p>
|
1339
1145
|
A type corresponding to the appropriate struct type for the stat
|
1340
1146
|
system call, depending on the platform and/or compiler being used.
|
1341
1147
|
</p>
|
1342
1148
|
<p>
|
1343
|
-
See <a class="link" href="glib-File-Utilities.html#g-stat" title="g_stat
|
1149
|
+
See <a class="link" href="glib-File-Utilities.html#g-stat" title="g_stat"><code class="function">g_stat()</code></a> for more information.
|
1344
1150
|
</p>
|
1345
1151
|
</div>
|
1346
1152
|
<hr>
|
1347
|
-
<div class="refsect2"
|
1348
|
-
<a name="g-stat"></a><h3>g_stat
|
1349
|
-
<pre class="programlisting"
|
1350
|
-
<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GStatBuf" title="GStatBuf"><span class="type">GStatBuf</span></a> *buf</code></em>);</pre>
|
1153
|
+
<div class="refsect2">
|
1154
|
+
<a name="g-stat"></a><h3>g_stat</h3>
|
1155
|
+
<pre class="programlisting">#define g_stat</pre>
|
1351
1156
|
<p>
|
1352
1157
|
A wrapper for the POSIX <code class="function">stat()</code> function. The <code class="function">stat()</code> function
|
1353
1158
|
returns information about a file. On Windows the <code class="function">stat()</code> function in
|
@@ -1376,71 +1181,40 @@ See your C library manual for more details about <code class="function">stat()</
|
|
1376
1181
|
</p>
|
1377
1182
|
<div class="variablelist"><table border="0">
|
1378
1183
|
<col align="left" valign="top">
|
1379
|
-
<tbody>
|
1380
|
-
<tr>
|
1381
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1382
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1383
|
-
</td>
|
1384
|
-
</tr>
|
1385
|
-
<tr>
|
1386
|
-
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
|
1387
|
-
<td>a pointer to a <span class="structname">stat</span> struct, which
|
1388
|
-
will be filled with the file information
|
1389
|
-
</td>
|
1390
|
-
</tr>
|
1391
|
-
<tr>
|
1184
|
+
<tbody><tr>
|
1392
1185
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1393
|
-
<td>
|
1394
|
-
|
1395
|
-
|
1396
|
-
</td>
|
1397
|
-
</tr>
|
1398
|
-
</tbody>
|
1186
|
+
<td>0 if the information was successfully retrieved, -1 if an error
|
1187
|
+
occurred</td>
|
1188
|
+
</tr></tbody>
|
1399
1189
|
</table></div>
|
1400
1190
|
<p class="since">Since 2.6</p>
|
1401
1191
|
</div>
|
1402
1192
|
<hr>
|
1403
|
-
<div class="refsect2"
|
1404
|
-
<a name="g-lstat"></a><h3>g_lstat
|
1405
|
-
<pre class="programlisting"
|
1406
|
-
<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GStatBuf" title="GStatBuf"><span class="type">GStatBuf</span></a> *buf</code></em>);</pre>
|
1193
|
+
<div class="refsect2">
|
1194
|
+
<a name="g-lstat"></a><h3>g_lstat</h3>
|
1195
|
+
<pre class="programlisting">#define g_lstat</pre>
|
1407
1196
|
<p>
|
1408
1197
|
A wrapper for the POSIX <code class="function">lstat()</code> function. The <code class="function">lstat()</code> function is
|
1409
1198
|
like <code class="function">stat()</code> except that in the case of symbolic links, it returns
|
1410
1199
|
information about the symbolic link itself and not the file that it
|
1411
|
-
refers to. If the system does not support symbolic links <a class="link" href="glib-File-Utilities.html#g-lstat" title="g_lstat
|
1412
|
-
is identical to <a class="link" href="glib-File-Utilities.html#g-stat" title="g_stat
|
1200
|
+
refers to. If the system does not support symbolic links <a class="link" href="glib-File-Utilities.html#g-lstat" title="g_lstat"><code class="function">g_lstat()</code></a>
|
1201
|
+
is identical to <a class="link" href="glib-File-Utilities.html#g-stat" title="g_stat"><code class="function">g_stat()</code></a>.
|
1413
1202
|
</p>
|
1414
1203
|
<p>
|
1415
1204
|
See your C library manual for more details about <code class="function">lstat()</code>.
|
1416
1205
|
</p>
|
1417
1206
|
<div class="variablelist"><table border="0">
|
1418
1207
|
<col align="left" valign="top">
|
1419
|
-
<tbody>
|
1420
|
-
<tr>
|
1421
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1422
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1423
|
-
</td>
|
1424
|
-
</tr>
|
1425
|
-
<tr>
|
1426
|
-
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
|
1427
|
-
<td>a pointer to a <span class="structname">stat</span> struct, which
|
1428
|
-
will be filled with the file information
|
1429
|
-
</td>
|
1430
|
-
</tr>
|
1431
|
-
<tr>
|
1208
|
+
<tbody><tr>
|
1432
1209
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1433
|
-
<td>
|
1434
|
-
|
1435
|
-
|
1436
|
-
</td>
|
1437
|
-
</tr>
|
1438
|
-
</tbody>
|
1210
|
+
<td>0 if the information was successfully retrieved, -1 if an error
|
1211
|
+
occurred</td>
|
1212
|
+
</tr></tbody>
|
1439
1213
|
</table></div>
|
1440
1214
|
<p class="since">Since 2.6</p>
|
1441
1215
|
</div>
|
1442
1216
|
<hr>
|
1443
|
-
<div class="refsect2"
|
1217
|
+
<div class="refsect2">
|
1444
1218
|
<a name="g-unlink"></a><h3>g_unlink ()</h3>
|
1445
1219
|
<pre class="programlisting"><span class="returnvalue">int</span> g_unlink (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>);</pre>
|
1446
1220
|
<p>
|
@@ -1459,24 +1233,21 @@ are open to some process, or mapped into memory.
|
|
1459
1233
|
<tbody>
|
1460
1234
|
<tr>
|
1461
1235
|
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1462
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1463
|
-
</td>
|
1236
|
+
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)</td>
|
1464
1237
|
</tr>
|
1465
1238
|
<tr>
|
1466
1239
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1467
|
-
<td>
|
1468
|
-
|
1469
|
-
|
1470
|
-
</td>
|
1240
|
+
<td>0 if the name was successfully deleted, -1 if an error
|
1241
|
+
occurred</td>
|
1471
1242
|
</tr>
|
1472
1243
|
</tbody>
|
1473
1244
|
</table></div>
|
1474
1245
|
<p class="since">Since 2.6</p>
|
1475
1246
|
</div>
|
1476
1247
|
<hr>
|
1477
|
-
<div class="refsect2"
|
1478
|
-
<a name="g-remove"></a><h3>g_remove
|
1479
|
-
<pre class="programlisting"
|
1248
|
+
<div class="refsect2">
|
1249
|
+
<a name="g-remove"></a><h3>g_remove</h3>
|
1250
|
+
<pre class="programlisting">#define g_remove</pre>
|
1480
1251
|
<p>
|
1481
1252
|
A wrapper for the POSIX <code class="function">remove()</code> function. The <code class="function">remove()</code> function
|
1482
1253
|
deletes a name from the filesystem.
|
@@ -1499,25 +1270,16 @@ set by <code class="function">rmdir()</code>.
|
|
1499
1270
|
</p>
|
1500
1271
|
<div class="variablelist"><table border="0">
|
1501
1272
|
<col align="left" valign="top">
|
1502
|
-
<tbody>
|
1503
|
-
<tr>
|
1504
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1505
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1506
|
-
</td>
|
1507
|
-
</tr>
|
1508
|
-
<tr>
|
1273
|
+
<tbody><tr>
|
1509
1274
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1510
|
-
<td>
|
1511
|
-
|
1512
|
-
|
1513
|
-
</td>
|
1514
|
-
</tr>
|
1515
|
-
</tbody>
|
1275
|
+
<td>0 if the file was successfully removed, -1 if an error
|
1276
|
+
occurred</td>
|
1277
|
+
</tr></tbody>
|
1516
1278
|
</table></div>
|
1517
1279
|
<p class="since">Since 2.6</p>
|
1518
1280
|
</div>
|
1519
1281
|
<hr>
|
1520
|
-
<div class="refsect2"
|
1282
|
+
<div class="refsect2">
|
1521
1283
|
<a name="g-rmdir"></a><h3>g_rmdir ()</h3>
|
1522
1284
|
<pre class="programlisting"><span class="returnvalue">int</span> g_rmdir (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>);</pre>
|
1523
1285
|
<p>
|
@@ -1533,25 +1295,21 @@ on your system.
|
|
1533
1295
|
<tbody>
|
1534
1296
|
<tr>
|
1535
1297
|
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1536
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1537
|
-
</td>
|
1298
|
+
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)</td>
|
1538
1299
|
</tr>
|
1539
1300
|
<tr>
|
1540
1301
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1541
|
-
<td>
|
1542
|
-
|
1543
|
-
|
1544
|
-
</td>
|
1302
|
+
<td>0 if the directory was successfully removed, -1 if an error
|
1303
|
+
occurred</td>
|
1545
1304
|
</tr>
|
1546
1305
|
</tbody>
|
1547
1306
|
</table></div>
|
1548
1307
|
<p class="since">Since 2.6</p>
|
1549
1308
|
</div>
|
1550
1309
|
<hr>
|
1551
|
-
<div class="refsect2"
|
1552
|
-
<a name="g-fopen"></a><h3>g_fopen
|
1553
|
-
<pre class="programlisting"
|
1554
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *mode</code></em>);</pre>
|
1310
|
+
<div class="refsect2">
|
1311
|
+
<a name="g-fopen"></a><h3>g_fopen</h3>
|
1312
|
+
<pre class="programlisting">#define g_fopen</pre>
|
1555
1313
|
<p>
|
1556
1314
|
A wrapper for the stdio <code class="function">fopen()</code> function. The <code class="function">fopen()</code> function
|
1557
1315
|
opens a file and associates a new stream with it.
|
@@ -1570,35 +1328,18 @@ See your C library manual for more details about <code class="function">fopen()<
|
|
1570
1328
|
</p>
|
1571
1329
|
<div class="variablelist"><table border="0">
|
1572
1330
|
<col align="left" valign="top">
|
1573
|
-
<tbody>
|
1574
|
-
<tr>
|
1575
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1576
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1577
|
-
</td>
|
1578
|
-
</tr>
|
1579
|
-
<tr>
|
1580
|
-
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
1581
|
-
<td>a string describing the mode in which the file should be
|
1582
|
-
opened
|
1583
|
-
</td>
|
1584
|
-
</tr>
|
1585
|
-
<tr>
|
1331
|
+
<tbody><tr>
|
1586
1332
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1587
|
-
<td>
|
1588
|
-
|
1589
|
-
|
1590
|
-
</td>
|
1591
|
-
</tr>
|
1592
|
-
</tbody>
|
1333
|
+
<td>A <span class="type">FILE</span> pointer if the file was successfully
|
1334
|
+
opened, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if an error occurred</td>
|
1335
|
+
</tr></tbody>
|
1593
1336
|
</table></div>
|
1594
1337
|
<p class="since">Since 2.6</p>
|
1595
1338
|
</div>
|
1596
1339
|
<hr>
|
1597
|
-
<div class="refsect2"
|
1598
|
-
<a name="g-freopen"></a><h3>g_freopen
|
1599
|
-
<pre class="programlisting"
|
1600
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *mode</code></em>,
|
1601
|
-
<em class="parameter"><code><span class="type">FILE</span> *stream</code></em>);</pre>
|
1340
|
+
<div class="refsect2">
|
1341
|
+
<a name="g-freopen"></a><h3>g_freopen</h3>
|
1342
|
+
<pre class="programlisting">#define g_freopen</pre>
|
1602
1343
|
<p>
|
1603
1344
|
A wrapper for the POSIX <code class="function">freopen()</code> function. The <code class="function">freopen()</code> function
|
1604
1345
|
opens a file and associates it with an existing stream.
|
@@ -1608,39 +1349,18 @@ See your C library manual for more details about <code class="function">freopen(
|
|
1608
1349
|
</p>
|
1609
1350
|
<div class="variablelist"><table border="0">
|
1610
1351
|
<col align="left" valign="top">
|
1611
|
-
<tbody>
|
1612
|
-
<tr>
|
1613
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1614
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1615
|
-
</td>
|
1616
|
-
</tr>
|
1617
|
-
<tr>
|
1618
|
-
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
1619
|
-
<td>a string describing the mode in which the file should be
|
1620
|
-
opened
|
1621
|
-
</td>
|
1622
|
-
</tr>
|
1623
|
-
<tr>
|
1624
|
-
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
|
1625
|
-
<td>an existing stream which will be reused, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
1626
|
-
</td>
|
1627
|
-
</tr>
|
1628
|
-
<tr>
|
1352
|
+
<tbody><tr>
|
1629
1353
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1630
|
-
<td>
|
1631
|
-
|
1632
|
-
|
1633
|
-
</td>
|
1634
|
-
</tr>
|
1635
|
-
</tbody>
|
1354
|
+
<td>A <span class="type">FILE</span> pointer if the file was successfully
|
1355
|
+
opened, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if an error occurred.</td>
|
1356
|
+
</tr></tbody>
|
1636
1357
|
</table></div>
|
1637
1358
|
<p class="since">Since 2.6</p>
|
1638
1359
|
</div>
|
1639
1360
|
<hr>
|
1640
|
-
<div class="refsect2"
|
1641
|
-
<a name="g-chmod"></a><h3>g_chmod
|
1642
|
-
<pre class="programlisting"
|
1643
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
1361
|
+
<div class="refsect2">
|
1362
|
+
<a name="g-chmod"></a><h3>g_chmod</h3>
|
1363
|
+
<pre class="programlisting">#define g_chmod</pre>
|
1644
1364
|
<p>
|
1645
1365
|
A wrapper for the POSIX <code class="function">chmod()</code> function. The <code class="function">chmod()</code> function is
|
1646
1366
|
used to set the permissions of a file system object.
|
@@ -1657,29 +1377,15 @@ See your C library manual for more details about <code class="function">chmod()<
|
|
1657
1377
|
</p>
|
1658
1378
|
<div class="variablelist"><table border="0">
|
1659
1379
|
<col align="left" valign="top">
|
1660
|
-
<tbody>
|
1661
|
-
<tr>
|
1662
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1663
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1664
|
-
</td>
|
1665
|
-
</tr>
|
1666
|
-
<tr>
|
1667
|
-
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
1668
|
-
<td>as in <code class="function">chmod()</code>
|
1669
|
-
</td>
|
1670
|
-
</tr>
|
1671
|
-
<tr>
|
1380
|
+
<tbody><tr>
|
1672
1381
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1673
|
-
<td>
|
1674
|
-
|
1675
|
-
</td>
|
1676
|
-
</tr>
|
1677
|
-
</tbody>
|
1382
|
+
<td>zero if the operation succeeded, -1 on error.</td>
|
1383
|
+
</tr></tbody>
|
1678
1384
|
</table></div>
|
1679
1385
|
<p class="since">Since 2.8</p>
|
1680
1386
|
</div>
|
1681
1387
|
<hr>
|
1682
|
-
<div class="refsect2"
|
1388
|
+
<div class="refsect2">
|
1683
1389
|
<a name="g-access"></a><h3>g_access ()</h3>
|
1684
1390
|
<pre class="programlisting"><span class="returnvalue">int</span> g_access (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
1685
1391
|
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
@@ -1704,8 +1410,7 @@ See your C library manual for more details about <code class="function">access()
|
|
1704
1410
|
<tbody>
|
1705
1411
|
<tr>
|
1706
1412
|
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1707
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1708
|
-
</td>
|
1413
|
+
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)</td>
|
1709
1414
|
</tr>
|
1710
1415
|
<tr>
|
1711
1416
|
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
@@ -1714,21 +1419,18 @@ See your C library manual for more details about <code class="function">access()
|
|
1714
1419
|
</tr>
|
1715
1420
|
<tr>
|
1716
1421
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1717
|
-
<td>
|
1422
|
+
<td>zero if the pathname refers to an existing file system
|
1718
1423
|
object that has all the tested permissions, or -1 otherwise or on
|
1719
|
-
error
|
1720
|
-
|
1721
|
-
</td>
|
1424
|
+
error.</td>
|
1722
1425
|
</tr>
|
1723
1426
|
</tbody>
|
1724
1427
|
</table></div>
|
1725
1428
|
<p class="since">Since 2.8</p>
|
1726
1429
|
</div>
|
1727
1430
|
<hr>
|
1728
|
-
<div class="refsect2"
|
1729
|
-
<a name="g-creat"></a><h3>g_creat
|
1730
|
-
<pre class="programlisting"
|
1731
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
1431
|
+
<div class="refsect2">
|
1432
|
+
<a name="g-creat"></a><h3>g_creat</h3>
|
1433
|
+
<pre class="programlisting">#define g_creat</pre>
|
1732
1434
|
<p>
|
1733
1435
|
A wrapper for the POSIX <code class="function">creat()</code> function. The <code class="function">creat()</code> function is
|
1734
1436
|
used to convert a pathname into a file descriptor, creating a file
|
@@ -1755,30 +1457,16 @@ See your C library manual for more details about <code class="function">creat()<
|
|
1755
1457
|
</p>
|
1756
1458
|
<div class="variablelist"><table border="0">
|
1757
1459
|
<col align="left" valign="top">
|
1758
|
-
<tbody>
|
1759
|
-
<tr>
|
1760
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1761
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1762
|
-
</td>
|
1763
|
-
</tr>
|
1764
|
-
<tr>
|
1765
|
-
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
1766
|
-
<td>as in <code class="function">creat()</code>
|
1767
|
-
</td>
|
1768
|
-
</tr>
|
1769
|
-
<tr>
|
1460
|
+
<tbody><tr>
|
1770
1461
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1771
|
-
<td>
|
1772
|
-
return value can be used exactly like the return value from <code class="function">creat()</code
|
1773
|
-
|
1774
|
-
</td>
|
1775
|
-
</tr>
|
1776
|
-
</tbody>
|
1462
|
+
<td>a new file descriptor, or -1 if an error occurred. The
|
1463
|
+
return value can be used exactly like the return value from <code class="function">creat()</code>.</td>
|
1464
|
+
</tr></tbody>
|
1777
1465
|
</table></div>
|
1778
1466
|
<p class="since">Since 2.8</p>
|
1779
1467
|
</div>
|
1780
1468
|
<hr>
|
1781
|
-
<div class="refsect2"
|
1469
|
+
<div class="refsect2">
|
1782
1470
|
<a name="g-chdir"></a><h3>g_chdir ()</h3>
|
1783
1471
|
<pre class="programlisting"><span class="returnvalue">int</span> g_chdir (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *path</code></em>);</pre>
|
1784
1472
|
<p>
|
@@ -1793,24 +1481,20 @@ See your C library manual for more details about <code class="function">chdir()<
|
|
1793
1481
|
<tbody>
|
1794
1482
|
<tr>
|
1795
1483
|
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
|
1796
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1797
|
-
</td>
|
1484
|
+
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)</td>
|
1798
1485
|
</tr>
|
1799
1486
|
<tr>
|
1800
1487
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1801
|
-
<td>
|
1802
|
-
|
1803
|
-
</td>
|
1488
|
+
<td>0 on success, -1 if an error occurred.</td>
|
1804
1489
|
</tr>
|
1805
1490
|
</tbody>
|
1806
1491
|
</table></div>
|
1807
1492
|
<p class="since">Since 2.8</p>
|
1808
1493
|
</div>
|
1809
1494
|
<hr>
|
1810
|
-
<div class="refsect2"
|
1811
|
-
<a name="g-utime"></a><h3>g_utime
|
1812
|
-
<pre class="programlisting"
|
1813
|
-
<em class="parameter"><code><span class="type">struct utimbuf</span> *utb</code></em>);</pre>
|
1495
|
+
<div class="refsect2">
|
1496
|
+
<a name="g-utime"></a><h3>g_utime</h3>
|
1497
|
+
<pre class="programlisting">#define g_utime</pre>
|
1814
1498
|
<p>
|
1815
1499
|
A wrapper for the POSIX <code class="function">utime()</code> function. The <code class="function">utime()</code> function
|
1816
1500
|
sets the access and modification timestamps of a file.
|
@@ -1821,25 +1505,11 @@ on your system.
|
|
1821
1505
|
</p>
|
1822
1506
|
<div class="variablelist"><table border="0">
|
1823
1507
|
<col align="left" valign="top">
|
1824
|
-
<tbody>
|
1825
|
-
<tr>
|
1826
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
1827
|
-
<td>a pathname in the GLib file name encoding (UTF-8 on Windows)
|
1828
|
-
</td>
|
1829
|
-
</tr>
|
1830
|
-
<tr>
|
1831
|
-
<td><p><span class="term"><em class="parameter"><code>utb</code></em> :</span></p></td>
|
1832
|
-
<td>a pointer to a struct utimbuf.
|
1833
|
-
</td>
|
1834
|
-
</tr>
|
1835
|
-
<tr>
|
1508
|
+
<tbody><tr>
|
1836
1509
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1837
|
-
<td>
|
1838
|
-
|
1839
|
-
|
1840
|
-
</td>
|
1841
|
-
</tr>
|
1842
|
-
</tbody>
|
1510
|
+
<td>0 if the operation was successful, -1 if an error
|
1511
|
+
occurred</td>
|
1512
|
+
</tr></tbody>
|
1843
1513
|
</table></div>
|
1844
1514
|
<p class="since">Since 2.18</p>
|
1845
1515
|
</div>
|
@@ -1847,6 +1517,6 @@ on your system.
|
|
1847
1517
|
</div>
|
1848
1518
|
<div class="footer">
|
1849
1519
|
<hr>
|
1850
|
-
Generated by GTK-Doc V1.
|
1520
|
+
Generated by GTK-Doc V1.16.1</div>
|
1851
1521
|
</body>
|
1852
1522
|
</html>
|