gio2 0.90.5-x86-mingw32 → 0.90.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +41 -0
- data/Rakefile +9 -70
- data/ext/gio2/extconf.rb +9 -9
- data/ext/gio2/gasyncinitable.c +0 -1
- data/ext/gio2/gbufferedinputstream.c +0 -19
- data/ext/gio2/gbufferedoutputstream.c +0 -34
- data/ext/gio2/gcharsetconverter.c +0 -17
- data/ext/gio2/gcontenttype.c +1 -8
- data/ext/gio2/gconverterinputstream.c +0 -7
- data/ext/gio2/gconverteroutputstream.c +0 -7
- data/ext/gio2/gdatainputstream.c +34 -57
- data/ext/gio2/gdataoutputstream.c +0 -18
- data/ext/gio2/gdesktopappinfo.c +0 -2
- data/ext/gio2/gemblem.c +0 -19
- data/ext/gio2/gfile.c +4 -6
- data/ext/gio2/gfileattribute.c +3 -155
- data/ext/gio2/gfileattributeinfo.c +89 -0
- data/ext/gio2/gfileattributeinfolist.c +109 -0
- data/ext/gio2/gfileenumerator.c +0 -2
- data/ext/gio2/gfileicon.c +0 -7
- data/ext/gio2/gfileinfo.c +4 -11
- data/ext/gio2/gfileinputstream.c +0 -2
- data/ext/gio2/gfileiostream.c +0 -2
- data/ext/gio2/gfilemonitor.c +0 -19
- data/ext/gio2/gfileoutputstream.c +1 -5
- data/ext/gio2/gfilterinputstream.c +1 -30
- data/ext/gio2/gfilteroutputstream.c +1 -30
- data/ext/gio2/gicon.c +0 -2
- data/ext/gio2/ginetaddress.c +0 -72
- data/ext/gio2/ginetsocketaddress.c +0 -16
- data/ext/gio2/ginputstream.c +0 -2
- data/ext/gio2/gio2.c +11 -1
- data/ext/gio2/gio2.h +9 -1
- data/ext/gio2/gioerror.c +4 -1
- data/ext/gio2/giomodule.c +2 -2
- data/ext/gio2/gioscheduler.c +4 -6
- data/ext/gio2/giostream.c +0 -23
- data/ext/gio2/gloadableicon.c +0 -1
- data/ext/gio2/gmemoryoutputstream.c +0 -24
- data/ext/gio2/gmount.c +1 -0
- data/ext/gio2/gmountoperation.c +1 -103
- data/ext/gio2/gnetworkaddress.c +0 -14
- data/ext/gio2/gnetworkservice.c +0 -21
- data/ext/gio2/goutputstream.c +8 -18
- data/ext/gio2/gresolver.c +0 -2
- data/ext/gio2/gsocket.c +2 -80
- data/ext/gio2/gsocketaddress.c +1 -13
- data/ext/gio2/gsocketclient.c +0 -68
- data/ext/gio2/gsocketconnection.c +1 -8
- data/ext/gio2/gsocketcontrolmessage.c +0 -2
- data/ext/gio2/gsocketlistener.c +27 -21
- data/ext/gio2/gtcpconnection.c +1 -22
- data/ext/gio2/gthreadedsocketservice.c +6 -5
- data/ext/gio2/gunixfdlist.c +1 -1
- data/ext/gio2/gunixfdmessage.c +0 -9
- data/ext/gio2/gunixinputstream.c +0 -24
- data/ext/gio2/gunixmounts.c +1 -4
- data/ext/gio2/gunixoutputstream.c +0 -24
- data/ext/gio2/gunixsocketaddress.c +5 -17
- data/ext/gio2/gvfs.c +0 -2
- data/ext/gio2/gvolumemonitor.c +0 -2
- data/ext/gio2/gzlibcompressor.c +3 -0
- data/ext/gio2/util.c +3 -0
- data/lib/1.8/gio2.so +0 -0
- data/lib/1.9/gio2.so +0 -0
- data/lib/gio2.rb +19 -1
- data/test/load-test.rb +14 -0
- data/test/test_bufferedinputstream.rb +2 -0
- data/test/test_charsetconverter.rb +2 -0
- data/test/test_datainputstream.rb +7 -0
- data/test/test_fileenumerator.rb +8 -0
- data/test/test_filemonitor.rb +2 -0
- data/test/test_inetaddress.rb +8 -0
- metadata +90 -835
- data/vendor/local/bin/envsubst.exe +0 -0
- data/vendor/local/bin/gettext.exe +0 -0
- data/vendor/local/bin/gettext.sh +0 -123
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +0 -188
- data/vendor/local/bin/glib-mkenums +0 -537
- 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/intl.dll +0 -0
- data/vendor/local/bin/libasprintf-0.dll +0 -0
- data/vendor/local/bin/libgcc_s_dw2-1.dll +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/bin/ngettext.exe +0 -0
- data/vendor/local/include/autosprintf.h +0 -66
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +0 -236
- data/vendor/local/include/glib-2.0/gio/gasyncinitable.h +0 -119
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gbufferedinputstream.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gbufferedoutputstream.h +0 -81
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +0 -103
- data/vendor/local/include/glib-2.0/gio/gcharsetconverter.h +0 -60
- data/vendor/local/include/glib-2.0/gio/gcontenttype.h +0 -57
- data/vendor/local/include/glib-2.0/gio/gconverter.h +0 -95
- data/vendor/local/include/glib-2.0/gio/gconverterinputstream.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gconverteroutputstream.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gcredentials.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +0 -150
- data/vendor/local/include/glib-2.0/gio/gdataoutputstream.h +0 -115
- data/vendor/local/include/glib-2.0/gio/gdbusaddress.h +0 -58
- data/vendor/local/include/glib-2.0/gio/gdbusauthobserver.h +0 -46
- data/vendor/local/include/glib-2.0/gio/gdbusconnection.h +0 -562
- data/vendor/local/include/glib-2.0/gio/gdbuserror.h +0 -100
- data/vendor/local/include/glib-2.0/gio/gdbusintrospection.h +0 -286
- data/vendor/local/include/glib-2.0/gio/gdbusmessage.h +0 -149
- data/vendor/local/include/glib-2.0/gio/gdbusmethodinvocation.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gdbusnameowning.h +0 -112
- data/vendor/local/include/glib-2.0/gio/gdbusnamewatching.h +0 -94
- data/vendor/local/include/glib-2.0/gio/gdbusproxy.h +0 -167
- data/vendor/local/include/glib-2.0/gio/gdbusserver.h +0 -54
- data/vendor/local/include/glib-2.0/gio/gdbusutils.h +0 -44
- data/vendor/local/include/glib-2.0/gio/gdrive.h +0 -225
- data/vendor/local/include/glib-2.0/gio/gemblem.h +0 -58
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +0 -62
- data/vendor/local/include/glib-2.0/gio/gfile.h +0 -1017
- data/vendor/local/include/glib-2.0/gio/gfileattribute.h +0 -77
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +0 -132
- data/vendor/local/include/glib-2.0/gio/gfileicon.h +0 -56
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +0 -952
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +0 -112
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +0 -118
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +0 -95
- data/vendor/local/include/glib-2.0/gio/gfilenamecompleter.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +0 -119
- data/vendor/local/include/glib-2.0/gio/gfilterinputstream.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gfilteroutputstream.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gicon.h +0 -91
- data/vendor/local/include/glib-2.0/gio/ginetaddress.h +0 -103
- data/vendor/local/include/glib-2.0/gio/ginetsocketaddress.h +0 -69
- data/vendor/local/include/glib-2.0/gio/ginitable.h +0 -96
- data/vendor/local/include/glib-2.0/gio/ginputstream.h +0 -172
- data/vendor/local/include/glib-2.0/gio/gio.h +0 -122
- data/vendor/local/include/glib-2.0/gio/gioenums.h +0 -1221
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +0 -121
- data/vendor/local/include/glib-2.0/gio/gioerror.h +0 -52
- data/vendor/local/include/glib-2.0/gio/giomodule.h +0 -132
- data/vendor/local/include/glib-2.0/gio/gioscheduler.h +0 -52
- data/vendor/local/include/glib-2.0/gio/giostream.h +0 -112
- data/vendor/local/include/glib-2.0/gio/giotypes.h +0 -375
- data/vendor/local/include/glib-2.0/gio/gloadableicon.h +0 -97
- data/vendor/local/include/glib-2.0/gio/gmemoryinputstream.h +0 -82
- data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +0 -98
- data/vendor/local/include/glib-2.0/gio/gmount.h +0 -242
- data/vendor/local/include/glib-2.0/gio/gmountoperation.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gnativevolumemonitor.h +0 -62
- data/vendor/local/include/glib-2.0/gio/gnetworkaddress.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gnetworkservice.h +0 -71
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +0 -207
- data/vendor/local/include/glib-2.0/gio/gpermission.h +0 -118
- data/vendor/local/include/glib-2.0/gio/gproxy.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gproxyaddress.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gproxyaddressenumerator.h +0 -75
- data/vendor/local/include/glib-2.0/gio/gproxyresolver.h +0 -96
- data/vendor/local/include/glib-2.0/gio/gresolver.h +0 -167
- data/vendor/local/include/glib-2.0/gio/gseekable.h +0 -99
- data/vendor/local/include/glib-2.0/gio/gsettings.h +0 -258
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +0 -138
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +0 -125
- data/vendor/local/include/glib-2.0/gio/gsimplepermission.h +0 -45
- data/vendor/local/include/glib-2.0/gio/gsocket.h +0 -194
- data/vendor/local/include/glib-2.0/gio/gsocketaddress.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gsocketaddressenumerator.h +0 -89
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +0 -152
- data/vendor/local/include/glib-2.0/gio/gsocketconnectable.h +0 -74
- data/vendor/local/include/glib-2.0/gio/gsocketconnection.h +0 -91
- data/vendor/local/include/glib-2.0/gio/gsocketcontrolmessage.h +0 -105
- data/vendor/local/include/glib-2.0/gio/gsocketlistener.h +0 -138
- data/vendor/local/include/glib-2.0/gio/gsocketservice.h +0 -88
- data/vendor/local/include/glib-2.0/gio/gsrvtarget.h +0 -52
- data/vendor/local/include/glib-2.0/gio/gtcpconnection.h +0 -68
- data/vendor/local/include/glib-2.0/gio/gthemedicon.h +0 -63
- data/vendor/local/include/glib-2.0/gio/gthreadedsocketservice.h +0 -81
- data/vendor/local/include/glib-2.0/gio/gvfs.h +0 -125
- data/vendor/local/include/glib-2.0/gio/gvolume.h +0 -211
- data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +0 -150
- data/vendor/local/include/glib-2.0/gio/gzlibcompressor.h +0 -60
- data/vendor/local/include/glib-2.0/gio/gzlibdecompressor.h +0 -57
- data/vendor/local/include/glib-2.0/glib-object.h +0 -42
- data/vendor/local/include/glib-2.0/glib.h +0 -99
- data/vendor/local/include/glib-2.0/glib/galloca.h +0 -110
- data/vendor/local/include/glib-2.0/glib/garray.h +0 -179
- data/vendor/local/include/glib-2.0/glib/gasyncqueue.h +0 -120
- data/vendor/local/include/glib-2.0/glib/gatomic.h +0 -105
- data/vendor/local/include/glib-2.0/glib/gbacktrace.h +0 -68
- data/vendor/local/include/glib-2.0/glib/gbase64.h +0 -57
- data/vendor/local/include/glib-2.0/glib/gbitlock.h +0 -43
- data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +0 -215
- data/vendor/local/include/glib-2.0/glib/gcache.h +0 -69
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +0 -86
- data/vendor/local/include/glib-2.0/glib/gcompletion.h +0 -81
- data/vendor/local/include/glib-2.0/glib/gconvert.h +0 -162
- data/vendor/local/include/glib-2.0/glib/gdataset.h +0 -122
- data/vendor/local/include/glib-2.0/glib/gdate.h +0 -263
- data/vendor/local/include/glib-2.0/glib/gdatetime.h +0 -217
- data/vendor/local/include/glib-2.0/glib/gdir.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gerror.h +0 -98
- data/vendor/local/include/glib-2.0/glib/gfileutils.h +0 -128
- data/vendor/local/include/glib-2.0/glib/ghash.h +0 -166
- data/vendor/local/include/glib-2.0/glib/ghook.h +0 -181
- data/vendor/local/include/glib-2.0/glib/ghostutils.h +0 -40
- data/vendor/local/include/glib-2.0/glib/gi18n-lib.h +0 -38
- data/vendor/local/include/glib-2.0/glib/gi18n.h +0 -34
- data/vendor/local/include/glib-2.0/glib/giochannel.h +0 -366
- data/vendor/local/include/glib-2.0/glib/gkeyfile.h +0 -266
- data/vendor/local/include/glib-2.0/glib/glist.h +0 -120
- data/vendor/local/include/glib-2.0/glib/gmacros.h +0 -284
- data/vendor/local/include/glib-2.0/glib/gmain.h +0 -531
- data/vendor/local/include/glib-2.0/glib/gmappedfile.h +0 -49
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +0 -163
- data/vendor/local/include/glib-2.0/glib/gmem.h +0 -309
- data/vendor/local/include/glib-2.0/glib/gmessages.h +0 -343
- data/vendor/local/include/glib-2.0/glib/gnode.h +0 -290
- data/vendor/local/include/glib-2.0/glib/goption.h +0 -370
- data/vendor/local/include/glib-2.0/glib/gpattern.h +0 -49
- data/vendor/local/include/glib-2.0/glib/gpoll.h +0 -117
- data/vendor/local/include/glib-2.0/glib/gprimes.h +0 -51
- data/vendor/local/include/glib-2.0/glib/gprintf.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gqsort.h +0 -46
- data/vendor/local/include/glib-2.0/glib/gquark.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gqueue.h +0 -127
- data/vendor/local/include/glib-2.0/glib/grand.h +0 -85
- data/vendor/local/include/glib-2.0/glib/gregex.h +0 -471
- data/vendor/local/include/glib-2.0/glib/grel.h +0 -101
- data/vendor/local/include/glib-2.0/glib/gscanner.h +0 -278
- data/vendor/local/include/glib-2.0/glib/gsequence.h +0 -128
- data/vendor/local/include/glib-2.0/glib/gshell.h +0 -55
- data/vendor/local/include/glib-2.0/glib/gslice.h +0 -86
- data/vendor/local/include/glib-2.0/glib/gslist.h +0 -114
- data/vendor/local/include/glib-2.0/glib/gspawn.h +0 -139
- data/vendor/local/include/glib-2.0/glib/gstdio.h +0 -147
- data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +0 -269
- data/vendor/local/include/glib-2.0/glib/gstring.h +0 -178
- data/vendor/local/include/glib-2.0/glib/gtestutils.h +0 -297
- data/vendor/local/include/glib-2.0/glib/gthread.h +0 -407
- data/vendor/local/include/glib-2.0/glib/gthreadpool.h +0 -114
- data/vendor/local/include/glib-2.0/glib/gtimer.h +0 -65
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +0 -44
- data/vendor/local/include/glib-2.0/glib/gtree.h +0 -91
- data/vendor/local/include/glib-2.0/glib/gtypes.h +0 -451
- data/vendor/local/include/glib-2.0/glib/gunicode.h +0 -421
- data/vendor/local/include/glib-2.0/glib/gurifuncs.h +0 -81
- data/vendor/local/include/glib-2.0/glib/gutils.h +0 -490
- data/vendor/local/include/glib-2.0/glib/gvariant.h +0 -248
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +0 -334
- data/vendor/local/include/glib-2.0/glib/gwin32.h +0 -114
- data/vendor/local/include/glib-2.0/gmodule.h +0 -101
- data/vendor/local/include/glib-2.0/gobject/gbinding.h +0 -136
- data/vendor/local/include/glib-2.0/gobject/gboxed.h +0 -248
- data/vendor/local/include/glib-2.0/gobject/gclosure.h +0 -251
- data/vendor/local/include/glib-2.0/gobject/genums.h +0 -261
- data/vendor/local/include/glib-2.0/gobject/gmarshal.h +0 -186
- data/vendor/local/include/glib-2.0/gobject/gobject.h +0 -567
- data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +0 -193
- data/vendor/local/include/glib-2.0/gobject/gparam.h +0 -415
- data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +0 -1137
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +0 -509
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +0 -51
- data/vendor/local/include/glib-2.0/gobject/gtype.h +0 -1736
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +0 -263
- data/vendor/local/include/glib-2.0/gobject/gtypeplugin.h +0 -134
- data/vendor/local/include/glib-2.0/gobject/gvalue.h +0 -159
- data/vendor/local/include/glib-2.0/gobject/gvaluearray.h +0 -77
- data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +0 -227
- data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +0 -260
- data/vendor/local/include/libintl.h +0 -464
- data/vendor/local/lib/GNU.Gettext.dll +0 -0
- data/vendor/local/lib/gio-2.0.def +0 -1143
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +0 -1452
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +0 -284
- data/vendor/local/lib/gmodule-2.0.def +0 -11
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +0 -370
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.def +0 -3
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/intl.lib +0 -0
- data/vendor/local/lib/libasprintf.dll.a +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/libintl.def +0 -31
- data/vendor/local/lib/libintl.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +0 -15
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +0 -11
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +0 -15
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +0 -14
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +0 -14
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +0 -11
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +0 -11
- data/vendor/local/manifest/gettext-runtime-dev_0.18.1.1-2_win32.mft +0 -81
- data/vendor/local/manifest/gettext-runtime_0.18.1.1-2_win32.mft +0 -3
- data/vendor/local/manifest/glib-dev_2.26.0-2_win32.mft +0 -570
- data/vendor/local/manifest/glib_2.26.0-2_win32.mft +0 -102
- data/vendor/local/share/aclocal/glib-2.0.m4 +0 -211
- data/vendor/local/share/aclocal/glib-gettext.m4 +0 -432
- data/vendor/local/share/doc/gettext/bind_textdomain_codeset.3.html +0 -165
- data/vendor/local/share/doc/gettext/bindtextdomain.3.html +0 -160
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext.html +0 -8
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceManager.html +0 -305
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceSet.html +0 -356
- data/vendor/local/share/doc/gettext/csharpdoc/begin.html +0 -11
- data/vendor/local/share/doc/gettext/csharpdoc/index.html +0 -10
- data/vendor/local/share/doc/gettext/csharpdoc/namespaces.html +0 -6
- data/vendor/local/share/doc/gettext/envsubst.1.html +0 -213
- data/vendor/local/share/doc/gettext/gettext.1.html +0 -266
- data/vendor/local/share/doc/gettext/gettext.3.html +0 -186
- data/vendor/local/share/doc/gettext/ngettext.1.html +0 -280
- data/vendor/local/share/doc/gettext/ngettext.3.html +0 -143
- data/vendor/local/share/doc/gettext/textdomain.3.html +0 -150
- data/vendor/local/share/doc/glib-2.26.0/COPYING +0 -482
- data/vendor/local/share/doc/glib-dev-2.26.0/COPYING +0 -482
- data/vendor/local/share/doc/libasprintf/autosprintf_all.html +0 -174
- data/vendor/local/share/glib-2.0/gdb/glib.py +0 -249
- data/vendor/local/share/glib-2.0/gdb/gobject.py +0 -305
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +0 -111
- data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +0 -279
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +0 -60
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +0 -1403
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +0 -733
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +0 -343
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +0 -563
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +0 -291
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +0 -620
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +0 -245
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +0 -423
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +0 -398
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +0 -254
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +0 -6211
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +0 -1833
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +0 -618
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +0 -2050
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +0 -1124
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +0 -1215
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +0 -540
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +0 -1416
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +0 -272
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +0 -206
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +0 -7462
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +0 -120
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +0 -516
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +0 -312
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +0 -155
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +0 -3144
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +0 -262
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +0 -353
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +0 -188
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +0 -189
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +0 -261
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +0 -479
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +0 -331
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +0 -717
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +0 -196
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +0 -388
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +0 -808
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +0 -185
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +0 -393
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +0 -1465
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +0 -848
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +0 -343
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +0 -311
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +0 -1012
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +0 -560
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +0 -312
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +0 -348
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +0 -787
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +0 -350
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +0 -2424
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +0 -609
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +0 -1193
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +0 -107
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +0 -2438
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +0 -297
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +0 -1292
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +0 -513
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +0 -337
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +0 -275
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +0 -745
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +0 -258
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +0 -165
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +0 -377
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +0 -197
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +0 -298
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +0 -222
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +0 -389
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +0 -288
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +0 -237
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +0 -237
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +0 -491
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +0 -274
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +0 -1028
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +0 -705
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +0 -252
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +0 -170
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +0 -65
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +0 -153
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +0 -155
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +0 -1084
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +0 -223
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +0 -1598
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +0 -112
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +0 -6250
- data/vendor/local/share/gtk-doc/html/gio/async.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +0 -207
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +0 -180
- 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
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +0 -57
- data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +0 -59
- data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +0 -46
- data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +0 -48
- data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +0 -277
- data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +0 -95
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +0 -70
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +0 -130
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +0 -202
- data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +0 -96
- data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +0 -823
- data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +0 -828
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +0 -109
- data/vendor/local/share/gtk-doc/html/gio/extending.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +0 -38
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +0 -33
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +0 -59
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +0 -243
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +0 -316
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +0 -1117
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +0 -216
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +0 -339
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +0 -473
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +0 -391
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +0 -908
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +0 -933
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +0 -409
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +0 -297
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +0 -313
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +0 -736
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +0 -909
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +0 -666
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +0 -123
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +0 -53
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +0 -1736
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +0 -2006
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +0 -102
- data/vendor/local/share/gtk-doc/html/gio/gvfs-overview.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +0 -53
- data/vendor/local/share/gtk-doc/html/gio/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/icons.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/index.html +0 -435
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +0 -2513
- data/vendor/local/share/gtk-doc/html/gio/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +0 -62
- data/vendor/local/share/gtk-doc/html/gio/networking.html +0 -69
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +0 -39
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +0 -39
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +0 -390
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/settings.html +0 -38
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +0 -92
- data/vendor/local/share/gtk-doc/html/gio/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/gio/tools.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/types.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/utils.html +0 -33
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +0 -47
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +0 -77
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +0 -180
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +0 -312
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +0 -559
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +0 -362
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +0 -102
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +0 -124
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +0 -83
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +0 -194
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +0 -420
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +0 -359
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +0 -396
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +0 -417
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +0 -158
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +0 -419
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +0 -8214
- data/vendor/local/share/gtk-doc/html/glib/file-name-encodings.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +0 -893
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +0 -818
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +0 -414
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +0 -466
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +0 -802
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +0 -372
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +0 -500
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +0 -2056
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +0 -560
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +0 -1686
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +0 -398
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +0 -1094
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +0 -1671
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +0 -460
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +0 -528
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +0 -2045
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +0 -1278
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +0 -1406
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +0 -548
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +0 -1026
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +0 -1852
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +0 -2201
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +0 -239
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +0 -4278
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +0 -1864
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +0 -295
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +0 -1512
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +0 -1367
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +0 -229
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +0 -692
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +0 -2196
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +0 -2740
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +0 -612
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +0 -1451
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +0 -389
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +0 -1033
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +0 -141
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +0 -706
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +0 -510
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +0 -748
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +0 -1105
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +0 -1552
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +0 -1468
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +0 -194
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +0 -2745
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +0 -752
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +0 -269
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +0 -578
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +0 -532
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +0 -1353
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +0 -238
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +0 -1282
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +0 -1213
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +0 -924
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +0 -470
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +0 -301
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +0 -2960
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +0 -1291
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +0 -1805
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +0 -3478
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +0 -606
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +0 -3411
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +0 -245
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +0 -188
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +0 -263
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +0 -400
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +0 -3448
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +0 -253
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +0 -438
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +0 -476
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +0 -466
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +0 -159
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +0 -118
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +0 -64
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +0 -160
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +0 -120
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +0 -59
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +0 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +0 -2217
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +0 -121
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +0 -319
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +0 -118
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +0 -2183
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +0 -2671
- data/vendor/local/share/gtk-doc/html/glib/glib.html +0 -80
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +0 -72
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +0 -131
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +0 -1288
- data/vendor/local/share/gtk-doc/html/glib/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +0 -344
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +0 -2846
- data/vendor/local/share/gtk-doc/html/glib/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/mainloop-states.gif +0 -0
- data/vendor/local/share/gtk-doc/html/glib/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/glib/tools.html +0 -41
- data/vendor/local/share/gtk-doc/html/glib/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +0 -803
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +0 -710
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +0 -453
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +0 -47
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +0 -85
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +0 -51
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +0 -46
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +0 -38
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +0 -46
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +0 -73
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +0 -201
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +0 -178
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +0 -42
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +0 -42
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +0 -50
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +0 -2721
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +0 -136
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +0 -113
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +0 -293
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +0 -263
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +0 -92
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +0 -214
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +0 -361
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +0 -307
- data/vendor/local/share/gtk-doc/html/gobject/glue.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +0 -417
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +0 -2412
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +0 -847
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +0 -1433
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +0 -776
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +0 -2741
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +0 -5555
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +0 -2875
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +0 -4460
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +0 -416
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +0 -260
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +0 -234
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +0 -270
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +0 -117
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +0 -762
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +0 -801
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +0 -143
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +0 -287
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +0 -316
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +0 -76
- data/vendor/local/share/gtk-doc/html/gobject/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +0 -100
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +0 -86
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +0 -113
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +0 -122
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +0 -257
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +0 -283
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +0 -125
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +0 -167
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +0 -160
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +0 -121
- data/vendor/local/share/gtk-doc/html/gobject/index.html +0 -192
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +0 -786
- data/vendor/local/share/gtk-doc/html/gobject/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +0 -72
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +0 -80
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +0 -66
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +0 -85
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +0 -47
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +0 -377
- data/vendor/local/share/gtk-doc/html/gobject/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +0 -35
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +0 -40
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +0 -63
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +0 -43
- data/vendor/local/share/gtk-doc/html/gobject/up.png +0 -0
- data/vendor/local/share/locale/af/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/am/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en@boldquot/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/en@quot/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gettext-runtime.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/fa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hr/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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/locale.alias +0 -77
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/or/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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@ije/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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gettext-runtime.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/gettext-runtime.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/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/envsubst.1 +0 -54
- data/vendor/local/share/man/man1/gettext.1 +0 -69
- data/vendor/local/share/man/man1/glib-genmarshal.1 +0 -312
- data/vendor/local/share/man/man1/glib-mkenums.1 +0 -246
- data/vendor/local/share/man/man1/gobject-query.1 +0 -83
- data/vendor/local/share/man/man1/ngettext.1 +0 -68
- data/vendor/local/share/man/man3/bind_textdomain_codeset.3 +0 -72
- data/vendor/local/share/man/man3/bindtextdomain.3 +0 -69
- data/vendor/local/share/man/man3/dcgettext.3 +0 -1
- data/vendor/local/share/man/man3/dcngettext.3 +0 -1
- data/vendor/local/share/man/man3/dgettext.3 +0 -1
- data/vendor/local/share/man/man3/dngettext.3 +0 -1
- data/vendor/local/share/man/man3/gettext.3 +0 -99
- data/vendor/local/share/man/man3/ngettext.3 +0 -60
- data/vendor/local/share/man/man3/textdomain.3 +0 -57
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.log +0 -10423
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.sh +0 -457
- data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.log +0 -2867
- data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.sh +0 -64
@@ -1,1852 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>File Utilities</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
-
<link rel="home" href="index.html" title="GLib Reference Manual">
|
8
|
-
<link rel="up" href="glib-utilities.html" title="GLib Utilities">
|
9
|
-
<link rel="prev" href="glib-Spawning-Processes.html" title="Spawning Processes">
|
10
|
-
<link rel="next" href="glib-URI-Functions.html" title="URI Functions">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
-
<tr valign="middle">
|
17
|
-
<td><a accesskey="p" href="glib-Spawning-Processes.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
-
<td><a accesskey="u" href="glib-utilities.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
-
<th width="100%" align="center">GLib Reference Manual</th>
|
21
|
-
<td><a accesskey="n" href="glib-URI-Functions.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
-
</tr>
|
23
|
-
<tr><td colspan="5" class="shortcuts">
|
24
|
-
<a href="#glib-File-Utilities.synopsis" class="shortcut">Top</a>
|
25
|
-
|
|
26
|
-
<a href="#glib-File-Utilities.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
29
|
-
<div class="refentry">
|
30
|
-
<a name="glib-File-Utilities"></a><div class="titlepage"></div>
|
31
|
-
<div class="refnamediv"><table width="100%"><tr>
|
32
|
-
<td valign="top">
|
33
|
-
<h2><span class="refentrytitle"><a name="glib-File-Utilities.top_of_page"></a>File Utilities</span></h2>
|
34
|
-
<p>File Utilities — various file-related functions</p>
|
35
|
-
</td>
|
36
|
-
<td valign="top" align="right"></td>
|
37
|
-
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv">
|
39
|
-
<a name="glib-File-Utilities.synopsis"></a><h2>Synopsis</h2>
|
40
|
-
<pre class="synopsis">
|
41
|
-
#include <glib.h>
|
42
|
-
#include <glib/gstdio.h>
|
43
|
-
|
44
|
-
enum <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError">GFileError</a>;
|
45
|
-
#define <a class="link" href="glib-File-Utilities.html#G-FILE-ERROR:CAPS" title="G_FILE_ERROR">G_FILE_ERROR</a>
|
46
|
-
enum <a class="link" href="glib-File-Utilities.html#GFileTest" title="enum GFileTest">GFileTest</a>;
|
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
|
-
<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-get-contents" title="g_file_get_contents ()">g_file_get_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>,
|
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>);
|
52
|
-
<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
|
-
<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
|
-
<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
|
-
<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-test" title="g_file_test ()">g_file_test</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>,
|
57
|
-
<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>);
|
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>);
|
59
|
-
<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
|
-
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
|
61
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);
|
62
|
-
<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-file-open-tmp" title="g_file_open_tmp ()">g_file_open_tmp</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *tmpl</code></em>,
|
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>);
|
65
|
-
<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>);
|
67
|
-
<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
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);
|
69
|
-
|
70
|
-
<a class="link" href="glib-File-Utilities.html#GDir" title="GDir">GDir</a>;
|
71
|
-
<a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="returnvalue">GDir</span></a> * <a class="link" href="glib-File-Utilities.html#g-dir-open" title="g_dir_open ()">g_dir_open</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>,
|
72
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> flags</code></em>,
|
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>);
|
75
|
-
<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
|
-
<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
|
-
|
78
|
-
<a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile">GMappedFile</a>;
|
79
|
-
<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
|
-
<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>);
|
82
|
-
<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
|
-
<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
|
-
<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
|
-
<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
|
-
<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
|
-
|
88
|
-
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-open" title="g_open ()">g_open</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>,
|
89
|
-
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
|
90
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);
|
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>);
|
95
|
-
typedef <a class="link" href="glib-File-Utilities.html#GStatBuf" title="GStatBuf">GStatBuf</a>;
|
96
|
-
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-stat" title="g_stat ()">g_stat</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>,
|
97
|
-
<em class="parameter"><code><a class="link" href="glib-File-Utilities.html#GStatBuf" title="GStatBuf"><span class="type">GStatBuf</span></a> *buf</code></em>);
|
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>);
|
100
|
-
<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
|
-
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-remove" title="g_remove ()">g_remove</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>);
|
102
|
-
<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
|
-
<span class="returnvalue">FILE</span> * <a class="link" href="glib-File-Utilities.html#g-fopen" title="g_fopen ()">g_fopen</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>,
|
104
|
-
<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>);
|
105
|
-
<span class="returnvalue">FILE</span> * <a class="link" href="glib-File-Utilities.html#g-freopen" title="g_freopen ()">g_freopen</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>,
|
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>);
|
110
|
-
<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
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);
|
112
|
-
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-creat" title="g_creat ()">g_creat</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>,
|
113
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);
|
114
|
-
<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
|
-
<span class="returnvalue">int</span> <a class="link" href="glib-File-Utilities.html#g-utime" title="g_utime ()">g_utime</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>,
|
116
|
-
<em class="parameter"><code><span class="type">struct utimbuf</span> *utb</code></em>);
|
117
|
-
</pre>
|
118
|
-
</div>
|
119
|
-
<div class="refsect1">
|
120
|
-
<a name="glib-File-Utilities.description"></a><h2>Description</h2>
|
121
|
-
<p>
|
122
|
-
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 ()"><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>,
|
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 ()"><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
|
-
wrappers is to make it possible to handle file names with any Unicode
|
126
|
-
characters in them on Windows without having to use ifdefs and the
|
127
|
-
wide character API in the application code.
|
128
|
-
</p>
|
129
|
-
<p>
|
130
|
-
The pathname argument should be in the GLib file name encoding. On
|
131
|
-
POSIX this is the actual on-disk encoding which might correspond to
|
132
|
-
the locale settings of the process (or the
|
133
|
-
<code class="envar">G_FILENAME_ENCODING</code> environment variable), or not.
|
134
|
-
</p>
|
135
|
-
<p>
|
136
|
-
On Windows the GLib file name encoding is UTF-8. Note that the
|
137
|
-
Microsoft C library does not use UTF-8, but has separate APIs for
|
138
|
-
current system code page and wide characters (UTF-16). The GLib
|
139
|
-
wrappers call the wide character API if present (on modern Windows
|
140
|
-
systems), otherwise convert to/from the system code page.
|
141
|
-
</p>
|
142
|
-
<p>
|
143
|
-
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 ()"><code class="function">g_dir_open()</code></a>,
|
145
|
-
<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
|
-
</p>
|
147
|
-
</div>
|
148
|
-
<div class="refsect1">
|
149
|
-
<a name="glib-File-Utilities.details"></a><h2>Details</h2>
|
150
|
-
<div class="refsect2">
|
151
|
-
<a name="GFileError"></a><h3>enum GFileError</h3>
|
152
|
-
<pre class="programlisting">typedef enum
|
153
|
-
{
|
154
|
-
G_FILE_ERROR_EXIST,
|
155
|
-
G_FILE_ERROR_ISDIR,
|
156
|
-
G_FILE_ERROR_ACCES,
|
157
|
-
G_FILE_ERROR_NAMETOOLONG,
|
158
|
-
G_FILE_ERROR_NOENT,
|
159
|
-
G_FILE_ERROR_NOTDIR,
|
160
|
-
G_FILE_ERROR_NXIO,
|
161
|
-
G_FILE_ERROR_NODEV,
|
162
|
-
G_FILE_ERROR_ROFS,
|
163
|
-
G_FILE_ERROR_TXTBSY,
|
164
|
-
G_FILE_ERROR_FAULT,
|
165
|
-
G_FILE_ERROR_LOOP,
|
166
|
-
G_FILE_ERROR_NOSPC,
|
167
|
-
G_FILE_ERROR_NOMEM,
|
168
|
-
G_FILE_ERROR_MFILE,
|
169
|
-
G_FILE_ERROR_NFILE,
|
170
|
-
G_FILE_ERROR_BADF,
|
171
|
-
G_FILE_ERROR_INVAL,
|
172
|
-
G_FILE_ERROR_PIPE,
|
173
|
-
G_FILE_ERROR_AGAIN,
|
174
|
-
G_FILE_ERROR_INTR,
|
175
|
-
G_FILE_ERROR_IO,
|
176
|
-
G_FILE_ERROR_PERM,
|
177
|
-
G_FILE_ERROR_NOSYS,
|
178
|
-
G_FILE_ERROR_FAILED
|
179
|
-
} GFileError;
|
180
|
-
</pre>
|
181
|
-
<p>
|
182
|
-
Values corresponding to <code class="literal">errno</code> codes returned from file operations
|
183
|
-
on UNIX. Unlike <code class="literal">errno</code> codes, <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a> values are available on
|
184
|
-
all systems, even Windows. The exact meaning of each code depends on what
|
185
|
-
sort of file operation you were performing; the UNIX documentation
|
186
|
-
gives more details. The following error code descriptions come
|
187
|
-
from the GNU C Library manual, and are under the copyright
|
188
|
-
of that manual.
|
189
|
-
</p>
|
190
|
-
<p>
|
191
|
-
It's not very portable to make detailed assumptions about exactly
|
192
|
-
which errors will be returned from a given operation. Some errors
|
193
|
-
don't occur on some systems, etc., sometimes there are subtle
|
194
|
-
differences in when a system will report a given error, etc.
|
195
|
-
</p>
|
196
|
-
<div class="variablelist"><table border="0">
|
197
|
-
<col align="left" valign="top">
|
198
|
-
<tbody>
|
199
|
-
<tr>
|
200
|
-
<td><p><a name="G-FILE-ERROR-EXIST:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_EXIST</code></span></p></td>
|
201
|
-
<td>Operation not permitted; only the owner of the
|
202
|
-
file (or other resource) or processes with special privileges can
|
203
|
-
perform the operation.
|
204
|
-
</td>
|
205
|
-
</tr>
|
206
|
-
<tr>
|
207
|
-
<td><p><a name="G-FILE-ERROR-ISDIR:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_ISDIR</code></span></p></td>
|
208
|
-
<td>File is a directory; you cannot open a directory
|
209
|
-
for writing, or create or remove hard links to it.
|
210
|
-
</td>
|
211
|
-
</tr>
|
212
|
-
<tr>
|
213
|
-
<td><p><a name="G-FILE-ERROR-ACCES:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_ACCES</code></span></p></td>
|
214
|
-
<td>Permission denied; the file permissions do not
|
215
|
-
allow the attempted operation.
|
216
|
-
</td>
|
217
|
-
</tr>
|
218
|
-
<tr>
|
219
|
-
<td><p><a name="G-FILE-ERROR-NAMETOOLONG:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_NAMETOOLONG</code></span></p></td>
|
220
|
-
<td>Filename too long.
|
221
|
-
</td>
|
222
|
-
</tr>
|
223
|
-
<tr>
|
224
|
-
<td><p><a name="G-FILE-ERROR-NOENT:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_NOENT</code></span></p></td>
|
225
|
-
<td>No such file or directory. This is a "file
|
226
|
-
doesn't exist" error for ordinary files that are referenced in
|
227
|
-
contexts where they are expected to already exist.
|
228
|
-
</td>
|
229
|
-
</tr>
|
230
|
-
<tr>
|
231
|
-
<td><p><a name="G-FILE-ERROR-NOTDIR:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_NOTDIR</code></span></p></td>
|
232
|
-
<td>A file that isn't a directory was specified when
|
233
|
-
a directory is required.
|
234
|
-
</td>
|
235
|
-
</tr>
|
236
|
-
<tr>
|
237
|
-
<td><p><a name="G-FILE-ERROR-NXIO:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_NXIO</code></span></p></td>
|
238
|
-
<td>No such device or address. The system tried to
|
239
|
-
use the device represented by a file you specified, and it
|
240
|
-
couldn't find the device. This can mean that the device file was
|
241
|
-
installed incorrectly, or that the physical device is missing or
|
242
|
-
not correctly attached to the computer.
|
243
|
-
</td>
|
244
|
-
</tr>
|
245
|
-
<tr>
|
246
|
-
<td><p><a name="G-FILE-ERROR-NODEV:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_NODEV</code></span></p></td>
|
247
|
-
<td>This file is of a type that doesn't support
|
248
|
-
mapping.
|
249
|
-
</td>
|
250
|
-
</tr>
|
251
|
-
<tr>
|
252
|
-
<td><p><a name="G-FILE-ERROR-ROFS:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_ROFS</code></span></p></td>
|
253
|
-
<td>The directory containing the new link can't be
|
254
|
-
modified because it's on a read-only file system.
|
255
|
-
</td>
|
256
|
-
</tr>
|
257
|
-
<tr>
|
258
|
-
<td><p><a name="G-FILE-ERROR-TXTBSY:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_TXTBSY</code></span></p></td>
|
259
|
-
<td>Text file busy.
|
260
|
-
</td>
|
261
|
-
</tr>
|
262
|
-
<tr>
|
263
|
-
<td><p><a name="G-FILE-ERROR-FAULT:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_FAULT</code></span></p></td>
|
264
|
-
<td>You passed in a pointer to bad memory.
|
265
|
-
(GLib won't reliably return this, don't pass in pointers to bad
|
266
|
-
memory.)
|
267
|
-
</td>
|
268
|
-
</tr>
|
269
|
-
<tr>
|
270
|
-
<td><p><a name="G-FILE-ERROR-LOOP:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_LOOP</code></span></p></td>
|
271
|
-
<td>Too many levels of symbolic links were encountered
|
272
|
-
in looking up a file name. This often indicates a cycle of symbolic
|
273
|
-
links.
|
274
|
-
</td>
|
275
|
-
</tr>
|
276
|
-
<tr>
|
277
|
-
<td><p><a name="G-FILE-ERROR-NOSPC:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_NOSPC</code></span></p></td>
|
278
|
-
<td>No space left on device; write operation on a
|
279
|
-
file failed because the disk is full.
|
280
|
-
</td>
|
281
|
-
</tr>
|
282
|
-
<tr>
|
283
|
-
<td><p><a name="G-FILE-ERROR-NOMEM:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_NOMEM</code></span></p></td>
|
284
|
-
<td>No memory available. The system cannot allocate
|
285
|
-
more virtual memory because its capacity is full.
|
286
|
-
</td>
|
287
|
-
</tr>
|
288
|
-
<tr>
|
289
|
-
<td><p><a name="G-FILE-ERROR-MFILE:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_MFILE</code></span></p></td>
|
290
|
-
<td>The current process has too many files open and
|
291
|
-
can't open any more. Duplicate descriptors do count toward this
|
292
|
-
limit.
|
293
|
-
</td>
|
294
|
-
</tr>
|
295
|
-
<tr>
|
296
|
-
<td><p><a name="G-FILE-ERROR-NFILE:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_NFILE</code></span></p></td>
|
297
|
-
<td>There are too many distinct file openings in the
|
298
|
-
entire system.
|
299
|
-
</td>
|
300
|
-
</tr>
|
301
|
-
<tr>
|
302
|
-
<td><p><a name="G-FILE-ERROR-BADF:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_BADF</code></span></p></td>
|
303
|
-
<td>Bad file descriptor; for example, I/O on a
|
304
|
-
descriptor that has been closed or reading from a descriptor open
|
305
|
-
only for writing (or vice versa).
|
306
|
-
</td>
|
307
|
-
</tr>
|
308
|
-
<tr>
|
309
|
-
<td><p><a name="G-FILE-ERROR-INVAL:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_INVAL</code></span></p></td>
|
310
|
-
<td>Invalid argument. This is used to indicate
|
311
|
-
various kinds of problems with passing the wrong argument to a
|
312
|
-
library function.
|
313
|
-
</td>
|
314
|
-
</tr>
|
315
|
-
<tr>
|
316
|
-
<td><p><a name="G-FILE-ERROR-PIPE:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_PIPE</code></span></p></td>
|
317
|
-
<td>Broken pipe; there is no process reading from the
|
318
|
-
other end of a pipe. Every library function that returns this
|
319
|
-
error code also generates a `SIGPIPE' signal; this signal
|
320
|
-
terminates the program if not handled or blocked. Thus, your
|
321
|
-
program will never actually see this code unless it has handled or
|
322
|
-
blocked `SIGPIPE'.
|
323
|
-
</td>
|
324
|
-
</tr>
|
325
|
-
<tr>
|
326
|
-
<td><p><a name="G-FILE-ERROR-AGAIN:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_AGAIN</code></span></p></td>
|
327
|
-
<td>Resource temporarily unavailable; the call might
|
328
|
-
work if you try again later.
|
329
|
-
</td>
|
330
|
-
</tr>
|
331
|
-
<tr>
|
332
|
-
<td><p><a name="G-FILE-ERROR-INTR:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_INTR</code></span></p></td>
|
333
|
-
<td>Interrupted function call; an asynchronous signal
|
334
|
-
occurred and prevented completion of the call. When this
|
335
|
-
happens, you should try the call again.
|
336
|
-
</td>
|
337
|
-
</tr>
|
338
|
-
<tr>
|
339
|
-
<td><p><a name="G-FILE-ERROR-IO:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_IO</code></span></p></td>
|
340
|
-
<td>Input/output error; usually used for physical read
|
341
|
-
or write errors. i.e. the disk or other physical device hardware
|
342
|
-
is returning errors.
|
343
|
-
</td>
|
344
|
-
</tr>
|
345
|
-
<tr>
|
346
|
-
<td><p><a name="G-FILE-ERROR-PERM:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_PERM</code></span></p></td>
|
347
|
-
<td>Operation not permitted; only the owner of the
|
348
|
-
file (or other resource) or processes with special privileges can
|
349
|
-
perform the operation.
|
350
|
-
</td>
|
351
|
-
</tr>
|
352
|
-
<tr>
|
353
|
-
<td><p><a name="G-FILE-ERROR-NOSYS:CAPS"></a><span class="term"><code class="literal">G_FILE_ERROR_NOSYS</code></span></p></td>
|
354
|
-
<td>Function not implemented; this indicates that the
|
355
|
-
system is missing some functionality.
|
356
|
-
</td>
|
357
|
-
</tr>
|
358
|
-
<tr>
|
359
|
-
<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
|
-
<td>Does not correspond to a UNIX error code; this
|
361
|
-
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
|
363
|
-
code applies.
|
364
|
-
</td>
|
365
|
-
</tr>
|
366
|
-
</tbody>
|
367
|
-
</table></div>
|
368
|
-
</div>
|
369
|
-
<hr>
|
370
|
-
<div class="refsect2">
|
371
|
-
<a name="G-FILE-ERROR:CAPS"></a><h3>G_FILE_ERROR</h3>
|
372
|
-
<pre class="programlisting">#define G_FILE_ERROR g_file_error_quark ()
|
373
|
-
</pre>
|
374
|
-
<p>
|
375
|
-
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
|
377
|
-
error domains.
|
378
|
-
</p>
|
379
|
-
</div>
|
380
|
-
<hr>
|
381
|
-
<div class="refsect2">
|
382
|
-
<a name="GFileTest"></a><h3>enum GFileTest</h3>
|
383
|
-
<pre class="programlisting">typedef enum
|
384
|
-
{
|
385
|
-
G_FILE_TEST_IS_REGULAR = 1 << 0,
|
386
|
-
G_FILE_TEST_IS_SYMLINK = 1 << 1,
|
387
|
-
G_FILE_TEST_IS_DIR = 1 << 2,
|
388
|
-
G_FILE_TEST_IS_EXECUTABLE = 1 << 3,
|
389
|
-
G_FILE_TEST_EXISTS = 1 << 4
|
390
|
-
} GFileTest;
|
391
|
-
</pre>
|
392
|
-
<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 ()"><code class="function">g_file_test()</code></a>.
|
394
|
-
</p>
|
395
|
-
<div class="variablelist"><table border="0">
|
396
|
-
<col align="left" valign="top">
|
397
|
-
<tbody>
|
398
|
-
<tr>
|
399
|
-
<td><p><a name="G-FILE-TEST-IS-REGULAR:CAPS"></a><span class="term"><code class="literal">G_FILE_TEST_IS_REGULAR</code></span></p></td>
|
400
|
-
<td>
|
401
|
-
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the file is a regular file (not a directory).
|
402
|
-
Note that this test will also return <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the tested file is a symlink
|
403
|
-
to a regular file.
|
404
|
-
</td>
|
405
|
-
</tr>
|
406
|
-
<tr>
|
407
|
-
<td><p><a name="G-FILE-TEST-IS-SYMLINK:CAPS"></a><span class="term"><code class="literal">G_FILE_TEST_IS_SYMLINK</code></span></p></td>
|
408
|
-
<td>
|
409
|
-
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the file is a symlink.
|
410
|
-
</td>
|
411
|
-
</tr>
|
412
|
-
<tr>
|
413
|
-
<td><p><a name="G-FILE-TEST-IS-DIR:CAPS"></a><span class="term"><code class="literal">G_FILE_TEST_IS_DIR</code></span></p></td>
|
414
|
-
<td>
|
415
|
-
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the file is a directory.
|
416
|
-
</td>
|
417
|
-
</tr>
|
418
|
-
<tr>
|
419
|
-
<td><p><a name="G-FILE-TEST-IS-EXECUTABLE:CAPS"></a><span class="term"><code class="literal">G_FILE_TEST_IS_EXECUTABLE</code></span></p></td>
|
420
|
-
<td>
|
421
|
-
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the file is executable.
|
422
|
-
</td>
|
423
|
-
</tr>
|
424
|
-
<tr>
|
425
|
-
<td><p><a name="G-FILE-TEST-EXISTS:CAPS"></a><span class="term"><code class="literal">G_FILE_TEST_EXISTS</code></span></p></td>
|
426
|
-
<td>
|
427
|
-
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the file exists.
|
428
|
-
It may or may not be a regular file.
|
429
|
-
</td>
|
430
|
-
</tr>
|
431
|
-
</tbody>
|
432
|
-
</table></div>
|
433
|
-
</div>
|
434
|
-
<hr>
|
435
|
-
<div class="refsect2">
|
436
|
-
<a name="g-file-error-from-errno"></a><h3>g_file_error_from_errno ()</h3>
|
437
|
-
<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
|
-
<p>
|
439
|
-
Gets a <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a> constant based on the passed-in <em class="parameter"><code>errno</code></em>.
|
440
|
-
For example, if you pass in <code class="literal">EEXIST</code> this function returns
|
441
|
-
<a class="link" href="glib-File-Utilities.html#G-FILE-ERROR-EXIST:CAPS"><span class="type">G_FILE_ERROR_EXIST</span></a>. Unlike <em class="parameter"><code>errno</code></em> values, you can portably
|
442
|
-
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
|
-
</p>
|
444
|
-
<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
|
446
|
-
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>.
|
448
|
-
</p>
|
449
|
-
<div class="variablelist"><table border="0">
|
450
|
-
<col align="left" valign="top">
|
451
|
-
<tbody>
|
452
|
-
<tr>
|
453
|
-
<td><p><span class="term"><em class="parameter"><code>err_no</code></em> :</span></p></td>
|
454
|
-
<td>an "errno" value
|
455
|
-
</td>
|
456
|
-
</tr>
|
457
|
-
<tr>
|
458
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
459
|
-
<td> <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
|
-
</td>
|
461
|
-
</tr>
|
462
|
-
</tbody>
|
463
|
-
</table></div>
|
464
|
-
</div>
|
465
|
-
<hr>
|
466
|
-
<div class="refsect2">
|
467
|
-
<a name="g-file-get-contents"></a><h3>g_file_get_contents ()</h3>
|
468
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_file_get_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>,
|
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>
|
472
|
-
<p>
|
473
|
-
Reads an entire file into allocated memory, with good error
|
474
|
-
checking.
|
475
|
-
</p>
|
476
|
-
<p>
|
477
|
-
If the call was successful, it returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> and sets <em class="parameter"><code>contents</code></em> to the file
|
478
|
-
contents and <em class="parameter"><code>length</code></em> to the length of the file contents in bytes. The string
|
479
|
-
stored in <em class="parameter"><code>contents</code></em> will be nul-terminated, so for text files you can pass
|
480
|
-
<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> for the <em class="parameter"><code>length</code></em> argument. If the call was not successful, it returns
|
481
|
-
<a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> and sets <em class="parameter"><code>error</code></em>. The error domain is <a class="link" href="glib-File-Utilities.html#G-FILE-ERROR:CAPS" title="G_FILE_ERROR"><span class="type">G_FILE_ERROR</span></a>. Possible error
|
482
|
-
codes are those in the <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a> enumeration. In the error case,
|
483
|
-
<em class="parameter"><code>contents</code></em> is set to <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> and <em class="parameter"><code>length</code></em> is set to zero.
|
484
|
-
</p>
|
485
|
-
<div class="variablelist"><table border="0">
|
486
|
-
<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>
|
510
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
511
|
-
<td> <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
|
512
|
-
</td>
|
513
|
-
</tr>
|
514
|
-
</tbody>
|
515
|
-
</table></div>
|
516
|
-
</div>
|
517
|
-
<hr>
|
518
|
-
<div class="refsect2">
|
519
|
-
<a name="g-file-set-contents"></a><h3>g_file_set_contents ()</h3>
|
520
|
-
<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
|
-
<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
|
-
<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>
|
524
|
-
<p>
|
525
|
-
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
|
-
If a file called <em class="parameter"><code>filename</code></em> already exists it will be overwritten.
|
527
|
-
</p>
|
528
|
-
<p>
|
529
|
-
This write is atomic in the sense that it is first written to a temporary
|
530
|
-
file which is then renamed to the final name. Notes:
|
531
|
-
</p>
|
532
|
-
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
533
|
-
<li class="listitem">
|
534
|
-
On Unix, if <em class="parameter"><code>filename</code></em> already exists hard links to <em class="parameter"><code>filename</code></em> will break.
|
535
|
-
Also since the file is recreated, existing permissions, access control
|
536
|
-
lists, metadata etc. may be lost. If <em class="parameter"><code>filename</code></em> is a symbolic link,
|
537
|
-
the link itself will be replaced, not the linked file.
|
538
|
-
</li>
|
539
|
-
<li class="listitem">
|
540
|
-
On Windows renaming a file will not remove an existing file with the
|
541
|
-
new name, so on Windows there is a race condition between the existing
|
542
|
-
file being removed and the temporary file being renamed.
|
543
|
-
</li>
|
544
|
-
<li class="listitem">
|
545
|
-
On Windows there is no way to remove a file that is open to some
|
546
|
-
process, or mapped into memory. Thus, this function will fail if
|
547
|
-
<em class="parameter"><code>filename</code></em> already exists and is open.
|
548
|
-
</li>
|
549
|
-
</ul></div>
|
550
|
-
<p>
|
551
|
-
</p>
|
552
|
-
<p>
|
553
|
-
If the call was sucessful, it returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>. If the call was not successful,
|
554
|
-
it returns <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> and sets <em class="parameter"><code>error</code></em>. The error domain is <a class="link" href="glib-File-Utilities.html#G-FILE-ERROR:CAPS" title="G_FILE_ERROR"><span class="type">G_FILE_ERROR</span></a>.
|
555
|
-
Possible error codes are those in the <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a> enumeration.
|
556
|
-
</p>
|
557
|
-
<p>
|
558
|
-
Note that the name for the temporary file is constructed by appending up
|
559
|
-
to 7 characters to <em class="parameter"><code>filename</code></em>.
|
560
|
-
</p>
|
561
|
-
<div class="variablelist"><table border="0">
|
562
|
-
<col align="left" valign="top">
|
563
|
-
<tbody>
|
564
|
-
<tr>
|
565
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
566
|
-
<td>name of a file to write <em class="parameter"><code>contents</code></em> to, in the GLib file name
|
567
|
-
encoding
|
568
|
-
</td>
|
569
|
-
</tr>
|
570
|
-
<tr>
|
571
|
-
<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>
|
574
|
-
</tr>
|
575
|
-
<tr>
|
576
|
-
<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>
|
579
|
-
</tr>
|
580
|
-
<tr>
|
581
|
-
<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>
|
583
|
-
</td>
|
584
|
-
</tr>
|
585
|
-
<tr>
|
586
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
587
|
-
<td> <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
|
588
|
-
|
589
|
-
</td>
|
590
|
-
</tr>
|
591
|
-
</tbody>
|
592
|
-
</table></div>
|
593
|
-
<p class="since">Since 2.8</p>
|
594
|
-
</div>
|
595
|
-
<hr>
|
596
|
-
<div class="refsect2">
|
597
|
-
<a name="g-file-test"></a><h3>g_file_test ()</h3>
|
598
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_file_test (<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>,
|
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>
|
600
|
-
<p>
|
601
|
-
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
|
-
<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 |
|
603
|
-
G_FILE_TEST_IS_DIR)</code> will return <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the file exists;
|
604
|
-
the check whether it's a directory doesn't matter since the existence
|
605
|
-
test is <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>. With the current set of available tests, there's no point
|
606
|
-
passing in more than one test at a time.
|
607
|
-
</p>
|
608
|
-
<p>
|
609
|
-
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 ()"><code class="function">g_file_test()</code></a> will return
|
611
|
-
<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
|
-
</p>
|
613
|
-
<p>
|
614
|
-
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
|
-
<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
|
-
</p>
|
617
|
-
<p>
|
618
|
-
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
|
-
to perform an operation, because there is always the possibility
|
620
|
-
of the condition changing before you actually perform the operation.
|
621
|
-
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>
|
622
|
-
to know whether it is safe to write to a file without being
|
623
|
-
tricked into writing into a different location. It doesn't work!
|
624
|
-
</p>
|
625
|
-
<div class="informalexample">
|
626
|
-
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
627
|
-
<tbody>
|
628
|
-
<tr>
|
629
|
-
<td class="listing_lines" align="right"><pre>1
|
630
|
-
2
|
631
|
-
3
|
632
|
-
4
|
633
|
-
5
|
634
|
-
6</pre></td>
|
635
|
-
<td class="listing_code"><pre class="programlisting"><span class="comment">/* DON'T DO THIS */</span>
|
636
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="function"><a href="glib-File-Utilities.html#g-file-test">g_file_test</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">filename</span><span class="symbol">,</span><span class="normal"> <a href="glib-File-Utilities.html#G-FILE-TEST-IS-SYMLINK:CAPS">G_FILE_TEST_IS_SYMLINK</a></span><span class="symbol">))</span><span class="normal"> </span>
|
637
|
-
<span class="normal"> </span><span class="cbracket">{</span>
|
638
|
-
<span class="normal"> fd </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="glib-File-Utilities.html#g-open">g_open</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">filename</span><span class="symbol">,</span><span class="normal"> O_WRONLY</span><span class="symbol">);</span>
|
639
|
-
<span class="normal"> </span><span class="comment">/* write to fd */</span>
|
640
|
-
<span class="normal"> </span><span class="cbracket">}</span></pre></td>
|
641
|
-
</tr>
|
642
|
-
</tbody>
|
643
|
-
</table>
|
644
|
-
</div>
|
645
|
-
|
646
|
-
<p>
|
647
|
-
</p>
|
648
|
-
<p>
|
649
|
-
Another thing to note is that <a class="link" href="glib-File-Utilities.html#G-FILE-TEST-EXISTS:CAPS"><code class="literal">G_FILE_TEST_EXISTS</code></a> and
|
650
|
-
<a class="link" href="glib-File-Utilities.html#G-FILE-TEST-IS-EXECUTABLE:CAPS"><code class="literal">G_FILE_TEST_IS_EXECUTABLE</code></a> are implemented using the <code class="function">access()</code>
|
651
|
-
system call. This usually doesn't matter, but if your program
|
652
|
-
is setuid or setgid it means that these tests will give you
|
653
|
-
the answer for the real user ID and group ID, rather than the
|
654
|
-
effective user ID and group ID.
|
655
|
-
</p>
|
656
|
-
<p>
|
657
|
-
On Windows, there are no symlinks, so testing for
|
658
|
-
<a class="link" href="glib-File-Utilities.html#G-FILE-TEST-IS-SYMLINK:CAPS"><code class="literal">G_FILE_TEST_IS_SYMLINK</code></a> will always return <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a>. Testing for
|
659
|
-
<a class="link" href="glib-File-Utilities.html#G-FILE-TEST-IS-EXECUTABLE:CAPS"><code class="literal">G_FILE_TEST_IS_EXECUTABLE</code></a> will just check that the file exists and
|
660
|
-
its name indicates that it is executable, checking for well-known
|
661
|
-
extensions and those listed in the <code class="literal">PATHEXT</code> environment variable.
|
662
|
-
</p>
|
663
|
-
<div class="variablelist"><table border="0">
|
664
|
-
<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>
|
677
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
678
|
-
<td> whether a test was <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>
|
679
|
-
</td>
|
680
|
-
</tr>
|
681
|
-
</tbody>
|
682
|
-
</table></div>
|
683
|
-
</div>
|
684
|
-
<hr>
|
685
|
-
<div class="refsect2">
|
686
|
-
<a name="g-mkstemp"></a><h3>g_mkstemp ()</h3>
|
687
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_mkstemp (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *tmpl</code></em>);</pre>
|
688
|
-
<p>
|
689
|
-
Opens a temporary file. See the <code class="function">mkstemp()</code> documentation
|
690
|
-
on most UNIX-like systems.
|
691
|
-
</p>
|
692
|
-
<p>
|
693
|
-
The parameter is a string that should follow the rules for
|
694
|
-
<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 ()"><code class="function">g_mkstemp()</code></a> is slightly more flexible than <code class="function">mkstemp()</code>
|
696
|
-
in that the sequence does not have to occur at the very end of the
|
697
|
-
template. The X string will
|
698
|
-
be modified to form the name of a file that didn't exist.
|
699
|
-
The string should be in the GLib file name encoding. Most importantly,
|
700
|
-
on Windows it should be in UTF-8.
|
701
|
-
</p>
|
702
|
-
<div class="variablelist"><table border="0">
|
703
|
-
<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>
|
711
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
712
|
-
<td> A file handle (as from <code class="function">open()</code>) to the file
|
713
|
-
opened for reading and writing. The file is opened in binary mode
|
714
|
-
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
|
-
</td>
|
717
|
-
</tr>
|
718
|
-
</tbody>
|
719
|
-
</table></div>
|
720
|
-
</div>
|
721
|
-
<hr>
|
722
|
-
<div class="refsect2">
|
723
|
-
<a name="g-mkstemp-full"></a><h3>g_mkstemp_full ()</h3>
|
724
|
-
<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
|
-
<em class="parameter"><code><span class="type">int</span> flags</code></em>,
|
726
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
727
|
-
<p>
|
728
|
-
Opens a temporary file. See the <code class="function">mkstemp()</code> documentation
|
729
|
-
on most UNIX-like systems.
|
730
|
-
</p>
|
731
|
-
<p>
|
732
|
-
The parameter is a string that should follow the rules for
|
733
|
-
<code class="function">mkstemp()</code> templates, i.e. contain the string "XXXXXX".
|
734
|
-
<a class="link" href="glib-File-Utilities.html#g-mkstemp-full" title="g_mkstemp_full ()"><code class="function">g_mkstemp_full()</code></a> is slightly more flexible than <code class="function">mkstemp()</code>
|
735
|
-
in that the sequence does not have to occur at the very end of the
|
736
|
-
template and you can pass a <em class="parameter"><code>mode</code></em> and additional <em class="parameter"><code>flags</code></em>. The X
|
737
|
-
string will be modified to form the name of a file that didn't exist.
|
738
|
-
The string should be in the GLib file name encoding. Most importantly,
|
739
|
-
on Windows it should be in UTF-8.
|
740
|
-
</p>
|
741
|
-
<div class="variablelist"><table border="0">
|
742
|
-
<col align="left" valign="top">
|
743
|
-
<tbody>
|
744
|
-
<tr>
|
745
|
-
<td><p><span class="term"><em class="parameter"><code>tmpl</code></em> :</span></p></td>
|
746
|
-
<td>template filename
|
747
|
-
</td>
|
748
|
-
</tr>
|
749
|
-
<tr>
|
750
|
-
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
|
751
|
-
<td>flags to pass to an <code class="function">open()</code> call in addition to O_EXCL and
|
752
|
-
O_CREAT, which are passed automatically
|
753
|
-
</td>
|
754
|
-
</tr>
|
755
|
-
<tr>
|
756
|
-
<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>
|
759
|
-
</tr>
|
760
|
-
<tr>
|
761
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
762
|
-
<td> A file handle (as from <code class="function">open()</code>) to the file
|
763
|
-
opened for reading and writing. The file handle should be
|
764
|
-
closed with <code class="function">close()</code>. In case of errors, -1 is returned.
|
765
|
-
|
766
|
-
</td>
|
767
|
-
</tr>
|
768
|
-
</tbody>
|
769
|
-
</table></div>
|
770
|
-
<p class="since">Since 2.22</p>
|
771
|
-
</div>
|
772
|
-
<hr>
|
773
|
-
<div class="refsect2">
|
774
|
-
<a name="g-file-open-tmp"></a><h3>g_file_open_tmp ()</h3>
|
775
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_file_open_tmp (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *tmpl</code></em>,
|
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>
|
778
|
-
<p>
|
779
|
-
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 ()"><code class="function">g_get_tmp_dir()</code></a>).
|
781
|
-
</p>
|
782
|
-
<p>
|
783
|
-
<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 ()"><code class="function">g_mkstemp()</code></a>.
|
785
|
-
However, unlike these functions, the template should only be a
|
786
|
-
basename, no directory components are allowed. If template is
|
787
|
-
<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, a default template is used.
|
788
|
-
</p>
|
789
|
-
<p>
|
790
|
-
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
|
-
<em class="parameter"><code>tmpl</code></em> is not modified, and might thus be a read-only literal string.
|
792
|
-
</p>
|
793
|
-
<p>
|
794
|
-
The actual name used is returned in <em class="parameter"><code>name_used</code></em> if non-<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. This
|
795
|
-
string should be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a> when not needed any longer.
|
796
|
-
The returned name is in the GLib file name encoding.
|
797
|
-
</p>
|
798
|
-
<div class="variablelist"><table border="0">
|
799
|
-
<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>
|
818
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
819
|
-
<td> A file handle (as from <code class="function">open()</code>) to
|
820
|
-
the file opened for reading and writing. The file is opened in binary
|
821
|
-
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
|
-
</td>
|
825
|
-
</tr>
|
826
|
-
</tbody>
|
827
|
-
</table></div>
|
828
|
-
</div>
|
829
|
-
<hr>
|
830
|
-
<div class="refsect2">
|
831
|
-
<a name="g-file-read-link"></a><h3>g_file_read_link ()</h3>
|
832
|
-
<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>
|
834
|
-
<p>
|
835
|
-
Reads the contents of the symbolic link <em class="parameter"><code>filename</code></em> like the POSIX
|
836
|
-
<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 ()"><code class="function">g_filename_to_utf8()</code></a> to convert it to UTF-8.
|
838
|
-
</p>
|
839
|
-
<div class="variablelist"><table border="0">
|
840
|
-
<col align="left" valign="top">
|
841
|
-
<tbody>
|
842
|
-
<tr>
|
843
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
844
|
-
<td>the symbolic link
|
845
|
-
</td>
|
846
|
-
</tr>
|
847
|
-
<tr>
|
848
|
-
<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>
|
850
|
-
</td>
|
851
|
-
</tr>
|
852
|
-
<tr>
|
853
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
854
|
-
<td> A newly-allocated string with the contents of the symbolic link,
|
855
|
-
or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if an error occurred.
|
856
|
-
|
857
|
-
</td>
|
858
|
-
</tr>
|
859
|
-
</tbody>
|
860
|
-
</table></div>
|
861
|
-
<p class="since">Since 2.4</p>
|
862
|
-
</div>
|
863
|
-
<hr>
|
864
|
-
<div class="refsect2">
|
865
|
-
<a name="g-mkdir-with-parents"></a><h3>g_mkdir_with_parents ()</h3>
|
866
|
-
<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
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
868
|
-
<p>
|
869
|
-
Create a directory if it doesn't already exist. Create intermediate
|
870
|
-
parent directories as needed, too.
|
871
|
-
</p>
|
872
|
-
<div class="variablelist"><table border="0">
|
873
|
-
<col align="left" valign="top">
|
874
|
-
<tbody>
|
875
|
-
<tr>
|
876
|
-
<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>
|
879
|
-
</tr>
|
880
|
-
<tr>
|
881
|
-
<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>
|
884
|
-
</tr>
|
885
|
-
<tr>
|
886
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
887
|
-
<td> 0 if the directory already exists, or was successfully
|
888
|
-
created. Returns -1 if an error occurred, with errno set.
|
889
|
-
|
890
|
-
</td>
|
891
|
-
</tr>
|
892
|
-
</tbody>
|
893
|
-
</table></div>
|
894
|
-
<p class="since">Since 2.8</p>
|
895
|
-
</div>
|
896
|
-
<hr>
|
897
|
-
<div class="refsect2">
|
898
|
-
<a name="GDir"></a><h3>GDir</h3>
|
899
|
-
<pre class="programlisting">typedef struct _GDir GDir;</pre>
|
900
|
-
<p>
|
901
|
-
An opaque structure representing an opened directory.
|
902
|
-
</p>
|
903
|
-
</div>
|
904
|
-
<hr>
|
905
|
-
<div class="refsect2">
|
906
|
-
<a name="g-dir-open"></a><h3>g_dir_open ()</h3>
|
907
|
-
<pre class="programlisting"><a class="link" href="glib-File-Utilities.html#GDir" title="GDir"><span class="returnvalue">GDir</span></a> * g_dir_open (<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>,
|
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>
|
910
|
-
<p>
|
911
|
-
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 ()"><code class="function">g_dir_read_name()</code></a>. Note
|
913
|
-
that the ordering is not defined.
|
914
|
-
</p>
|
915
|
-
<div class="variablelist"><table border="0">
|
916
|
-
<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>
|
937
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
938
|
-
<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.
|
939
|
-
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>
|
940
|
-
when you are finished with it.
|
941
|
-
</td>
|
942
|
-
</tr>
|
943
|
-
</tbody>
|
944
|
-
</table></div>
|
945
|
-
</div>
|
946
|
-
<hr>
|
947
|
-
<div class="refsect2">
|
948
|
-
<a name="g-dir-read-name"></a><h3>g_dir_read_name ()</h3>
|
949
|
-
<pre class="programlisting">const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_dir_read_name (<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>
|
950
|
-
<p>
|
951
|
-
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
|
-
The order of entries returned from this function is not defined,
|
953
|
-
and may vary by file system or other operating-system dependent
|
954
|
-
factors.
|
955
|
-
</p>
|
956
|
-
<p>
|
957
|
-
On Unix, the '.' and '..' entries are omitted, and the returned
|
958
|
-
name is in the on-disk encoding.
|
959
|
-
</p>
|
960
|
-
<p>
|
961
|
-
On Windows, as is true of all GLib functions which operate on
|
962
|
-
filenames, the returned name is in UTF-8.
|
963
|
-
</p>
|
964
|
-
<div class="variablelist"><table border="0">
|
965
|
-
<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>
|
973
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
974
|
-
<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
|
975
|
-
more entries. The return value is owned by GLib and
|
976
|
-
must not be modified or freed.
|
977
|
-
</td>
|
978
|
-
</tr>
|
979
|
-
</tbody>
|
980
|
-
</table></div>
|
981
|
-
</div>
|
982
|
-
<hr>
|
983
|
-
<div class="refsect2">
|
984
|
-
<a name="g-dir-rewind"></a><h3>g_dir_rewind ()</h3>
|
985
|
-
<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
|
-
<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 ()"><code class="function">g_dir_read_name()</code></a>
|
988
|
-
will return the first entry again.
|
989
|
-
</p>
|
990
|
-
<div class="variablelist"><table border="0">
|
991
|
-
<col align="left" valign="top">
|
992
|
-
<tbody><tr>
|
993
|
-
<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 ()"><code class="function">g_dir_open()</code></a>
|
995
|
-
</td>
|
996
|
-
</tr></tbody>
|
997
|
-
</table></div>
|
998
|
-
</div>
|
999
|
-
<hr>
|
1000
|
-
<div class="refsect2">
|
1001
|
-
<a name="g-dir-close"></a><h3>g_dir_close ()</h3>
|
1002
|
-
<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
|
-
<p>
|
1004
|
-
Closes the directory and deallocates all related resources.
|
1005
|
-
</p>
|
1006
|
-
<div class="variablelist"><table border="0">
|
1007
|
-
<col align="left" valign="top">
|
1008
|
-
<tbody><tr>
|
1009
|
-
<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 ()"><code class="function">g_dir_open()</code></a>
|
1011
|
-
</td>
|
1012
|
-
</tr></tbody>
|
1013
|
-
</table></div>
|
1014
|
-
</div>
|
1015
|
-
<hr>
|
1016
|
-
<div class="refsect2">
|
1017
|
-
<a name="GMappedFile"></a><h3>GMappedFile</h3>
|
1018
|
-
<pre class="programlisting">typedef struct _GMappedFile GMappedFile;</pre>
|
1019
|
-
<p>
|
1020
|
-
The <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> represents a file mapping created with
|
1021
|
-
<a class="link" href="glib-File-Utilities.html#g-mapped-file-new" title="g_mapped_file_new ()"><code class="function">g_mapped_file_new()</code></a>. It has only private members and should
|
1022
|
-
not be accessed directly.
|
1023
|
-
</p>
|
1024
|
-
</div>
|
1025
|
-
<hr>
|
1026
|
-
<div class="refsect2">
|
1027
|
-
<a name="g-mapped-file-new"></a><h3>g_mapped_file_new ()</h3>
|
1028
|
-
<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
|
-
<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>
|
1031
|
-
<p>
|
1032
|
-
Maps a file into memory. On UNIX, this is using the <code class="function">mmap()</code> function.
|
1033
|
-
</p>
|
1034
|
-
<p>
|
1035
|
-
If <em class="parameter"><code>writable</code></em> is <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>, the mapped buffer may be modified, otherwise
|
1036
|
-
it is an error to modify the mapped buffer. Modifications to the buffer
|
1037
|
-
are not visible to other processes mapping the same file, and are not
|
1038
|
-
written back to the file.
|
1039
|
-
</p>
|
1040
|
-
<p>
|
1041
|
-
Note that modifications of the underlying file might affect the contents
|
1042
|
-
of the <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a>. Therefore, mapping should only be used if the file
|
1043
|
-
will not be modified, or if all modifications of the file are done
|
1044
|
-
atomically (e.g. using <a class="link" href="glib-File-Utilities.html#g-file-set-contents" title="g_file_set_contents ()"><code class="function">g_file_set_contents()</code></a>).
|
1045
|
-
</p>
|
1046
|
-
<div class="variablelist"><table border="0">
|
1047
|
-
<col align="left" valign="top">
|
1048
|
-
<tbody>
|
1049
|
-
<tr>
|
1050
|
-
<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>
|
1053
|
-
</tr>
|
1054
|
-
<tr>
|
1055
|
-
<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>
|
1058
|
-
</tr>
|
1059
|
-
<tr>
|
1060
|
-
<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>
|
1062
|
-
</td>
|
1063
|
-
</tr>
|
1064
|
-
<tr>
|
1065
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1066
|
-
<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
|
1067
|
-
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.
|
1068
|
-
|
1069
|
-
</td>
|
1070
|
-
</tr>
|
1071
|
-
</tbody>
|
1072
|
-
</table></div>
|
1073
|
-
<p class="since">Since 2.8</p>
|
1074
|
-
</div>
|
1075
|
-
<hr>
|
1076
|
-
<div class="refsect2">
|
1077
|
-
<a name="g-mapped-file-ref"></a><h3>g_mapped_file_ref ()</h3>
|
1078
|
-
<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
|
-
<p>
|
1080
|
-
Increments the reference count of <em class="parameter"><code>file</code></em> by one. It is safe to call
|
1081
|
-
this function from any thread.
|
1082
|
-
</p>
|
1083
|
-
<div class="variablelist"><table border="0">
|
1084
|
-
<col align="left" valign="top">
|
1085
|
-
<tbody>
|
1086
|
-
<tr>
|
1087
|
-
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
|
1088
|
-
<td>a <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a>
|
1089
|
-
</td>
|
1090
|
-
</tr>
|
1091
|
-
<tr>
|
1092
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1093
|
-
<td> the passed in <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a>.
|
1094
|
-
|
1095
|
-
</td>
|
1096
|
-
</tr>
|
1097
|
-
</tbody>
|
1098
|
-
</table></div>
|
1099
|
-
<p class="since">Since 2.22</p>
|
1100
|
-
</div>
|
1101
|
-
<hr>
|
1102
|
-
<div class="refsect2">
|
1103
|
-
<a name="g-mapped-file-unref"></a><h3>g_mapped_file_unref ()</h3>
|
1104
|
-
<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
|
-
<p>
|
1106
|
-
Decrements the reference count of <em class="parameter"><code>file</code></em> by one. If the reference count
|
1107
|
-
drops to 0, unmaps the buffer of <em class="parameter"><code>file</code></em> and frees it.
|
1108
|
-
</p>
|
1109
|
-
<p>
|
1110
|
-
It is safe to call this function from any thread.
|
1111
|
-
</p>
|
1112
|
-
<p>
|
1113
|
-
Since 2.22
|
1114
|
-
</p>
|
1115
|
-
<div class="variablelist"><table border="0">
|
1116
|
-
<col align="left" valign="top">
|
1117
|
-
<tbody><tr>
|
1118
|
-
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
|
1119
|
-
<td>a <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a>
|
1120
|
-
</td>
|
1121
|
-
</tr></tbody>
|
1122
|
-
</table></div>
|
1123
|
-
</div>
|
1124
|
-
<hr>
|
1125
|
-
<div class="refsect2">
|
1126
|
-
<a name="g-mapped-file-free"></a><h3>g_mapped_file_free ()</h3>
|
1127
|
-
<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" style="margin-left: 0.5in; margin-right: 0.5in;">
|
1129
|
-
<h3 class="title">Warning</h3>
|
1130
|
-
<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
|
-
</div>
|
1132
|
-
<p>
|
1133
|
-
This call existed before <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> had refcounting and is currently
|
1134
|
-
exactly the same as <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>.
|
1135
|
-
</p>
|
1136
|
-
<div class="variablelist"><table border="0">
|
1137
|
-
<col align="left" valign="top">
|
1138
|
-
<tbody><tr>
|
1139
|
-
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
|
1140
|
-
<td>a <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a>
|
1141
|
-
</td>
|
1142
|
-
</tr></tbody>
|
1143
|
-
</table></div>
|
1144
|
-
<p class="since">Since 2.8</p>
|
1145
|
-
</div>
|
1146
|
-
<hr>
|
1147
|
-
<div class="refsect2">
|
1148
|
-
<a name="g-mapped-file-get-length"></a><h3>g_mapped_file_get_length ()</h3>
|
1149
|
-
<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
|
-
<p>
|
1151
|
-
Returns the length of the contents of a <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a>.
|
1152
|
-
</p>
|
1153
|
-
<div class="variablelist"><table border="0">
|
1154
|
-
<col align="left" valign="top">
|
1155
|
-
<tbody>
|
1156
|
-
<tr>
|
1157
|
-
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
|
1158
|
-
<td>a <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a>
|
1159
|
-
</td>
|
1160
|
-
</tr>
|
1161
|
-
<tr>
|
1162
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1163
|
-
<td> the length of the contents of <em class="parameter"><code>file</code></em>.
|
1164
|
-
|
1165
|
-
</td>
|
1166
|
-
</tr>
|
1167
|
-
</tbody>
|
1168
|
-
</table></div>
|
1169
|
-
<p class="since">Since 2.8</p>
|
1170
|
-
</div>
|
1171
|
-
<hr>
|
1172
|
-
<div class="refsect2">
|
1173
|
-
<a name="g-mapped-file-get-contents"></a><h3>g_mapped_file_get_contents ()</h3>
|
1174
|
-
<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
|
-
<p>
|
1176
|
-
Returns the contents of a <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a>.
|
1177
|
-
</p>
|
1178
|
-
<p>
|
1179
|
-
Note that the contents may not be zero-terminated,
|
1180
|
-
even if the <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a> is backed by a text file.
|
1181
|
-
</p>
|
1182
|
-
<p>
|
1183
|
-
If the file is empty then <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> is returned.
|
1184
|
-
</p>
|
1185
|
-
<div class="variablelist"><table border="0">
|
1186
|
-
<col align="left" valign="top">
|
1187
|
-
<tbody>
|
1188
|
-
<tr>
|
1189
|
-
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
|
1190
|
-
<td>a <a class="link" href="glib-File-Utilities.html#GMappedFile" title="GMappedFile"><span class="type">GMappedFile</span></a>
|
1191
|
-
</td>
|
1192
|
-
</tr>
|
1193
|
-
<tr>
|
1194
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1195
|
-
<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>.
|
1196
|
-
|
1197
|
-
</td>
|
1198
|
-
</tr>
|
1199
|
-
</tbody>
|
1200
|
-
</table></div>
|
1201
|
-
<p class="since">Since 2.8</p>
|
1202
|
-
</div>
|
1203
|
-
<hr>
|
1204
|
-
<div class="refsect2">
|
1205
|
-
<a name="g-open"></a><h3>g_open ()</h3>
|
1206
|
-
<pre class="programlisting"><span class="returnvalue">int</span> g_open (<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>,
|
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>
|
1209
|
-
<p>
|
1210
|
-
A wrapper for the POSIX <code class="function">open()</code> function. The <code class="function">open()</code> function is
|
1211
|
-
used to convert a pathname into a file descriptor.
|
1212
|
-
</p>
|
1213
|
-
<p>
|
1214
|
-
On POSIX systems file descriptors are implemented by the operating
|
1215
|
-
system. On Windows, it's the C library that implements <code class="function">open()</code> and
|
1216
|
-
file descriptors. The actual Win32 API for opening files is quite
|
1217
|
-
different, see MSDN documentation for <code class="function">CreateFile()</code>. The Win32 API
|
1218
|
-
uses file handles, which are more randomish integers, not small
|
1219
|
-
integers like file descriptors.
|
1220
|
-
</p>
|
1221
|
-
<p>
|
1222
|
-
Because file descriptors are specific to the C library on Windows,
|
1223
|
-
the file descriptor returned by this function makes sense only to
|
1224
|
-
functions in the same C library. Thus if the GLib-using code uses a
|
1225
|
-
different C library than GLib does, the file descriptor returned by
|
1226
|
-
this function cannot be passed to C library functions like <code class="function">write()</code>
|
1227
|
-
or <code class="function">read()</code>.
|
1228
|
-
</p>
|
1229
|
-
<p>
|
1230
|
-
See your C library manual for more details about <code class="function">open()</code>.
|
1231
|
-
</p>
|
1232
|
-
<div class="variablelist"><table border="0">
|
1233
|
-
<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>
|
1251
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1252
|
-
<td> a new file descriptor, or -1 if an error occurred. The
|
1253
|
-
return value can be used exactly like the return value from <code class="function">open()</code>.
|
1254
|
-
|
1255
|
-
</td>
|
1256
|
-
</tr>
|
1257
|
-
</tbody>
|
1258
|
-
</table></div>
|
1259
|
-
<p class="since">Since 2.6</p>
|
1260
|
-
</div>
|
1261
|
-
<hr>
|
1262
|
-
<div class="refsect2">
|
1263
|
-
<a name="g-rename"></a><h3>g_rename ()</h3>
|
1264
|
-
<pre class="programlisting"><span class="returnvalue">int</span> g_rename (<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>,
|
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>
|
1266
|
-
<p>
|
1267
|
-
A wrapper for the POSIX <code class="function">rename()</code> function. The <code class="function">rename()</code> function
|
1268
|
-
renames a file, moving it between directories if required.
|
1269
|
-
</p>
|
1270
|
-
<p>
|
1271
|
-
See your C library manual for more details about how <code class="function">rename()</code> works
|
1272
|
-
on your system. It is not possible in general on Windows to rename
|
1273
|
-
a file that is open to some process.
|
1274
|
-
</p>
|
1275
|
-
<div class="variablelist"><table border="0">
|
1276
|
-
<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>
|
1289
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1290
|
-
<td> 0 if the renaming succeeded, -1 if an error occurred
|
1291
|
-
|
1292
|
-
</td>
|
1293
|
-
</tr>
|
1294
|
-
</tbody>
|
1295
|
-
</table></div>
|
1296
|
-
<p class="since">Since 2.6</p>
|
1297
|
-
</div>
|
1298
|
-
<hr>
|
1299
|
-
<div class="refsect2">
|
1300
|
-
<a name="g-mkdir"></a><h3>g_mkdir ()</h3>
|
1301
|
-
<pre class="programlisting"><span class="returnvalue">int</span> g_mkdir (<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>,
|
1302
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
1303
|
-
<p>
|
1304
|
-
A wrapper for the POSIX <code class="function">mkdir()</code> function. The <code class="function">mkdir()</code> function
|
1305
|
-
attempts to create a directory with the given name and permissions.
|
1306
|
-
The mode argument is ignored on Windows.
|
1307
|
-
</p>
|
1308
|
-
<p>
|
1309
|
-
See your C library manual for more details about <code class="function">mkdir()</code>.
|
1310
|
-
</p>
|
1311
|
-
<div class="variablelist"><table border="0">
|
1312
|
-
<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>
|
1325
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1326
|
-
<td> 0 if the directory was successfully created, -1 if an error
|
1327
|
-
occurred
|
1328
|
-
|
1329
|
-
</td>
|
1330
|
-
</tr>
|
1331
|
-
</tbody>
|
1332
|
-
</table></div>
|
1333
|
-
<p class="since">Since 2.6</p>
|
1334
|
-
</div>
|
1335
|
-
<hr>
|
1336
|
-
<div class="refsect2">
|
1337
|
-
<a name="GStatBuf"></a><h3>GStatBuf</h3>
|
1338
|
-
<p>
|
1339
|
-
A type corresponding to the appropriate struct type for the stat
|
1340
|
-
system call, depending on the platform and/or compiler being used.
|
1341
|
-
</p>
|
1342
|
-
<p>
|
1343
|
-
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
|
-
</p>
|
1345
|
-
</div>
|
1346
|
-
<hr>
|
1347
|
-
<div class="refsect2">
|
1348
|
-
<a name="g-stat"></a><h3>g_stat ()</h3>
|
1349
|
-
<pre class="programlisting"><span class="returnvalue">int</span> g_stat (<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>,
|
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>
|
1351
|
-
<p>
|
1352
|
-
A wrapper for the POSIX <code class="function">stat()</code> function. The <code class="function">stat()</code> function
|
1353
|
-
returns information about a file. On Windows the <code class="function">stat()</code> function in
|
1354
|
-
the C library checks only the FAT-style READONLY attribute and does
|
1355
|
-
not look at the ACL at all. Thus on Windows the protection bits in
|
1356
|
-
the st_mode field are a fabrication of little use.
|
1357
|
-
</p>
|
1358
|
-
<p>
|
1359
|
-
On Windows the Microsoft C libraries have several variants of the
|
1360
|
-
<span class="structname">stat</span> struct and <code class="function">stat()</code> function with names
|
1361
|
-
like "_stat", "_stat32", "_stat32i64" and "_stat64i32". The one
|
1362
|
-
used here is for 32-bit code the one with 32-bit size and time
|
1363
|
-
fields, specifically called "_stat32".
|
1364
|
-
</p>
|
1365
|
-
<p>
|
1366
|
-
In Microsoft's compiler, by default "struct stat" means one with
|
1367
|
-
64-bit time fields while in MinGW "struct stat" is the legacy one
|
1368
|
-
with 32-bit fields. To hopefully clear up this messs, the gstdio.h
|
1369
|
-
header defines a type GStatBuf which is the appropriate struct type
|
1370
|
-
depending on the platform and/or compiler being used. On POSIX it
|
1371
|
-
is just "struct stat", but note that even on POSIX platforms,
|
1372
|
-
"stat" might be a macro.
|
1373
|
-
</p>
|
1374
|
-
<p>
|
1375
|
-
See your C library manual for more details about <code class="function">stat()</code>.
|
1376
|
-
</p>
|
1377
|
-
<div class="variablelist"><table border="0">
|
1378
|
-
<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>
|
1392
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1393
|
-
<td> 0 if the information was successfully retrieved, -1 if an error
|
1394
|
-
occurred
|
1395
|
-
|
1396
|
-
</td>
|
1397
|
-
</tr>
|
1398
|
-
</tbody>
|
1399
|
-
</table></div>
|
1400
|
-
<p class="since">Since 2.6</p>
|
1401
|
-
</div>
|
1402
|
-
<hr>
|
1403
|
-
<div class="refsect2">
|
1404
|
-
<a name="g-lstat"></a><h3>g_lstat ()</h3>
|
1405
|
-
<pre class="programlisting"><span class="returnvalue">int</span> g_lstat (<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>,
|
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>
|
1407
|
-
<p>
|
1408
|
-
A wrapper for the POSIX <code class="function">lstat()</code> function. The <code class="function">lstat()</code> function is
|
1409
|
-
like <code class="function">stat()</code> except that in the case of symbolic links, it returns
|
1410
|
-
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 ()"><code class="function">g_lstat()</code></a>
|
1412
|
-
is identical to <a class="link" href="glib-File-Utilities.html#g-stat" title="g_stat ()"><code class="function">g_stat()</code></a>.
|
1413
|
-
</p>
|
1414
|
-
<p>
|
1415
|
-
See your C library manual for more details about <code class="function">lstat()</code>.
|
1416
|
-
</p>
|
1417
|
-
<div class="variablelist"><table border="0">
|
1418
|
-
<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>
|
1432
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1433
|
-
<td> 0 if the information was successfully retrieved, -1 if an error
|
1434
|
-
occurred
|
1435
|
-
|
1436
|
-
</td>
|
1437
|
-
</tr>
|
1438
|
-
</tbody>
|
1439
|
-
</table></div>
|
1440
|
-
<p class="since">Since 2.6</p>
|
1441
|
-
</div>
|
1442
|
-
<hr>
|
1443
|
-
<div class="refsect2">
|
1444
|
-
<a name="g-unlink"></a><h3>g_unlink ()</h3>
|
1445
|
-
<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
|
-
<p>
|
1447
|
-
A wrapper for the POSIX <code class="function">unlink()</code> function. The <code class="function">unlink()</code> function
|
1448
|
-
deletes a name from the filesystem. If this was the last link to the
|
1449
|
-
file and no processes have it opened, the diskspace occupied by the
|
1450
|
-
file is freed.
|
1451
|
-
</p>
|
1452
|
-
<p>
|
1453
|
-
See your C library manual for more details about <code class="function">unlink()</code>. Note
|
1454
|
-
that on Windows, it is in general not possible to delete files that
|
1455
|
-
are open to some process, or mapped into memory.
|
1456
|
-
</p>
|
1457
|
-
<div class="variablelist"><table border="0">
|
1458
|
-
<col align="left" valign="top">
|
1459
|
-
<tbody>
|
1460
|
-
<tr>
|
1461
|
-
<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>
|
1464
|
-
</tr>
|
1465
|
-
<tr>
|
1466
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1467
|
-
<td> 0 if the name was successfully deleted, -1 if an error
|
1468
|
-
occurred
|
1469
|
-
|
1470
|
-
</td>
|
1471
|
-
</tr>
|
1472
|
-
</tbody>
|
1473
|
-
</table></div>
|
1474
|
-
<p class="since">Since 2.6</p>
|
1475
|
-
</div>
|
1476
|
-
<hr>
|
1477
|
-
<div class="refsect2">
|
1478
|
-
<a name="g-remove"></a><h3>g_remove ()</h3>
|
1479
|
-
<pre class="programlisting"><span class="returnvalue">int</span> g_remove (<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>
|
1480
|
-
<p>
|
1481
|
-
A wrapper for the POSIX <code class="function">remove()</code> function. The <code class="function">remove()</code> function
|
1482
|
-
deletes a name from the filesystem.
|
1483
|
-
</p>
|
1484
|
-
<p>
|
1485
|
-
See your C library manual for more details about how <code class="function">remove()</code> works
|
1486
|
-
on your system. On Unix, <code class="function">remove()</code> removes also directories, as it
|
1487
|
-
calls <code class="function">unlink()</code> for files and <code class="function">rmdir()</code> for directories. On Windows,
|
1488
|
-
although <code class="function">remove()</code> in the C library only works for files, this
|
1489
|
-
function tries first <code class="function">remove()</code> and then if that fails <code class="function">rmdir()</code>, and
|
1490
|
-
thus works for both files and directories. Note however, that on
|
1491
|
-
Windows, it is in general not possible to remove a file that is
|
1492
|
-
open to some process, or mapped into memory.
|
1493
|
-
</p>
|
1494
|
-
<p>
|
1495
|
-
If this function fails on Windows you can't infer too much from the
|
1496
|
-
errno value. <code class="function">rmdir()</code> is tried regardless of what caused <code class="function">remove()</code> to
|
1497
|
-
fail. Any errno value set by <code class="function">remove()</code> will be overwritten by that
|
1498
|
-
set by <code class="function">rmdir()</code>.
|
1499
|
-
</p>
|
1500
|
-
<div class="variablelist"><table border="0">
|
1501
|
-
<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>
|
1509
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1510
|
-
<td> 0 if the file was successfully removed, -1 if an error
|
1511
|
-
occurred
|
1512
|
-
|
1513
|
-
</td>
|
1514
|
-
</tr>
|
1515
|
-
</tbody>
|
1516
|
-
</table></div>
|
1517
|
-
<p class="since">Since 2.6</p>
|
1518
|
-
</div>
|
1519
|
-
<hr>
|
1520
|
-
<div class="refsect2">
|
1521
|
-
<a name="g-rmdir"></a><h3>g_rmdir ()</h3>
|
1522
|
-
<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
|
-
<p>
|
1524
|
-
A wrapper for the POSIX <code class="function">rmdir()</code> function. The <code class="function">rmdir()</code> function
|
1525
|
-
deletes a directory from the filesystem.
|
1526
|
-
</p>
|
1527
|
-
<p>
|
1528
|
-
See your C library manual for more details about how <code class="function">rmdir()</code> works
|
1529
|
-
on your system.
|
1530
|
-
</p>
|
1531
|
-
<div class="variablelist"><table border="0">
|
1532
|
-
<col align="left" valign="top">
|
1533
|
-
<tbody>
|
1534
|
-
<tr>
|
1535
|
-
<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>
|
1538
|
-
</tr>
|
1539
|
-
<tr>
|
1540
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1541
|
-
<td> 0 if the directory was successfully removed, -1 if an error
|
1542
|
-
occurred
|
1543
|
-
|
1544
|
-
</td>
|
1545
|
-
</tr>
|
1546
|
-
</tbody>
|
1547
|
-
</table></div>
|
1548
|
-
<p class="since">Since 2.6</p>
|
1549
|
-
</div>
|
1550
|
-
<hr>
|
1551
|
-
<div class="refsect2">
|
1552
|
-
<a name="g-fopen"></a><h3>g_fopen ()</h3>
|
1553
|
-
<pre class="programlisting"><span class="returnvalue">FILE</span> * g_fopen (<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>,
|
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>
|
1555
|
-
<p>
|
1556
|
-
A wrapper for the stdio <code class="function">fopen()</code> function. The <code class="function">fopen()</code> function
|
1557
|
-
opens a file and associates a new stream with it.
|
1558
|
-
</p>
|
1559
|
-
<p>
|
1560
|
-
Because file descriptors are specific to the C library on Windows,
|
1561
|
-
and a file descriptor is partof the <span class="type">FILE</span> struct, the
|
1562
|
-
<span class="type">FILE</span> pointer returned by this function makes sense
|
1563
|
-
only to functions in the same C library. Thus if the GLib-using
|
1564
|
-
code uses a different C library than GLib does, the
|
1565
|
-
<span class="type">FILE</span> pointer returned by this function cannot be
|
1566
|
-
passed to C library functions like <code class="function">fprintf()</code> or <code class="function">fread()</code>.
|
1567
|
-
</p>
|
1568
|
-
<p>
|
1569
|
-
See your C library manual for more details about <code class="function">fopen()</code>.
|
1570
|
-
</p>
|
1571
|
-
<div class="variablelist"><table border="0">
|
1572
|
-
<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>
|
1586
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1587
|
-
<td> A <span class="type">FILE</span> pointer if the file was successfully
|
1588
|
-
opened, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if an error occurred
|
1589
|
-
|
1590
|
-
</td>
|
1591
|
-
</tr>
|
1592
|
-
</tbody>
|
1593
|
-
</table></div>
|
1594
|
-
<p class="since">Since 2.6</p>
|
1595
|
-
</div>
|
1596
|
-
<hr>
|
1597
|
-
<div class="refsect2">
|
1598
|
-
<a name="g-freopen"></a><h3>g_freopen ()</h3>
|
1599
|
-
<pre class="programlisting"><span class="returnvalue">FILE</span> * g_freopen (<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>,
|
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>
|
1602
|
-
<p>
|
1603
|
-
A wrapper for the POSIX <code class="function">freopen()</code> function. The <code class="function">freopen()</code> function
|
1604
|
-
opens a file and associates it with an existing stream.
|
1605
|
-
</p>
|
1606
|
-
<p>
|
1607
|
-
See your C library manual for more details about <code class="function">freopen()</code>.
|
1608
|
-
</p>
|
1609
|
-
<div class="variablelist"><table border="0">
|
1610
|
-
<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>
|
1629
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1630
|
-
<td> A <span class="type">FILE</span> pointer if the file was successfully
|
1631
|
-
opened, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if an error occurred.
|
1632
|
-
|
1633
|
-
</td>
|
1634
|
-
</tr>
|
1635
|
-
</tbody>
|
1636
|
-
</table></div>
|
1637
|
-
<p class="since">Since 2.6</p>
|
1638
|
-
</div>
|
1639
|
-
<hr>
|
1640
|
-
<div class="refsect2">
|
1641
|
-
<a name="g-chmod"></a><h3>g_chmod ()</h3>
|
1642
|
-
<pre class="programlisting"><span class="returnvalue">int</span> g_chmod (<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>,
|
1643
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
1644
|
-
<p>
|
1645
|
-
A wrapper for the POSIX <code class="function">chmod()</code> function. The <code class="function">chmod()</code> function is
|
1646
|
-
used to set the permissions of a file system object.
|
1647
|
-
</p>
|
1648
|
-
<p>
|
1649
|
-
On Windows the file protection mechanism is not at all POSIX-like,
|
1650
|
-
and the underlying <code class="function">chmod()</code> function in the C library just sets or
|
1651
|
-
clears the FAT-style READONLY attribute. It does not touch any
|
1652
|
-
ACL. Software that needs to manage file permissions on Windows
|
1653
|
-
exactly should use the Win32 API.
|
1654
|
-
</p>
|
1655
|
-
<p>
|
1656
|
-
See your C library manual for more details about <code class="function">chmod()</code>.
|
1657
|
-
</p>
|
1658
|
-
<div class="variablelist"><table border="0">
|
1659
|
-
<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>
|
1672
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1673
|
-
<td> zero if the operation succeeded, -1 on error.
|
1674
|
-
|
1675
|
-
</td>
|
1676
|
-
</tr>
|
1677
|
-
</tbody>
|
1678
|
-
</table></div>
|
1679
|
-
<p class="since">Since 2.8</p>
|
1680
|
-
</div>
|
1681
|
-
<hr>
|
1682
|
-
<div class="refsect2">
|
1683
|
-
<a name="g-access"></a><h3>g_access ()</h3>
|
1684
|
-
<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
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
1686
|
-
<p>
|
1687
|
-
A wrapper for the POSIX <code class="function">access()</code> function. This function is used to
|
1688
|
-
test a pathname for one or several of read, write or execute
|
1689
|
-
permissions, or just existence.
|
1690
|
-
</p>
|
1691
|
-
<p>
|
1692
|
-
On Windows, the file protection mechanism is not at all POSIX-like,
|
1693
|
-
and the underlying function in the C library only checks the
|
1694
|
-
FAT-style READONLY attribute, and does not look at the ACL of a
|
1695
|
-
file at all. This function is this in practise almost useless on
|
1696
|
-
Windows. Software that needs to handle file permissions on Windows
|
1697
|
-
more exactly should use the Win32 API.
|
1698
|
-
</p>
|
1699
|
-
<p>
|
1700
|
-
See your C library manual for more details about <code class="function">access()</code>.
|
1701
|
-
</p>
|
1702
|
-
<div class="variablelist"><table border="0">
|
1703
|
-
<col align="left" valign="top">
|
1704
|
-
<tbody>
|
1705
|
-
<tr>
|
1706
|
-
<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>
|
1709
|
-
</tr>
|
1710
|
-
<tr>
|
1711
|
-
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
1712
|
-
<td>as in <code class="function">access()</code>
|
1713
|
-
</td>
|
1714
|
-
</tr>
|
1715
|
-
<tr>
|
1716
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1717
|
-
<td> zero if the pathname refers to an existing file system
|
1718
|
-
object that has all the tested permissions, or -1 otherwise or on
|
1719
|
-
error.
|
1720
|
-
|
1721
|
-
</td>
|
1722
|
-
</tr>
|
1723
|
-
</tbody>
|
1724
|
-
</table></div>
|
1725
|
-
<p class="since">Since 2.8</p>
|
1726
|
-
</div>
|
1727
|
-
<hr>
|
1728
|
-
<div class="refsect2">
|
1729
|
-
<a name="g-creat"></a><h3>g_creat ()</h3>
|
1730
|
-
<pre class="programlisting"><span class="returnvalue">int</span> g_creat (<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>,
|
1731
|
-
<em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
|
1732
|
-
<p>
|
1733
|
-
A wrapper for the POSIX <code class="function">creat()</code> function. The <code class="function">creat()</code> function is
|
1734
|
-
used to convert a pathname into a file descriptor, creating a file
|
1735
|
-
if necessary.
|
1736
|
-
</p>
|
1737
|
-
<p>
|
1738
|
-
On POSIX systems file descriptors are implemented by the operating
|
1739
|
-
system. On Windows, it's the C library that implements <code class="function">creat()</code> and
|
1740
|
-
file descriptors. The actual Windows API for opening files is
|
1741
|
-
different, see MSDN documentation for <code class="function">CreateFile()</code>. The Win32 API
|
1742
|
-
uses file handles, which are more randomish integers, not small
|
1743
|
-
integers like file descriptors.
|
1744
|
-
</p>
|
1745
|
-
<p>
|
1746
|
-
Because file descriptors are specific to the C library on Windows,
|
1747
|
-
the file descriptor returned by this function makes sense only to
|
1748
|
-
functions in the same C library. Thus if the GLib-using code uses a
|
1749
|
-
different C library than GLib does, the file descriptor returned by
|
1750
|
-
this function cannot be passed to C library functions like <code class="function">write()</code>
|
1751
|
-
or <code class="function">read()</code>.
|
1752
|
-
</p>
|
1753
|
-
<p>
|
1754
|
-
See your C library manual for more details about <code class="function">creat()</code>.
|
1755
|
-
</p>
|
1756
|
-
<div class="variablelist"><table border="0">
|
1757
|
-
<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>
|
1770
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1771
|
-
<td> a new file descriptor, or -1 if an error occurred. The
|
1772
|
-
return value can be used exactly like the return value from <code class="function">creat()</code>.
|
1773
|
-
|
1774
|
-
</td>
|
1775
|
-
</tr>
|
1776
|
-
</tbody>
|
1777
|
-
</table></div>
|
1778
|
-
<p class="since">Since 2.8</p>
|
1779
|
-
</div>
|
1780
|
-
<hr>
|
1781
|
-
<div class="refsect2">
|
1782
|
-
<a name="g-chdir"></a><h3>g_chdir ()</h3>
|
1783
|
-
<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
|
-
<p>
|
1785
|
-
A wrapper for the POSIX <code class="function">chdir()</code> function. The function changes the
|
1786
|
-
current directory of the process to <em class="parameter"><code>path</code></em>.
|
1787
|
-
</p>
|
1788
|
-
<p>
|
1789
|
-
See your C library manual for more details about <code class="function">chdir()</code>.
|
1790
|
-
</p>
|
1791
|
-
<div class="variablelist"><table border="0">
|
1792
|
-
<col align="left" valign="top">
|
1793
|
-
<tbody>
|
1794
|
-
<tr>
|
1795
|
-
<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>
|
1798
|
-
</tr>
|
1799
|
-
<tr>
|
1800
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1801
|
-
<td> 0 on success, -1 if an error occurred.
|
1802
|
-
|
1803
|
-
</td>
|
1804
|
-
</tr>
|
1805
|
-
</tbody>
|
1806
|
-
</table></div>
|
1807
|
-
<p class="since">Since 2.8</p>
|
1808
|
-
</div>
|
1809
|
-
<hr>
|
1810
|
-
<div class="refsect2">
|
1811
|
-
<a name="g-utime"></a><h3>g_utime ()</h3>
|
1812
|
-
<pre class="programlisting"><span class="returnvalue">int</span> g_utime (<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>,
|
1813
|
-
<em class="parameter"><code><span class="type">struct utimbuf</span> *utb</code></em>);</pre>
|
1814
|
-
<p>
|
1815
|
-
A wrapper for the POSIX <code class="function">utime()</code> function. The <code class="function">utime()</code> function
|
1816
|
-
sets the access and modification timestamps of a file.
|
1817
|
-
</p>
|
1818
|
-
<p>
|
1819
|
-
See your C library manual for more details about how <code class="function">utime()</code> works
|
1820
|
-
on your system.
|
1821
|
-
</p>
|
1822
|
-
<div class="variablelist"><table border="0">
|
1823
|
-
<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>
|
1836
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1837
|
-
<td> 0 if the operation was successful, -1 if an error
|
1838
|
-
occurred
|
1839
|
-
|
1840
|
-
</td>
|
1841
|
-
</tr>
|
1842
|
-
</tbody>
|
1843
|
-
</table></div>
|
1844
|
-
<p class="since">Since 2.18</p>
|
1845
|
-
</div>
|
1846
|
-
</div>
|
1847
|
-
</div>
|
1848
|
-
<div class="footer">
|
1849
|
-
<hr>
|
1850
|
-
Generated by GTK-Doc V1.15.1</div>
|
1851
|
-
</body>
|
1852
|
-
</html>
|