Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 4

Model del sistema

Lectura dun fitxer en C


fd = open(fich, r); count = read(fich, buffer, nbytes)
Retorna en count el n de bytes llegits realment. Podra ser que count < nbytes (sarriba a EOF). Si count = -1 error.

Crides al sistema
A lexemple anterior: open, read: Programa daplicaci
read() SISTEMA OPERATIU (llenguatge C)

Operacions de baix nivell

Model de sistema

ORDRES

USUARI

INTRPRET DE COMANDS

SISTEMA OPERATIU

PROGRAMA DAPLICACI

CRIDES AL SISTEMA

You might also like