File: migrating-posix.md

package info (click to toggle)
gobject-introspection 1.86.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 72,464 kB
  • sloc: ansic: 562,805; python: 23,750; xml: 16,240; perl: 1,878; yacc: 1,720; sh: 1,139; lex: 513; cpp: 487; makefile: 197; javascript: 15; lisp: 1
file content (17 lines) | stat: -rw-r--r-- 916 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Title: Migrating from POSIX to GIO
SPDX-License-Identifier: LGPL-2.1-or-later
SPDX-FileCopyrightText: 2007 Matthias Clasen

# Migrating from POSIX to GIO

## Comparison of POSIX and GIO concepts

| POSIX                 | GIO                                                 |
|-----------------------|-----------------------------------------------------|
| `char *path`          | [iface@Gio.File]                                    |
| `struct stat *buf`    | [class@Gio.FileInfo]                                |
| `struct statvfs *buf` | [class@Gio.FileInfo]                                |
| `int fd`              | [class@Gio.InputStream] or [class@Gio.OutputStream] |
| `DIR *`               | [class@Gio.FileEnumerator]                          |
| `fstab entry`         | [struct@Gio.UnixMountPoint]                         |
| `mtab entry`          | [struct@Gio.UnixMountEntry]                         |