gio2 0.90.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (856) hide show
  1. data/ChangeLog +60 -0
  2. data/README +34 -0
  3. data/Rakefile +76 -0
  4. data/ext/gio2/depend +5 -0
  5. data/ext/gio2/extconf.rb +91 -0
  6. data/ext/gio2/gappinfo.c +318 -0
  7. data/ext/gio2/gapplaunchcontext.c +79 -0
  8. data/ext/gio2/gasyncinitable.c +244 -0
  9. data/ext/gio2/gasyncresult.c +39 -0
  10. data/ext/gio2/gbufferedinputstream.c +184 -0
  11. data/ext/gio2/gbufferedoutputstream.c +82 -0
  12. data/ext/gio2/gcancellable.c +177 -0
  13. data/ext/gio2/gcharsetconverter.c +72 -0
  14. data/ext/gio2/gcontenttype.c +135 -0
  15. data/ext/gio2/gconverter.c +117 -0
  16. data/ext/gio2/gconverterinputstream.c +48 -0
  17. data/ext/gio2/gconverteroutputstream.c +48 -0
  18. data/ext/gio2/gdatainputstream.c +341 -0
  19. data/ext/gio2/gdataoutputstream.c +202 -0
  20. data/ext/gio2/gdesktopappinfo.c +90 -0
  21. data/ext/gio2/gdrive.c +267 -0
  22. data/ext/gio2/gemblem.c +71 -0
  23. data/ext/gio2/gemblemedicon.c +63 -0
  24. data/ext/gio2/gfile.c +2058 -0
  25. data/ext/gio2/gfileattribute.c +263 -0
  26. data/ext/gio2/gfileattributematcher.c +90 -0
  27. data/ext/gio2/gfiledescriptorbased.c +42 -0
  28. data/ext/gio2/gfileenumerator.c +167 -0
  29. data/ext/gio2/gfileicon.c +46 -0
  30. data/ext/gio2/gfileinfo.c +641 -0
  31. data/ext/gio2/gfileinputstream.c +92 -0
  32. data/ext/gio2/gfileiostream.c +98 -0
  33. data/ext/gio2/gfilemonitor.c +63 -0
  34. data/ext/gio2/gfilenamecompleter.c +72 -0
  35. data/ext/gio2/gfileoutputstream.c +100 -0
  36. data/ext/gio2/gfilterinputstream.c +56 -0
  37. data/ext/gio2/gfilteroutputstream.c +56 -0
  38. data/ext/gio2/gicon.c +69 -0
  39. data/ext/gio2/ginetaddress.c +188 -0
  40. data/ext/gio2/ginetsocketaddress.c +54 -0
  41. data/ext/gio2/ginitable.c +195 -0
  42. data/ext/gio2/ginputstream.c +341 -0
  43. data/ext/gio2/gio2.c +120 -0
  44. data/ext/gio2/gio2.def +2 -0
  45. data/ext/gio2/gio2.h +343 -0
  46. data/ext/gio2/gioerror.c +67 -0
  47. data/ext/gio2/giomodule.c +63 -0
  48. data/ext/gio2/gioscheduler.c +195 -0
  49. data/ext/gio2/giostream.c +129 -0
  50. data/ext/gio2/gloadableicon.c +91 -0
  51. data/ext/gio2/gmemoryinputstream.c +65 -0
  52. data/ext/gio2/gmemoryoutputstream.c +65 -0
  53. data/ext/gio2/gmount.c +283 -0
  54. data/ext/gio2/gmountoperation.c +168 -0
  55. data/ext/gio2/gnetworkaddress.c +71 -0
  56. data/ext/gio2/gnetworkservice.c +64 -0
  57. data/ext/gio2/goutputstream.c +343 -0
  58. data/ext/gio2/gresolver.c +230 -0
  59. data/ext/gio2/gseekable.c +89 -0
  60. data/ext/gio2/gsimpleasyncresult.c +153 -0
  61. data/ext/gio2/gsocket.c +451 -0
  62. data/ext/gio2/gsocketaddress.c +45 -0
  63. data/ext/gio2/gsocketclient.c +273 -0
  64. data/ext/gio2/gsocketconnectable.c +97 -0
  65. data/ext/gio2/gsocketconnection.c +82 -0
  66. data/ext/gio2/gsocketcontrolmessage.c +82 -0
  67. data/ext/gio2/gsocketlistener.c +239 -0
  68. data/ext/gio2/gsocketservice.c +64 -0
  69. data/ext/gio2/gsrvtarget.c +77 -0
  70. data/ext/gio2/gtcpconnection.c +48 -0
  71. data/ext/gio2/gthemedicon.c +86 -0
  72. data/ext/gio2/gthreadedsocketservice.c +39 -0
  73. data/ext/gio2/gunixconnection.c +69 -0
  74. data/ext/gio2/gunixfdlist.c +112 -0
  75. data/ext/gio2/gunixfdmessage.c +81 -0
  76. data/ext/gio2/gunixinputstream.c +73 -0
  77. data/ext/gio2/gunixmounts.c +346 -0
  78. data/ext/gio2/gunixoutputstream.c +73 -0
  79. data/ext/gio2/gunixsocketaddress.c +79 -0
  80. data/ext/gio2/gvfs.c +84 -0
  81. data/ext/gio2/gvolume.c +191 -0
  82. data/ext/gio2/gvolumemonitor.c +77 -0
  83. data/ext/gio2/gzlibcompressor.c +47 -0
  84. data/ext/gio2/gzlibdecompressor.c +43 -0
  85. data/ext/gio2/util.c +323 -0
  86. data/extconf.rb +49 -0
  87. data/lib/1.8/gio2.so +0 -0
  88. data/lib/1.9/gio2.so +0 -0
  89. data/lib/gio2.rb +141 -0
  90. data/vendor/local/bin/envsubst.exe +0 -0
  91. data/vendor/local/bin/gettext.exe +0 -0
  92. data/vendor/local/bin/gettext.sh +123 -0
  93. data/vendor/local/bin/glib-genmarshal.exe +0 -0
  94. data/vendor/local/bin/glib-gettextize +188 -0
  95. data/vendor/local/bin/glib-mkenums +537 -0
  96. data/vendor/local/bin/gobject-query.exe +0 -0
  97. data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
  98. data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
  99. data/vendor/local/bin/intl.dll +0 -0
  100. data/vendor/local/bin/libasprintf-0.dll +0 -0
  101. data/vendor/local/bin/libgcc_s_dw2-1.dll +0 -0
  102. data/vendor/local/bin/libgio-2.0-0.dll +0 -0
  103. data/vendor/local/bin/libglib-2.0-0.dll +0 -0
  104. data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
  105. data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
  106. data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
  107. data/vendor/local/bin/ngettext.exe +0 -0
  108. data/vendor/local/include/autosprintf.h +66 -0
  109. data/vendor/local/include/glib-2.0/gio/gappinfo.h +236 -0
  110. data/vendor/local/include/glib-2.0/gio/gasyncinitable.h +119 -0
  111. data/vendor/local/include/glib-2.0/gio/gasyncresult.h +73 -0
  112. data/vendor/local/include/glib-2.0/gio/gbufferedinputstream.h +123 -0
  113. data/vendor/local/include/glib-2.0/gio/gbufferedoutputstream.h +81 -0
  114. data/vendor/local/include/glib-2.0/gio/gcancellable.h +103 -0
  115. data/vendor/local/include/glib-2.0/gio/gcharsetconverter.h +60 -0
  116. data/vendor/local/include/glib-2.0/gio/gcontenttype.h +57 -0
  117. data/vendor/local/include/glib-2.0/gio/gconverter.h +95 -0
  118. data/vendor/local/include/glib-2.0/gio/gconverterinputstream.h +79 -0
  119. data/vendor/local/include/glib-2.0/gio/gconverteroutputstream.h +79 -0
  120. data/vendor/local/include/glib-2.0/gio/gcredentials.h +76 -0
  121. data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +150 -0
  122. data/vendor/local/include/glib-2.0/gio/gdataoutputstream.h +115 -0
  123. data/vendor/local/include/glib-2.0/gio/gdbusaddress.h +58 -0
  124. data/vendor/local/include/glib-2.0/gio/gdbusauthobserver.h +46 -0
  125. data/vendor/local/include/glib-2.0/gio/gdbusconnection.h +562 -0
  126. data/vendor/local/include/glib-2.0/gio/gdbuserror.h +100 -0
  127. data/vendor/local/include/glib-2.0/gio/gdbusintrospection.h +286 -0
  128. data/vendor/local/include/glib-2.0/gio/gdbusmessage.h +149 -0
  129. data/vendor/local/include/glib-2.0/gio/gdbusmethodinvocation.h +73 -0
  130. data/vendor/local/include/glib-2.0/gio/gdbusnameowning.h +112 -0
  131. data/vendor/local/include/glib-2.0/gio/gdbusnamewatching.h +94 -0
  132. data/vendor/local/include/glib-2.0/gio/gdbusproxy.h +167 -0
  133. data/vendor/local/include/glib-2.0/gio/gdbusserver.h +54 -0
  134. data/vendor/local/include/glib-2.0/gio/gdbusutils.h +44 -0
  135. data/vendor/local/include/glib-2.0/gio/gdrive.h +225 -0
  136. data/vendor/local/include/glib-2.0/gio/gemblem.h +58 -0
  137. data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +62 -0
  138. data/vendor/local/include/glib-2.0/gio/gfile.h +1017 -0
  139. data/vendor/local/include/glib-2.0/gio/gfileattribute.h +77 -0
  140. data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +132 -0
  141. data/vendor/local/include/glib-2.0/gio/gfileicon.h +56 -0
  142. data/vendor/local/include/glib-2.0/gio/gfileinfo.h +952 -0
  143. data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +112 -0
  144. data/vendor/local/include/glib-2.0/gio/gfileiostream.h +118 -0
  145. data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +95 -0
  146. data/vendor/local/include/glib-2.0/gio/gfilenamecompleter.h +76 -0
  147. data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +119 -0
  148. data/vendor/local/include/glib-2.0/gio/gfilterinputstream.h +76 -0
  149. data/vendor/local/include/glib-2.0/gio/gfilteroutputstream.h +76 -0
  150. data/vendor/local/include/glib-2.0/gio/gicon.h +91 -0
  151. data/vendor/local/include/glib-2.0/gio/ginetaddress.h +103 -0
  152. data/vendor/local/include/glib-2.0/gio/ginetsocketaddress.h +69 -0
  153. data/vendor/local/include/glib-2.0/gio/ginitable.h +96 -0
  154. data/vendor/local/include/glib-2.0/gio/ginputstream.h +172 -0
  155. data/vendor/local/include/glib-2.0/gio/gio.h +122 -0
  156. data/vendor/local/include/glib-2.0/gio/gioenums.h +1221 -0
  157. data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +121 -0
  158. data/vendor/local/include/glib-2.0/gio/gioerror.h +52 -0
  159. data/vendor/local/include/glib-2.0/gio/giomodule.h +132 -0
  160. data/vendor/local/include/glib-2.0/gio/gioscheduler.h +52 -0
  161. data/vendor/local/include/glib-2.0/gio/giostream.h +112 -0
  162. data/vendor/local/include/glib-2.0/gio/giotypes.h +375 -0
  163. data/vendor/local/include/glib-2.0/gio/gloadableicon.h +97 -0
  164. data/vendor/local/include/glib-2.0/gio/gmemoryinputstream.h +82 -0
  165. data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +98 -0
  166. data/vendor/local/include/glib-2.0/gio/gmount.h +242 -0
  167. data/vendor/local/include/glib-2.0/gio/gmountoperation.h +123 -0
  168. data/vendor/local/include/glib-2.0/gio/gnativevolumemonitor.h +62 -0
  169. data/vendor/local/include/glib-2.0/gio/gnetworkaddress.h +73 -0
  170. data/vendor/local/include/glib-2.0/gio/gnetworkservice.h +71 -0
  171. data/vendor/local/include/glib-2.0/gio/goutputstream.h +207 -0
  172. data/vendor/local/include/glib-2.0/gio/gpermission.h +118 -0
  173. data/vendor/local/include/glib-2.0/gio/gproxy.h +123 -0
  174. data/vendor/local/include/glib-2.0/gio/gproxyaddress.h +76 -0
  175. data/vendor/local/include/glib-2.0/gio/gproxyaddressenumerator.h +75 -0
  176. data/vendor/local/include/glib-2.0/gio/gproxyresolver.h +96 -0
  177. data/vendor/local/include/glib-2.0/gio/gresolver.h +167 -0
  178. data/vendor/local/include/glib-2.0/gio/gseekable.h +99 -0
  179. data/vendor/local/include/glib-2.0/gio/gsettings.h +258 -0
  180. data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +138 -0
  181. data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +125 -0
  182. data/vendor/local/include/glib-2.0/gio/gsimplepermission.h +45 -0
  183. data/vendor/local/include/glib-2.0/gio/gsocket.h +194 -0
  184. data/vendor/local/include/glib-2.0/gio/gsocketaddress.h +79 -0
  185. data/vendor/local/include/glib-2.0/gio/gsocketaddressenumerator.h +89 -0
  186. data/vendor/local/include/glib-2.0/gio/gsocketclient.h +152 -0
  187. data/vendor/local/include/glib-2.0/gio/gsocketconnectable.h +74 -0
  188. data/vendor/local/include/glib-2.0/gio/gsocketconnection.h +91 -0
  189. data/vendor/local/include/glib-2.0/gio/gsocketcontrolmessage.h +105 -0
  190. data/vendor/local/include/glib-2.0/gio/gsocketlistener.h +138 -0
  191. data/vendor/local/include/glib-2.0/gio/gsocketservice.h +88 -0
  192. data/vendor/local/include/glib-2.0/gio/gsrvtarget.h +52 -0
  193. data/vendor/local/include/glib-2.0/gio/gtcpconnection.h +68 -0
  194. data/vendor/local/include/glib-2.0/gio/gthemedicon.h +63 -0
  195. data/vendor/local/include/glib-2.0/gio/gthreadedsocketservice.h +81 -0
  196. data/vendor/local/include/glib-2.0/gio/gvfs.h +125 -0
  197. data/vendor/local/include/glib-2.0/gio/gvolume.h +211 -0
  198. data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +150 -0
  199. data/vendor/local/include/glib-2.0/gio/gzlibcompressor.h +60 -0
  200. data/vendor/local/include/glib-2.0/gio/gzlibdecompressor.h +57 -0
  201. data/vendor/local/include/glib-2.0/glib-object.h +42 -0
  202. data/vendor/local/include/glib-2.0/glib.h +99 -0
  203. data/vendor/local/include/glib-2.0/glib/galloca.h +110 -0
  204. data/vendor/local/include/glib-2.0/glib/garray.h +179 -0
  205. data/vendor/local/include/glib-2.0/glib/gasyncqueue.h +120 -0
  206. data/vendor/local/include/glib-2.0/glib/gatomic.h +105 -0
  207. data/vendor/local/include/glib-2.0/glib/gbacktrace.h +68 -0
  208. data/vendor/local/include/glib-2.0/glib/gbase64.h +57 -0
  209. data/vendor/local/include/glib-2.0/glib/gbitlock.h +43 -0
  210. data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +215 -0
  211. data/vendor/local/include/glib-2.0/glib/gcache.h +69 -0
  212. data/vendor/local/include/glib-2.0/glib/gchecksum.h +86 -0
  213. data/vendor/local/include/glib-2.0/glib/gcompletion.h +81 -0
  214. data/vendor/local/include/glib-2.0/glib/gconvert.h +162 -0
  215. data/vendor/local/include/glib-2.0/glib/gdataset.h +122 -0
  216. data/vendor/local/include/glib-2.0/glib/gdate.h +263 -0
  217. data/vendor/local/include/glib-2.0/glib/gdatetime.h +217 -0
  218. data/vendor/local/include/glib-2.0/glib/gdir.h +52 -0
  219. data/vendor/local/include/glib-2.0/glib/gerror.h +98 -0
  220. data/vendor/local/include/glib-2.0/glib/gfileutils.h +128 -0
  221. data/vendor/local/include/glib-2.0/glib/ghash.h +166 -0
  222. data/vendor/local/include/glib-2.0/glib/ghook.h +181 -0
  223. data/vendor/local/include/glib-2.0/glib/ghostutils.h +40 -0
  224. data/vendor/local/include/glib-2.0/glib/gi18n-lib.h +38 -0
  225. data/vendor/local/include/glib-2.0/glib/gi18n.h +34 -0
  226. data/vendor/local/include/glib-2.0/glib/giochannel.h +366 -0
  227. data/vendor/local/include/glib-2.0/glib/gkeyfile.h +266 -0
  228. data/vendor/local/include/glib-2.0/glib/glist.h +120 -0
  229. data/vendor/local/include/glib-2.0/glib/gmacros.h +284 -0
  230. data/vendor/local/include/glib-2.0/glib/gmain.h +531 -0
  231. data/vendor/local/include/glib-2.0/glib/gmappedfile.h +49 -0
  232. data/vendor/local/include/glib-2.0/glib/gmarkup.h +163 -0
  233. data/vendor/local/include/glib-2.0/glib/gmem.h +309 -0
  234. data/vendor/local/include/glib-2.0/glib/gmessages.h +343 -0
  235. data/vendor/local/include/glib-2.0/glib/gnode.h +290 -0
  236. data/vendor/local/include/glib-2.0/glib/goption.h +370 -0
  237. data/vendor/local/include/glib-2.0/glib/gpattern.h +49 -0
  238. data/vendor/local/include/glib-2.0/glib/gpoll.h +117 -0
  239. data/vendor/local/include/glib-2.0/glib/gprimes.h +51 -0
  240. data/vendor/local/include/glib-2.0/glib/gprintf.h +52 -0
  241. data/vendor/local/include/glib-2.0/glib/gqsort.h +46 -0
  242. data/vendor/local/include/glib-2.0/glib/gquark.h +52 -0
  243. data/vendor/local/include/glib-2.0/glib/gqueue.h +127 -0
  244. data/vendor/local/include/glib-2.0/glib/grand.h +85 -0
  245. data/vendor/local/include/glib-2.0/glib/gregex.h +471 -0
  246. data/vendor/local/include/glib-2.0/glib/grel.h +101 -0
  247. data/vendor/local/include/glib-2.0/glib/gscanner.h +278 -0
  248. data/vendor/local/include/glib-2.0/glib/gsequence.h +128 -0
  249. data/vendor/local/include/glib-2.0/glib/gshell.h +55 -0
  250. data/vendor/local/include/glib-2.0/glib/gslice.h +86 -0
  251. data/vendor/local/include/glib-2.0/glib/gslist.h +114 -0
  252. data/vendor/local/include/glib-2.0/glib/gspawn.h +139 -0
  253. data/vendor/local/include/glib-2.0/glib/gstdio.h +147 -0
  254. data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +269 -0
  255. data/vendor/local/include/glib-2.0/glib/gstring.h +178 -0
  256. data/vendor/local/include/glib-2.0/glib/gtestutils.h +297 -0
  257. data/vendor/local/include/glib-2.0/glib/gthread.h +407 -0
  258. data/vendor/local/include/glib-2.0/glib/gthreadpool.h +114 -0
  259. data/vendor/local/include/glib-2.0/glib/gtimer.h +65 -0
  260. data/vendor/local/include/glib-2.0/glib/gtimezone.h +44 -0
  261. data/vendor/local/include/glib-2.0/glib/gtree.h +91 -0
  262. data/vendor/local/include/glib-2.0/glib/gtypes.h +451 -0
  263. data/vendor/local/include/glib-2.0/glib/gunicode.h +421 -0
  264. data/vendor/local/include/glib-2.0/glib/gurifuncs.h +81 -0
  265. data/vendor/local/include/glib-2.0/glib/gutils.h +490 -0
  266. data/vendor/local/include/glib-2.0/glib/gvariant.h +248 -0
  267. data/vendor/local/include/glib-2.0/glib/gvarianttype.h +334 -0
  268. data/vendor/local/include/glib-2.0/glib/gwin32.h +114 -0
  269. data/vendor/local/include/glib-2.0/gmodule.h +101 -0
  270. data/vendor/local/include/glib-2.0/gobject/gbinding.h +136 -0
  271. data/vendor/local/include/glib-2.0/gobject/gboxed.h +248 -0
  272. data/vendor/local/include/glib-2.0/gobject/gclosure.h +251 -0
  273. data/vendor/local/include/glib-2.0/gobject/genums.h +261 -0
  274. data/vendor/local/include/glib-2.0/gobject/gmarshal.h +186 -0
  275. data/vendor/local/include/glib-2.0/gobject/gobject.h +567 -0
  276. data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +193 -0
  277. data/vendor/local/include/glib-2.0/gobject/gparam.h +415 -0
  278. data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +1137 -0
  279. data/vendor/local/include/glib-2.0/gobject/gsignal.h +509 -0
  280. data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +51 -0
  281. data/vendor/local/include/glib-2.0/gobject/gtype.h +1736 -0
  282. data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +263 -0
  283. data/vendor/local/include/glib-2.0/gobject/gtypeplugin.h +134 -0
  284. data/vendor/local/include/glib-2.0/gobject/gvalue.h +159 -0
  285. data/vendor/local/include/glib-2.0/gobject/gvaluearray.h +77 -0
  286. data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +227 -0
  287. data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +260 -0
  288. data/vendor/local/include/libintl.h +464 -0
  289. data/vendor/local/lib/GNU.Gettext.dll +0 -0
  290. data/vendor/local/lib/gio-2.0.def +1143 -0
  291. data/vendor/local/lib/gio-2.0.lib +0 -0
  292. data/vendor/local/lib/glib-2.0.def +1452 -0
  293. data/vendor/local/lib/glib-2.0.lib +0 -0
  294. data/vendor/local/lib/glib-2.0/include/glibconfig.h +284 -0
  295. data/vendor/local/lib/gmodule-2.0.def +11 -0
  296. data/vendor/local/lib/gmodule-2.0.lib +0 -0
  297. data/vendor/local/lib/gobject-2.0.def +370 -0
  298. data/vendor/local/lib/gobject-2.0.lib +0 -0
  299. data/vendor/local/lib/gthread-2.0.def +3 -0
  300. data/vendor/local/lib/gthread-2.0.lib +0 -0
  301. data/vendor/local/lib/intl.lib +0 -0
  302. data/vendor/local/lib/libasprintf.dll.a +0 -0
  303. data/vendor/local/lib/libgio-2.0.dll.a +0 -0
  304. data/vendor/local/lib/libglib-2.0.dll.a +0 -0
  305. data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
  306. data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
  307. data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
  308. data/vendor/local/lib/libintl.def +31 -0
  309. data/vendor/local/lib/libintl.dll.a +0 -0
  310. data/vendor/local/lib/pkgconfig/gio-2.0.pc +15 -0
  311. data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +11 -0
  312. data/vendor/local/lib/pkgconfig/glib-2.0.pc +15 -0
  313. data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +14 -0
  314. data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +14 -0
  315. data/vendor/local/lib/pkgconfig/gobject-2.0.pc +11 -0
  316. data/vendor/local/lib/pkgconfig/gthread-2.0.pc +11 -0
  317. data/vendor/local/manifest/gettext-runtime-dev_0.18.1.1-2_win32.mft +81 -0
  318. data/vendor/local/manifest/gettext-runtime_0.18.1.1-2_win32.mft +3 -0
  319. data/vendor/local/manifest/glib-dev_2.24.2-2_win32.mft +491 -0
  320. data/vendor/local/manifest/glib-dev_2.26.0-2_win32.mft +570 -0
  321. data/vendor/local/manifest/glib_2.24.2-2_win32.mft +101 -0
  322. data/vendor/local/manifest/glib_2.26.0-2_win32.mft +102 -0
  323. data/vendor/local/share/aclocal/glib-2.0.m4 +211 -0
  324. data/vendor/local/share/aclocal/glib-gettext.m4 +432 -0
  325. data/vendor/local/share/doc/gettext/bind_textdomain_codeset.3.html +165 -0
  326. data/vendor/local/share/doc/gettext/bindtextdomain.3.html +160 -0
  327. data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext.html +8 -0
  328. data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceManager.html +305 -0
  329. data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceSet.html +356 -0
  330. data/vendor/local/share/doc/gettext/csharpdoc/begin.html +11 -0
  331. data/vendor/local/share/doc/gettext/csharpdoc/index.html +10 -0
  332. data/vendor/local/share/doc/gettext/csharpdoc/namespaces.html +6 -0
  333. data/vendor/local/share/doc/gettext/envsubst.1.html +213 -0
  334. data/vendor/local/share/doc/gettext/gettext.1.html +266 -0
  335. data/vendor/local/share/doc/gettext/gettext.3.html +186 -0
  336. data/vendor/local/share/doc/gettext/ngettext.1.html +280 -0
  337. data/vendor/local/share/doc/gettext/ngettext.3.html +143 -0
  338. data/vendor/local/share/doc/gettext/textdomain.3.html +150 -0
  339. data/vendor/local/share/doc/glib-2.24.2/COPYING +482 -0
  340. data/vendor/local/share/doc/glib-2.26.0/COPYING +482 -0
  341. data/vendor/local/share/doc/glib-dev-2.24.2/COPYING +482 -0
  342. data/vendor/local/share/doc/glib-dev-2.26.0/COPYING +482 -0
  343. data/vendor/local/share/doc/libasprintf/autosprintf_all.html +174 -0
  344. data/vendor/local/share/glib-2.0/gdb/glib.py +249 -0
  345. data/vendor/local/share/glib-2.0/gdb/gobject.py +305 -0
  346. data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +111 -0
  347. data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +279 -0
  348. data/vendor/local/share/glib-2.0/schemas/gschema.dtd +60 -0
  349. data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +1403 -0
  350. data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +733 -0
  351. data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +343 -0
  352. data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +563 -0
  353. data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +291 -0
  354. data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +620 -0
  355. data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +245 -0
  356. data/vendor/local/share/gtk-doc/html/gio/GConverter.html +423 -0
  357. data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +398 -0
  358. data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +254 -0
  359. data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +6211 -0
  360. data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +1833 -0
  361. data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +618 -0
  362. data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +2050 -0
  363. data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +1124 -0
  364. data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +1215 -0
  365. data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +540 -0
  366. data/vendor/local/share/gtk-doc/html/gio/GDrive.html +1416 -0
  367. data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +272 -0
  368. data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +206 -0
  369. data/vendor/local/share/gtk-doc/html/gio/GFile.html +7462 -0
  370. data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +120 -0
  371. data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +516 -0
  372. data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +312 -0
  373. data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +155 -0
  374. data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +3144 -0
  375. data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +262 -0
  376. data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +353 -0
  377. data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +301 -0
  378. data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +217 -0
  379. data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +188 -0
  380. data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +189 -0
  381. data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +261 -0
  382. data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +479 -0
  383. data/vendor/local/share/gtk-doc/html/gio/GIcon.html +331 -0
  384. data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +717 -0
  385. data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +196 -0
  386. data/vendor/local/share/gtk-doc/html/gio/GInitable.html +388 -0
  387. data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +808 -0
  388. data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +301 -0
  389. data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +185 -0
  390. data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +393 -0
  391. data/vendor/local/share/gtk-doc/html/gio/GMount.html +1465 -0
  392. data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +848 -0
  393. data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +343 -0
  394. data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +311 -0
  395. data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +1012 -0
  396. data/vendor/local/share/gtk-doc/html/gio/GPermission.html +560 -0
  397. data/vendor/local/share/gtk-doc/html/gio/GProxy.html +312 -0
  398. data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +348 -0
  399. data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +301 -0
  400. data/vendor/local/share/gtk-doc/html/gio/GResolver.html +787 -0
  401. data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +350 -0
  402. data/vendor/local/share/gtk-doc/html/gio/GSettings.html +2424 -0
  403. data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +609 -0
  404. data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +1193 -0
  405. data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +107 -0
  406. data/vendor/local/share/gtk-doc/html/gio/GSocket.html +2438 -0
  407. data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +297 -0
  408. data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +1292 -0
  409. data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +513 -0
  410. data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +337 -0
  411. data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +275 -0
  412. data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +745 -0
  413. data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +258 -0
  414. data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +165 -0
  415. data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +377 -0
  416. data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +197 -0
  417. data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +298 -0
  418. data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +222 -0
  419. data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +389 -0
  420. data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +288 -0
  421. data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +237 -0
  422. data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +237 -0
  423. data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +491 -0
  424. data/vendor/local/share/gtk-doc/html/gio/GVfs.html +274 -0
  425. data/vendor/local/share/gtk-doc/html/gio/GVolume.html +1028 -0
  426. data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +705 -0
  427. data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +252 -0
  428. data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +170 -0
  429. data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +65 -0
  430. data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +153 -0
  431. data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +155 -0
  432. data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +1084 -0
  433. data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +223 -0
  434. data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +1598 -0
  435. data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +112 -0
  436. data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +6250 -0
  437. data/vendor/local/share/gtk-doc/html/gio/async.html +44 -0
  438. data/vendor/local/share/gtk-doc/html/gio/ch01.html +207 -0
  439. data/vendor/local/share/gtk-doc/html/gio/ch02.html +50 -0
  440. data/vendor/local/share/gtk-doc/html/gio/ch03.html +180 -0
  441. data/vendor/local/share/gtk-doc/html/gio/ch19.html +75 -0
  442. data/vendor/local/share/gtk-doc/html/gio/ch20.html +217 -0
  443. data/vendor/local/share/gtk-doc/html/gio/ch20s02.html +41 -0
  444. data/vendor/local/share/gtk-doc/html/gio/ch20s03.html +39 -0
  445. data/vendor/local/share/gtk-doc/html/gio/ch24.html +75 -0
  446. data/vendor/local/share/gtk-doc/html/gio/ch25.html +217 -0
  447. data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +41 -0
  448. data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +39 -0
  449. data/vendor/local/share/gtk-doc/html/gio/ch26.html +57 -0
  450. data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +59 -0
  451. data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +159 -0
  452. data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +46 -0
  453. data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +48 -0
  454. data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +277 -0
  455. data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +95 -0
  456. data/vendor/local/share/gtk-doc/html/gio/ch27.html +70 -0
  457. data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +130 -0
  458. data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +202 -0
  459. data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +96 -0
  460. data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +823 -0
  461. data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +828 -0
  462. data/vendor/local/share/gtk-doc/html/gio/conversion.html +44 -0
  463. data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +109 -0
  464. data/vendor/local/share/gtk-doc/html/gio/extending.html +41 -0
  465. data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +38 -0
  466. data/vendor/local/share/gtk-doc/html/gio/file_mon.html +33 -0
  467. data/vendor/local/share/gtk-doc/html/gio/file_ops.html +50 -0
  468. data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +41 -0
  469. data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +59 -0
  470. data/vendor/local/share/gtk-doc/html/gio/gdbus.html +243 -0
  471. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +316 -0
  472. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +1117 -0
  473. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +216 -0
  474. data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +339 -0
  475. data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +473 -0
  476. data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +391 -0
  477. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +159 -0
  478. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +159 -0
  479. data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +908 -0
  480. data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +933 -0
  481. data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +409 -0
  482. data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +297 -0
  483. data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +313 -0
  484. data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +736 -0
  485. data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +909 -0
  486. data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +666 -0
  487. data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +123 -0
  488. data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +53 -0
  489. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +1736 -0
  490. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +2006 -0
  491. data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +102 -0
  492. data/vendor/local/share/gtk-doc/html/gio/gvfs-overview.png +0 -0
  493. data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +53 -0
  494. data/vendor/local/share/gtk-doc/html/gio/home.png +0 -0
  495. data/vendor/local/share/gtk-doc/html/gio/icons.html +50 -0
  496. data/vendor/local/share/gtk-doc/html/gio/index.html +435 -0
  497. data/vendor/local/share/gtk-doc/html/gio/index.sgml +2513 -0
  498. data/vendor/local/share/gtk-doc/html/gio/left.png +0 -0
  499. data/vendor/local/share/gtk-doc/html/gio/migrating.html +62 -0
  500. data/vendor/local/share/gtk-doc/html/gio/networking.html +69 -0
  501. data/vendor/local/share/gtk-doc/html/gio/permissions.html +39 -0
  502. data/vendor/local/share/gtk-doc/html/gio/pt01.html +39 -0
  503. data/vendor/local/share/gtk-doc/html/gio/pt02.html +390 -0
  504. data/vendor/local/share/gtk-doc/html/gio/resolver.html +50 -0
  505. data/vendor/local/share/gtk-doc/html/gio/right.png +0 -0
  506. data/vendor/local/share/gtk-doc/html/gio/settings.html +38 -0
  507. data/vendor/local/share/gtk-doc/html/gio/streaming.html +92 -0
  508. data/vendor/local/share/gtk-doc/html/gio/style.css +265 -0
  509. data/vendor/local/share/gtk-doc/html/gio/tools.html +44 -0
  510. data/vendor/local/share/gtk-doc/html/gio/types.html +41 -0
  511. data/vendor/local/share/gtk-doc/html/gio/up.png +0 -0
  512. data/vendor/local/share/gtk-doc/html/gio/utils.html +33 -0
  513. data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +47 -0
  514. data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +77 -0
  515. data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +180 -0
  516. data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +312 -0
  517. data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +559 -0
  518. data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +362 -0
  519. data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +102 -0
  520. data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +124 -0
  521. data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +83 -0
  522. data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +194 -0
  523. data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +420 -0
  524. data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +359 -0
  525. data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +396 -0
  526. data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +417 -0
  527. data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +158 -0
  528. data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +419 -0
  529. data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +8214 -0
  530. data/vendor/local/share/gtk-doc/html/glib/file-name-encodings.png +0 -0
  531. data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +893 -0
  532. data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +818 -0
  533. data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +414 -0
  534. data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +466 -0
  535. data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +802 -0
  536. data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +372 -0
  537. data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +500 -0
  538. data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +2056 -0
  539. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +560 -0
  540. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +1686 -0
  541. data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +398 -0
  542. data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +1094 -0
  543. data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +1671 -0
  544. data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +460 -0
  545. data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +528 -0
  546. data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +2045 -0
  547. data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +1278 -0
  548. data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +1406 -0
  549. data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +548 -0
  550. data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +1026 -0
  551. data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +1852 -0
  552. data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +2201 -0
  553. data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +239 -0
  554. data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +4278 -0
  555. data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +1864 -0
  556. data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +295 -0
  557. data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +1512 -0
  558. data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +1367 -0
  559. data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +229 -0
  560. data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +692 -0
  561. data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +2196 -0
  562. data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +2740 -0
  563. data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +612 -0
  564. data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +1451 -0
  565. data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +389 -0
  566. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +1033 -0
  567. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +141 -0
  568. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +706 -0
  569. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +510 -0
  570. data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +748 -0
  571. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +1105 -0
  572. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +1552 -0
  573. data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +1468 -0
  574. data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +194 -0
  575. data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +2745 -0
  576. data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +752 -0
  577. data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +269 -0
  578. data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +578 -0
  579. data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +532 -0
  580. data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +1353 -0
  581. data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +238 -0
  582. data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +1282 -0
  583. data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +1213 -0
  584. data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +924 -0
  585. data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +470 -0
  586. data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +301 -0
  587. data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +2960 -0
  588. data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +1291 -0
  589. data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +1805 -0
  590. data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +3478 -0
  591. data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +606 -0
  592. data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +3411 -0
  593. data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +245 -0
  594. data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +188 -0
  595. data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +263 -0
  596. data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +400 -0
  597. data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +3448 -0
  598. data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +253 -0
  599. data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +438 -0
  600. data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +476 -0
  601. data/vendor/local/share/gtk-doc/html/glib/glib-building.html +466 -0
  602. data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +159 -0
  603. data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +118 -0
  604. data/vendor/local/share/gtk-doc/html/glib/glib-core.html +64 -0
  605. data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +160 -0
  606. data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +120 -0
  607. data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +59 -0
  608. data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +93 -0
  609. data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +2217 -0
  610. data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +121 -0
  611. data/vendor/local/share/gtk-doc/html/glib/glib-running.html +319 -0
  612. data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +118 -0
  613. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +2183 -0
  614. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +2671 -0
  615. data/vendor/local/share/gtk-doc/html/glib/glib.html +80 -0
  616. data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +72 -0
  617. data/vendor/local/share/gtk-doc/html/glib/gtester.html +131 -0
  618. data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +1288 -0
  619. data/vendor/local/share/gtk-doc/html/glib/home.png +0 -0
  620. data/vendor/local/share/gtk-doc/html/glib/index.html +344 -0
  621. data/vendor/local/share/gtk-doc/html/glib/index.sgml +2846 -0
  622. data/vendor/local/share/gtk-doc/html/glib/left.png +0 -0
  623. data/vendor/local/share/gtk-doc/html/glib/mainloop-states.gif +0 -0
  624. data/vendor/local/share/gtk-doc/html/glib/right.png +0 -0
  625. data/vendor/local/share/gtk-doc/html/glib/style.css +265 -0
  626. data/vendor/local/share/gtk-doc/html/glib/tools.html +41 -0
  627. data/vendor/local/share/gtk-doc/html/glib/up.png +0 -0
  628. data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +803 -0
  629. data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +710 -0
  630. data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +453 -0
  631. data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +47 -0
  632. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +85 -0
  633. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +55 -0
  634. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +51 -0
  635. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +46 -0
  636. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +38 -0
  637. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +46 -0
  638. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +73 -0
  639. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +201 -0
  640. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +178 -0
  641. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +42 -0
  642. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +42 -0
  643. data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +50 -0
  644. data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +2721 -0
  645. data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +136 -0
  646. data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +113 -0
  647. data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +293 -0
  648. data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +263 -0
  649. data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +92 -0
  650. data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +214 -0
  651. data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +361 -0
  652. data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +307 -0
  653. data/vendor/local/share/gtk-doc/html/gobject/glue.png +0 -0
  654. data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +417 -0
  655. data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +2412 -0
  656. data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +847 -0
  657. data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +1433 -0
  658. data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +776 -0
  659. data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +2741 -0
  660. data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +5555 -0
  661. data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +2875 -0
  662. data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +4460 -0
  663. data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +416 -0
  664. data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +260 -0
  665. data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +234 -0
  666. data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +270 -0
  667. data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +117 -0
  668. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +762 -0
  669. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +801 -0
  670. data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +143 -0
  671. data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +287 -0
  672. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +316 -0
  673. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +76 -0
  674. data/vendor/local/share/gtk-doc/html/gobject/home.png +0 -0
  675. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +100 -0
  676. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +86 -0
  677. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +113 -0
  678. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +122 -0
  679. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +257 -0
  680. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +283 -0
  681. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +125 -0
  682. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +167 -0
  683. data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +160 -0
  684. data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +121 -0
  685. data/vendor/local/share/gtk-doc/html/gobject/index.html +192 -0
  686. data/vendor/local/share/gtk-doc/html/gobject/index.sgml +786 -0
  687. data/vendor/local/share/gtk-doc/html/gobject/left.png +0 -0
  688. data/vendor/local/share/gtk-doc/html/gobject/pr01.html +72 -0
  689. data/vendor/local/share/gtk-doc/html/gobject/pt01.html +80 -0
  690. data/vendor/local/share/gtk-doc/html/gobject/pt02.html +66 -0
  691. data/vendor/local/share/gtk-doc/html/gobject/pt03.html +55 -0
  692. data/vendor/local/share/gtk-doc/html/gobject/right.png +0 -0
  693. data/vendor/local/share/gtk-doc/html/gobject/rn01.html +85 -0
  694. data/vendor/local/share/gtk-doc/html/gobject/rn02.html +47 -0
  695. data/vendor/local/share/gtk-doc/html/gobject/signal.html +377 -0
  696. data/vendor/local/share/gtk-doc/html/gobject/style.css +265 -0
  697. data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +35 -0
  698. data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +40 -0
  699. data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +63 -0
  700. data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +55 -0
  701. data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +43 -0
  702. data/vendor/local/share/gtk-doc/html/gobject/up.png +0 -0
  703. data/vendor/local/share/locale/af/LC_MESSAGES/glib20.mo +0 -0
  704. data/vendor/local/share/locale/am/LC_MESSAGES/glib20.mo +0 -0
  705. data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
  706. data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
  707. data/vendor/local/share/locale/ast/LC_MESSAGES/glib20.mo +0 -0
  708. data/vendor/local/share/locale/az/LC_MESSAGES/glib20.mo +0 -0
  709. data/vendor/local/share/locale/be/LC_MESSAGES/gettext-runtime.mo +0 -0
  710. data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
  711. data/vendor/local/share/locale/be@latin/LC_MESSAGES/glib20.mo +0 -0
  712. data/vendor/local/share/locale/bg/LC_MESSAGES/gettext-runtime.mo +0 -0
  713. data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
  714. data/vendor/local/share/locale/bn/LC_MESSAGES/glib20.mo +0 -0
  715. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
  716. data/vendor/local/share/locale/bs/LC_MESSAGES/glib20.mo +0 -0
  717. data/vendor/local/share/locale/ca/LC_MESSAGES/gettext-runtime.mo +0 -0
  718. data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
  719. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
  720. data/vendor/local/share/locale/cs/LC_MESSAGES/gettext-runtime.mo +0 -0
  721. data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
  722. data/vendor/local/share/locale/cy/LC_MESSAGES/glib20.mo +0 -0
  723. data/vendor/local/share/locale/da/LC_MESSAGES/gettext-runtime.mo +0 -0
  724. data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
  725. data/vendor/local/share/locale/de/LC_MESSAGES/gettext-runtime.mo +0 -0
  726. data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
  727. data/vendor/local/share/locale/dz/LC_MESSAGES/glib20.mo +0 -0
  728. data/vendor/local/share/locale/el/LC_MESSAGES/gettext-runtime.mo +0 -0
  729. data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
  730. data/vendor/local/share/locale/en@boldquot/LC_MESSAGES/gettext-runtime.mo +0 -0
  731. data/vendor/local/share/locale/en@quot/LC_MESSAGES/gettext-runtime.mo +0 -0
  732. data/vendor/local/share/locale/en@shaw/LC_MESSAGES/glib20.mo +0 -0
  733. data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib20.mo +0 -0
  734. data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
  735. data/vendor/local/share/locale/eo/LC_MESSAGES/gettext-runtime.mo +0 -0
  736. data/vendor/local/share/locale/eo/LC_MESSAGES/glib20.mo +0 -0
  737. data/vendor/local/share/locale/es/LC_MESSAGES/gettext-runtime.mo +0 -0
  738. data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
  739. data/vendor/local/share/locale/et/LC_MESSAGES/gettext-runtime.mo +0 -0
  740. data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
  741. data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
  742. data/vendor/local/share/locale/fa/LC_MESSAGES/glib20.mo +0 -0
  743. data/vendor/local/share/locale/fi/LC_MESSAGES/gettext-runtime.mo +0 -0
  744. data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
  745. data/vendor/local/share/locale/fr/LC_MESSAGES/gettext-runtime.mo +0 -0
  746. data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
  747. data/vendor/local/share/locale/ga/LC_MESSAGES/gettext-runtime.mo +0 -0
  748. data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
  749. data/vendor/local/share/locale/gl/LC_MESSAGES/gettext-runtime.mo +0 -0
  750. data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
  751. data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
  752. data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
  753. data/vendor/local/share/locale/hi/LC_MESSAGES/glib20.mo +0 -0
  754. data/vendor/local/share/locale/hr/LC_MESSAGES/glib20.mo +0 -0
  755. data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
  756. data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
  757. data/vendor/local/share/locale/id/LC_MESSAGES/gettext-runtime.mo +0 -0
  758. data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
  759. data/vendor/local/share/locale/is/LC_MESSAGES/glib20.mo +0 -0
  760. data/vendor/local/share/locale/it/LC_MESSAGES/gettext-runtime.mo +0 -0
  761. data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
  762. data/vendor/local/share/locale/ja/LC_MESSAGES/gettext-runtime.mo +0 -0
  763. data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
  764. data/vendor/local/share/locale/ka/LC_MESSAGES/glib20.mo +0 -0
  765. data/vendor/local/share/locale/kk/LC_MESSAGES/glib20.mo +0 -0
  766. data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
  767. data/vendor/local/share/locale/ko/LC_MESSAGES/gettext-runtime.mo +0 -0
  768. data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
  769. data/vendor/local/share/locale/ku/LC_MESSAGES/glib20.mo +0 -0
  770. data/vendor/local/share/locale/locale.alias +77 -0
  771. data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
  772. data/vendor/local/share/locale/lv/LC_MESSAGES/glib20.mo +0 -0
  773. data/vendor/local/share/locale/mai/LC_MESSAGES/glib20.mo +0 -0
  774. data/vendor/local/share/locale/mg/LC_MESSAGES/glib20.mo +0 -0
  775. data/vendor/local/share/locale/mk/LC_MESSAGES/glib20.mo +0 -0
  776. data/vendor/local/share/locale/ml/LC_MESSAGES/glib20.mo +0 -0
  777. data/vendor/local/share/locale/mn/LC_MESSAGES/glib20.mo +0 -0
  778. data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
  779. data/vendor/local/share/locale/ms/LC_MESSAGES/glib20.mo +0 -0
  780. data/vendor/local/share/locale/nb/LC_MESSAGES/gettext-runtime.mo +0 -0
  781. data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
  782. data/vendor/local/share/locale/nds/LC_MESSAGES/glib20.mo +0 -0
  783. data/vendor/local/share/locale/ne/LC_MESSAGES/glib20.mo +0 -0
  784. data/vendor/local/share/locale/nl/LC_MESSAGES/gettext-runtime.mo +0 -0
  785. data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
  786. data/vendor/local/share/locale/nn/LC_MESSAGES/gettext-runtime.mo +0 -0
  787. data/vendor/local/share/locale/nn/LC_MESSAGES/glib20.mo +0 -0
  788. data/vendor/local/share/locale/oc/LC_MESSAGES/glib20.mo +0 -0
  789. data/vendor/local/share/locale/or/LC_MESSAGES/glib20.mo +0 -0
  790. data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
  791. data/vendor/local/share/locale/pl/LC_MESSAGES/gettext-runtime.mo +0 -0
  792. data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
  793. data/vendor/local/share/locale/ps/LC_MESSAGES/glib20.mo +0 -0
  794. data/vendor/local/share/locale/pt/LC_MESSAGES/gettext-runtime.mo +0 -0
  795. data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
  796. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gettext-runtime.mo +0 -0
  797. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
  798. data/vendor/local/share/locale/ro/LC_MESSAGES/gettext-runtime.mo +0 -0
  799. data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
  800. data/vendor/local/share/locale/ru/LC_MESSAGES/gettext-runtime.mo +0 -0
  801. data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
  802. data/vendor/local/share/locale/rw/LC_MESSAGES/glib20.mo +0 -0
  803. data/vendor/local/share/locale/si/LC_MESSAGES/glib20.mo +0 -0
  804. data/vendor/local/share/locale/sk/LC_MESSAGES/gettext-runtime.mo +0 -0
  805. data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
  806. data/vendor/local/share/locale/sl/LC_MESSAGES/gettext-runtime.mo +0 -0
  807. data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
  808. data/vendor/local/share/locale/sq/LC_MESSAGES/glib20.mo +0 -0
  809. data/vendor/local/share/locale/sr/LC_MESSAGES/gettext-runtime.mo +0 -0
  810. data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
  811. data/vendor/local/share/locale/sr@ije/LC_MESSAGES/glib20.mo +0 -0
  812. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
  813. data/vendor/local/share/locale/sv/LC_MESSAGES/gettext-runtime.mo +0 -0
  814. data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
  815. data/vendor/local/share/locale/ta/LC_MESSAGES/glib20.mo +0 -0
  816. data/vendor/local/share/locale/te/LC_MESSAGES/glib20.mo +0 -0
  817. data/vendor/local/share/locale/th/LC_MESSAGES/glib20.mo +0 -0
  818. data/vendor/local/share/locale/tl/LC_MESSAGES/glib20.mo +0 -0
  819. data/vendor/local/share/locale/tr/LC_MESSAGES/gettext-runtime.mo +0 -0
  820. data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
  821. data/vendor/local/share/locale/tt/LC_MESSAGES/glib20.mo +0 -0
  822. data/vendor/local/share/locale/uk/LC_MESSAGES/gettext-runtime.mo +0 -0
  823. data/vendor/local/share/locale/uk/LC_MESSAGES/glib20.mo +0 -0
  824. data/vendor/local/share/locale/vi/LC_MESSAGES/gettext-runtime.mo +0 -0
  825. data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
  826. data/vendor/local/share/locale/wa/LC_MESSAGES/glib20.mo +0 -0
  827. data/vendor/local/share/locale/xh/LC_MESSAGES/glib20.mo +0 -0
  828. data/vendor/local/share/locale/yi/LC_MESSAGES/glib20.mo +0 -0
  829. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gettext-runtime.mo +0 -0
  830. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
  831. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gettext-runtime.mo +0 -0
  832. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
  833. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gettext-runtime.mo +0 -0
  834. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
  835. data/vendor/local/share/man/man1/envsubst.1 +54 -0
  836. data/vendor/local/share/man/man1/gettext.1 +69 -0
  837. data/vendor/local/share/man/man1/glib-genmarshal.1 +312 -0
  838. data/vendor/local/share/man/man1/glib-mkenums.1 +246 -0
  839. data/vendor/local/share/man/man1/gobject-query.1 +83 -0
  840. data/vendor/local/share/man/man1/ngettext.1 +68 -0
  841. data/vendor/local/share/man/man3/bind_textdomain_codeset.3 +72 -0
  842. data/vendor/local/share/man/man3/bindtextdomain.3 +69 -0
  843. data/vendor/local/share/man/man3/dcgettext.3 +1 -0
  844. data/vendor/local/share/man/man3/dcngettext.3 +1 -0
  845. data/vendor/local/share/man/man3/dgettext.3 +1 -0
  846. data/vendor/local/share/man/man3/dngettext.3 +1 -0
  847. data/vendor/local/share/man/man3/gettext.3 +99 -0
  848. data/vendor/local/share/man/man3/ngettext.3 +60 -0
  849. data/vendor/local/share/man/man3/textdomain.3 +57 -0
  850. data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.log +10423 -0
  851. data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.sh +457 -0
  852. data/vendor/local/src/tml/packaging/glib_2.24.2-2_win32.log +2602 -0
  853. data/vendor/local/src/tml/packaging/glib_2.24.2-2_win32.sh +290 -0
  854. data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.log +2867 -0
  855. data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.sh +64 -0
  856. metadata +952 -0
@@ -0,0 +1,1852 @@
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 &lt;glib.h&gt;
42
+ #include &lt;glib/gstdio.h&gt;
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 &lt;&lt; 0,
386
+ G_FILE_TEST_IS_SYMLINK = 1 &lt;&lt; 1,
387
+ G_FILE_TEST_IS_DIR = 1 &lt;&lt; 2,
388
+ G_FILE_TEST_IS_EXECUTABLE = 1 &lt;&lt; 3,
389
+ G_FILE_TEST_EXISTS = 1 &lt;&lt; 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>