文档介绍:GaPiL
Guida alla Programmazione in Linux
Simone ardi
9 marzo 2003
ii
Copyright
c 2000-2002 Simone ardi. Permission is granted to copy, distribute
and/or modify this document under the terms of the GNU Free Documentation
License, Version or any later version published by the Free Software Foundation;
with the Invariant Sections being “Prefazione”, with no Front-Cover Texts, and with
no Back-Cover Texts. A copy of the license is included in the section entitled “GNU
Free Documentation License”.
Indice
Prefazione xi
I Programmazione di sistema 1
1 L’architettura del sistema 3
Una panoramica . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Concetti base . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
User space e kernel space . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Il kernel e il sistema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Chiamate al sistema e librerie di funzioni . . . . . . . . . . . . . . . . . . 5
Un sistema multiutente . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Gli standard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Lo standard ANSI C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
I tipi di dati primitivi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Lo standard IEEE – POSIX . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Lo standard X/Open – XPG3 . . . . . . . . . . . . . . . . . . . . . . . . . 9
Gli standard Unix – Open Group . . . . . . . . . . . . . . . . . . . . . . . 10
Lo “standard” BSD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Lo standard System V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
portamento standard del gcc e delle glibc . . . . . . . . . . . . . . 11
Gli standard di GNU/Linux . . . . .