παρουσίαση του linux σε αρχάριους

Giorgos Keramidas keramida at ceid.upatras.gr
Mon May 8 16:20:48 EEST 2006


On 2006-05-08 16:16, Panagiotis Atmatzidis <p.atmatzidis at gmail.com> wrote:
> Kostas Boukouvalas wrote:
> > Loipon. Eixame auth th kouventa sto prwto meta apo xronia
> > meeting Thelug me ton Ch. Ricudi + ton Asteri Masoura. Eixe
> > pei kati poly swsto o Christos tote. Apo th stigmh poy
> > anaferesai se arxarious xrhstes prepei PRIN APO TA PANTA, na
> > tous e3hgeis ti einai h "Domh Katalogou". An den e3hghseis
> > auto tote exeis xasei kathe elpida na katalavoun ola ta
> > ypoloipa. Toulaxiston se Linux, an kai gia Windows yparxei
> > domh katalogou. An parathrhsei kaneis thn e3eli3h twn Windows
> > tha dei oti sta Windows 2000 sygxwneutikan oi dyo filosofies
> > twn NT kai twn 9x kai apo tote yparxei pio sygkrotimenh kai
> > sygkekrimenh "standar" domh.
> >
> > Tha proteina na tous e3hghseis prwta auta kai meta otidhpote
> > allo.  Kathws kai to vasiko fusika, "Linux einai o
> > pyrhnas... klp klp"
>
> Πανέμορφα!
> ...Τι είναι η δομή καταλόγου?!

Ανάλογα το λειτουργικό σύστημα.  Στο FreeBSD π.χ. μια δομή
'καταλόγου' είναι κάτι σαν:

% /*
%  * The dirent structure defines the format of directory entries returned by
%  * the getdirentries(2) system call.
%  *
%  * A directory entry has a struct dirent at the front of it, containing its
%  * inode number, the length of the entry, and the length of the name
%  * contained in the entry.  These are followed by the name padded to a 4
%  * byte boundary with null bytes.  All names are guaranteed null terminated.
%  * The maximum length of a name in a directory is MAXNAMLEN.
%  */
%
% struct dirent {
%         __uint32_t d_fileno;            /* file number of entry */
%         __uint16_t d_reclen;            /* length of this record */
%         __uint8_t  d_type;              /* file type, see below */
%         __uint8_t  d_namlen;            /* length of string in d_name */
% #if __BSD_VISIBLE
% #define MAXNAMLEN       255
%         char    d_name[MAXNAMLEN + 1];  /* name must be no longer than this */
% #else
%         char    d_name[255 + 1];        /* name must be no longer than this */
% #endif
% };




More information about the Linux-greek-users mailing list