cfe83de41ee541c09aa2fe679954be8a75b2b546
[platform/upstream/glib2.0.git] / docs / reference / gio / html / ch19.html
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>Migrating from POSIX to GIO</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7 <link rel="home" href="index.html" title="GIO Reference Manual">
8 <link rel="up" href="migrating.html" title="Part III. Migrating to GIO">
9 <link rel="prev" href="migrating.html" title="Part III. Migrating to GIO">
10 <link rel="next" href="ch20.html" title="Migrating from GnomeVFS to GIO">
11 <meta name="generator" content="GTK-Doc V1.13 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 <link rel="part" href="pt01.html" title="Part I. GIO Overview">
14 <link rel="chapter" href="ch01.html" title="Introduction">
15 <link rel="chapter" href="ch02.html" title="Compiling GIO applications">
16 <link rel="chapter" href="ch03.html" title="Running GIO applications">
17 <link rel="chapter" href="extending-gio.html" title="Extending GIO">
18 <link rel="part" href="pt02.html" title="Part II. API Reference">
19 <link rel="chapter" href="file_ops.html" title="File Operations">
20 <link rel="chapter" href="file_mon.html" title="File System Monitoring">
21 <link rel="chapter" href="async.html" title="Asynchronous I/O">
22 <link rel="chapter" href="conversion.html" title="Data conversion">
23 <link rel="chapter" href="streaming.html" title="Streaming I/O">
24 <link rel="chapter" href="types.html" title="File types and applications">
25 <link rel="chapter" href="volume_mon.html" title="Volumes and Drives">
26 <link rel="chapter" href="icons.html" title="Icons">
27 <link rel="chapter" href="failable_initialization.html" title="Failable Initialization">
28 <link rel="chapter" href="networking.html" title="Lowlevel platform-independent network support">
29 <link rel="chapter" href="resolver.html" title="DNS resolution">
30 <link rel="chapter" href="highlevel-socket.html" title="Highlevel network functionallity">
31 <link rel="chapter" href="utils.html" title="Utilities">
32 <link rel="chapter" href="extending.html" title="Extending GIO">
33 <link rel="part" href="migrating.html" title="Part III. Migrating to GIO">
34 <link rel="chapter" href="ch19.html" title="Migrating from POSIX to GIO">
35 <link rel="chapter" href="ch20.html" title="Migrating from GnomeVFS to GIO">
36 <link rel="chapter" href="gio-hierarchy.html" title="Object Hierarchy">
37 <link rel="index" href="api-index-full.html" title="Index">
38 <link rel="index" href="api-index-deprecated.html" title="Index of deprecated symbols">
39 <link rel="index" href="api-index-2-18.html" title="Index of new symbols in 2.18">
40 <link rel="index" href="api-index-2-20.html" title="Index of new symbols in 2.20">
41 <link rel="index" href="api-index-2-22.html" title="Index of new symbols in 2.22">
42 <link rel="index" href="api-index-2-24.html" title="Index of new symbols in 2.24">
43 </head>
44 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
45 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
46 <td><a accesskey="p" href="migrating.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
47 <td><a accesskey="u" href="migrating.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
48 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
49 <th width="100%" align="center">GIO Reference Manual</th>
50 <td><a accesskey="n" href="ch20.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
51 </tr></table>
52 <div class="chapter" title="Migrating from POSIX to GIO">
53 <div class="titlepage"><div><div><h2 class="title">
54 <a name="id603796"></a>Migrating from POSIX to GIO</h2></div></div></div>
55 <div class="table">
56 <a name="posix-vs-gio"></a><p class="title"><b>Table 4. Comparison of POSIX and GIO concepts</b></p>
57 <div class="table-contents"><table summary="Comparison of POSIX and GIO concepts" border="1">
58 <colgroup>
59 <col>
60 <col>
61 </colgroup>
62 <thead><tr>
63 <th>POSIX</th>
64 <th>GIO</th>
65 </tr></thead>
66 <tbody>
67 <tr>
68 <td>char *path</td>
69 <td>GFile *file</td>
70 </tr>
71 <tr>
72 <td>struct stat *buf</td>
73 <td>GFileInfo *info</td>
74 </tr>
75 <tr>
76 <td>struct statvfs *buf</td>
77 <td>GFileInfo *info</td>
78 </tr>
79 <tr>
80 <td rowspan="2">int fd</td>
81 <td>GInputStream *in</td>
82 </tr>
83 <tr><td>GOutputStream *out</td></tr>
84 <tr>
85 <td>DIR *</td>
86 <td>GFileEnumerator *enum</td>
87 </tr>
88 <tr>
89 <td>fstab entry</td>
90 <td>GUnixMountPoint *mount_point</td>
91 </tr>
92 <tr>
93 <td>mtab entry</td>
94 <td>GUnixMountEntry *mount_entry</td>
95 </tr>
96 </tbody>
97 </table></div>
98 </div>
99 <br class="table-break">
100 </div>
101 <div class="footer">
102 <hr>
103           Generated by GTK-Doc V1.13</div>
104 </body>
105 </html>