• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<part id="migrating">
2  <title>Migrating to GIO</title>
3
4  <chapter>
5    <title>Migrating from POSIX to GIO</title>
6
7    <table id="posix-vs-gio">
8      <title>Comparison of POSIX and GIO concepts</title>
9      <tgroup cols="2">
10        <thead>
11          <row><entry>POSIX</entry><entry>GIO</entry></row>
12        </thead>
13        <tbody>
14          <row><entry>char *path</entry><entry>GFile *file</entry></row>
15          <row><entry>struct stat *buf</entry><entry>GFileInfo *info</entry></row>
16          <row><entry>struct statvfs *buf</entry><entry>GFileInfo *info</entry></row>
17          <row><entry morerows="1">int fd</entry><entry>GInputStream *in</entry></row>
18          <row><entry>GOutputStream *out</entry></row>
19          <row><entry>DIR *</entry><entry>GFileEnumerator *enum</entry></row>
20          <row><entry>fstab entry</entry><entry>GUnixMountPoint *mount_point</entry></row>
21          <row><entry>mtab entry</entry><entry>GUnixMountEntry *mount_entry</entry></row>
22        </tbody>
23      </tgroup>
24    </table>
25
26  </chapter>
27</part>
28