99 the application makes a call to the equivalent Symbian platform function, <xref href="GUID-BE0804F6-4375-3C8A-8C83-968F510466E0.dita#GUID-BE0804F6-4375-3C8A-8C83-968F510466E0/GUID-72470A68-7E07-30EF-A3C8-AA855CDAF60E"><apiname>RFile::Open()</apiname></xref>, |
99 the application makes a call to the equivalent Symbian platform function, <xref href="GUID-BE0804F6-4375-3C8A-8C83-968F510466E0.dita#GUID-BE0804F6-4375-3C8A-8C83-968F510466E0/GUID-72470A68-7E07-30EF-A3C8-AA855CDAF60E"><apiname>RFile::Open()</apiname></xref>, |
100 and returns the next free entry in the file descriptor table. </p> <p>In each |
100 and returns the next free entry in the file descriptor table. </p> <p>In each |
101 table, the values <codeph>0</codeph>, <codeph>1</codeph> and <codeph>2</codeph> are |
101 table, the values <codeph>0</codeph>, <codeph>1</codeph> and <codeph>2</codeph> are |
102 reserved for <xref href="GUID-C0C1D22B-298F-3E8D-A1E9-6F5EFA81F9E8.dita"><apiname>stdin()</apiname></xref>, <xref href="GUID-0441C351-4A8B-3A23-9255-D7C8CEA2A67F.dita"><apiname>sdtout()</apiname></xref> and <xref href="GUID-4FF97B50-2C1E-37EC-888B-FB8D3F14B5B8.dita"><apiname>stderr()</apiname></xref>. |
102 reserved for <xref href="GUID-C0C1D22B-298F-3E8D-A1E9-6F5EFA81F9E8.dita"><apiname>stdin()</apiname></xref>, <xref href="GUID-0441C351-4A8B-3A23-9255-D7C8CEA2A67F.dita"><apiname>sdtout()</apiname></xref> and <xref href="GUID-4FF97B50-2C1E-37EC-888B-FB8D3F14B5B8.dita"><apiname>stderr()</apiname></xref>. |
103 The figure below shows an example file descriptor table. </p> <fig id="GUID-4CEA6881-49E0-5211-8258-C44A8E8F3CDE"> |
103 The figure below shows an example file descriptor table. </p> <fig id="GUID-4CEA6881-49E0-5211-8258-C44A8E8F3CDE"> |
104 <image href="GUID-8EE8E38C-7CA1-5F1B-86D0-1A0B03AAC5F2_d0e156386_href.png" placement="inline"/> |
104 <image href="GUID-8EE8E38C-7CA1-5F1B-86D0-1A0B03AAC5F2_d0e149865_href.png" placement="inline"/> |
105 </fig> <p>According to the descriptor table the file descriptor equals <codeph>7</codeph>, |
105 </fig> <p>According to the descriptor table the file descriptor equals <codeph>7</codeph>, |
106 as this was the next free entry in the table, and the write function will |
106 as this was the next free entry in the table, and the write function will |
107 be writing to the file referenced by <codeph>7</codeph>. </p> <p> <b>Note:</b> A |
107 be writing to the file referenced by <codeph>7</codeph>. </p> <p> <b>Note:</b> A |
108 POSIX descriptor is an index in the process open file table and represents, |
108 POSIX descriptor is an index in the process open file table and represents, |
109 for example, an open file, socket or pipe. A Symbian descriptor represents |
109 for example, an open file, socket or pipe. A Symbian descriptor represents |