File: migrating-posix.md

package info (click to toggle)
gobject-introspection 1.84.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 72,336 kB
  • sloc: ansic: 562,269; python: 23,692; xml: 16,240; yacc: 1,711; perl: 1,624; sh: 1,139; lex: 510; cpp: 487; makefile: 182; 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]                         |