extFS-Seyshell/docs/latex/struct_8h_source.tex
2026-05-25 15:39:10 +02:00

40 lines
3.7 KiB
TeX

\doxysection{struct.\+h}
\hypertarget{struct_8h_source}{}\label{struct_8h_source}\index{src/struct.h@{src/struct.h}}
\mbox{\hyperlink{struct_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{const_8h}{const.h}}"{}}}
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00013\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structenv}{env}}\ \{}
\DoxyCodeLine{00014\ \ \ \textcolor{keywordtype}{char}*\ \mbox{\hyperlink{structenv_a170118ec15be2b419562524b75693d9f}{key}};}
\DoxyCodeLine{00015\ \ \ \textcolor{keywordtype}{char}*\ \mbox{\hyperlink{structenv_a4c45a37bbe3008aa248a28d0b60289b7}{value}};}
\DoxyCodeLine{00016\ \}\ \mbox{\hyperlink{structenv}{env}};}
\DoxyCodeLine{00017\ }
\DoxyCodeLine{00024\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structinode}{inode}}\ \{}
\DoxyCodeLine{00025\ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{short}\ \mbox{\hyperlink{structinode_ab744b42f5d23ec542bd9897a4d15a5fa}{perms}};\ \textcolor{comment}{//\ rwxrwxrwx}}
\DoxyCodeLine{00026\ \ \ \textcolor{keywordtype}{char}\ \mbox{\hyperlink{structinode_a2d0a5188e7dfbfcf2fa374a5fb348177}{filetype}};}
\DoxyCodeLine{00027\ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{structinode_aaeb4427c36772c74ae86c9510ee6a6b3}{blocs}}[\mbox{\hyperlink{const_8h_ad7140f3913ca85546efb2ded034d0af2}{MAX\_BLOCS}}];}
\DoxyCodeLine{00028\ \}\ \mbox{\hyperlink{structinode}{inode}};}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00036\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structbloc}{bloc}}\ \{}
\DoxyCodeLine{00037\ \ \ \textcolor{keywordtype}{char}\ \mbox{\hyperlink{structbloc_a801f2e871d2e285480d31426e39e01a9}{datas}}[\mbox{\hyperlink{const_8h_a60fedb7550ff4e00d6c70dd2d257c154}{MAX\_BYTES\_PER\_BLOC}}];}
\DoxyCodeLine{00038\ \}\ \mbox{\hyperlink{structbloc}{bloc}};}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00046\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structdisk}{disk}}\ \{}
\DoxyCodeLine{00047\ \ \ \textcolor{keywordtype}{char}\ \mbox{\hyperlink{structdisk_a60d62e18ebc1d2933bb952352397acda}{owned\_blocs}}[\mbox{\hyperlink{const_8h_ad7140f3913ca85546efb2ded034d0af2}{MAX\_BLOCS}}];\ \textcolor{comment}{//\ 1\ si\ possédé\ par\ un\ inode,\ 0\ si\ libre}}
\DoxyCodeLine{00048\ \ \ \mbox{\hyperlink{structinode}{inode}}\ \mbox{\hyperlink{structdisk_a187c55f0919fa8f44cc442857cce3e8d}{inodes}}[\mbox{\hyperlink{const_8h_af58c11b86af508a573976185fb99170f}{MAX\_INODE}}];}
\DoxyCodeLine{00049\ \ \ \mbox{\hyperlink{structbloc}{bloc}}\ \mbox{\hyperlink{structdisk_ad418fe421d1f081b29dcc7922608ca59}{blocs}}[\mbox{\hyperlink{const_8h_ad7140f3913ca85546efb2ded034d0af2}{MAX\_BLOCS}}];}
\DoxyCodeLine{00050\ \}\ \mbox{\hyperlink{structdisk}{disk}};}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00052\ \textcolor{comment}{//\ pour\ 10\ inode\ qui\ a\ 30\ blocs\ de\ chacun\ 1024\ octets,\ on\ a\ 30720\ octets,\ soit}}
\DoxyCodeLine{00053\ \textcolor{comment}{//\ 30,7\ Ko\ sur\ le\ disque}}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00059\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structcommand}{command}}\ \{}
\DoxyCodeLine{00060\ \ \ \textcolor{keywordtype}{char}\ **\mbox{\hyperlink{structcommand_a03bac117621dd0961bafddbc41b10a9d}{argv}};}
\DoxyCodeLine{00061\ \ \ \textcolor{keywordtype}{char}\ *\mbox{\hyperlink{structcommand_ad520eb26cbcc750dd70cda78ffb0c0dc}{redirect\_out}};}
\DoxyCodeLine{00062\ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{structcommand_a848e9a7e09c36ae07d24c36ba644ac1f}{append\_mode}};}
\DoxyCodeLine{00063\ \}\ \mbox{\hyperlink{structcommand}{command}};}
\end{DoxyCode}