Pipes sunexeia..

Alexios Chouchoulas alexios at vennea.demon.co.uk
Fri May 16 16:26:38 EEST 1997


On Fri, 16 May 1997, Harris Kosmidhs wrote:

> Basika 8a i8ela na rothso an uparxei kamia sunarthsh san thn fflush pou na
> dexetai file descriptor kai oxi FILE*

  Den mporei na yparksei kati tetoio:

  Ta file descriptors anaferontai se unbufferred files. Kanontas write(2) se
ena file descriptor ta dedomena phgainoun sto arxeio amesws. An tyxon
ginetai kapoio buffering, afto einai thema kernel kai mporeis na to
kseperaseis stelnontas to katallhlo ioctl(2). Alla afto einai kakh idea,
giati kathe device exei dikes ths entoles pou dexetai me ioctl(2).

  Antitheta, h fwrite(3) grafei se buffers. Oi buffers aftoi einai
ylopoihmenoi se user space, oxi ston kernel -- einai meros ths C library.
Gi'afto kai oi fwrite(3), fread(3), fflush(3) einai sto 3o meros tou manual
(programming), enw oi write(2), read(2), open(2) einai sto 2o (system
calls).

  Gia na leme kai tou strabou to dikio bebaia, oi pipes *EXOUN* buffers
(mesa ston kernel). Kai einai kai enoxlhtikoi buffers. An exeis anagkh apo
epikoinwnia metaksy dyo processes sto *IDIO* mhxanhma, dokimase System V IPC
(man ipc kai tha pareis thn kentrikh selida). H dokimase sockets, pou
mporoun na ginoun kai exported se network.

A.

Alexios Chouchoulas          '88    ,88'   ,88'     alexios at vennea.demon.co.uk
The Unpronouncable One      ,o88oooo88ooooo88oo,              axc at dcs.ed.ac.uk

--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argeas.argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte  e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list