Directory ως απλό αρχείο

Kostas Gewrgiou gewrgiou at imbc.gr
Thu Oct 21 02:14:50 EEST 1999


Apo to http://www.unix-systems.org/single_unix_specification_v2/xsh/read.html
......
ERRORS
   [EISDIR]
The fildes argument refers to a directory and the implementation does not allow
the directory to be read using read(), pread() or readv(). The readdir()
function should be used instead.
......

Synepos kanenas den sou eggyatai oti to read the petyxei se directory..
To man tis read(2) exei to EISDIR sta errors episis, to manual tis glibc
omos den to anaferei parakseno.

Kostas Gewrgiou

On Thu, 21 Oct 1999, I.Ioannou wrote:

> Pou to thimithikes ayto ? Nai ontws etsi apantaei, kai mia grigori matia me
> strace deixnei oti to apantaei to read. Ena episeis grigoro psaksimo sta
> sources deixnei oti einai eite apo tin libc, eite apo ton kernel (me poio
> pithani thn libc - den prolabainw na to psaksw parapanw). To periergo einai oti
> stin libc anaferei to EISDIR mono gia write kai oxi kai gia read. Kaneis
> perissotera ? 
> 
> On 20-Oct-99 Αναστασάτος Βασίλειος wrote:
> > Στα παραδείγματα του βιβλίου "Το περιβάλλον προγραμματισμού UNIX"
> > (έκδοση 1984) αναφέρονται εντολές όπως:
> > 
> >      od .
> > 
> > η
> > 
> >      cat . >foo
> > 
> > που στο UNIX των συγγραφέων λειτουργούν κανονικά, αλλά στο SuSE 6.0
> > οδηγούν στο μήνυμα λάθους: ". is a directory". Υπάρχει τρόπος να
> > παρακαμφθεί αυτός ο περιορισμός και ένα directory να μπορεί να μπει ως
> > είσοδος σε τέτοιες εντολές, ως απλό αρχείο;
> I.Ioannou <roryt at hol.gr>
> --
> ====================================================================
> Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
> Ta archives tis listas einai sto http://lists.hellug.gr/archives
> prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
> Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
> ====================================================================
> 

--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list