diff --git a/config.toml b/config.toml index 1e3c282..3b2cee9 100644 --- a/config.toml +++ b/config.toml @@ -7,7 +7,7 @@ pygmentsUseClasses = false theme = "mainroad" rssLimit = 10 paginate = 10 - +enableRobotsTXT = true [taxonomies] category = "categories" tag = "tags" diff --git a/content/installations/1-LDAP/index.md b/content/installations/1-LDAP/index.md index 53961c6..6385f30 100644 --- a/content/installations/1-LDAP/index.md +++ b/content/installations/1-LDAP/index.md @@ -2,7 +2,7 @@ title: Les annuaires LDAP date: 2018-09-06 tags: ["annuaire", "LDAP", "LDIG"] -categories: ["Installations", "Cours"] +categories: ["Installation", "Cours"] --- **LDAP** pour *Lightweight Directory Access Protocol* est à l'origine un diff --git a/content/installations/TDM_1-OpenLDAP/index.md b/content/installations/TDM_1-OpenLDAP/index.md index f777d1a..050ffe0 100644 --- a/content/installations/TDM_1-OpenLDAP/index.md +++ b/content/installations/TDM_1-OpenLDAP/index.md @@ -2,7 +2,7 @@ title: TDM1 OpenLDAP - notes d'installation date: 2018-09-13 lastmod: 2018-08-27 -category: Installations +categorie: ["Installations", "TD machines"] tags: ['OpenLDAP', 'Apache Directory Studio', 'PAM'] --- diff --git a/content/installations/TDM_2-Postfix/index.md b/content/installations/TDM_2-Postfix/index.md index 4fbf109..a553af9 100644 --- a/content/installations/TDM_2-Postfix/index.md +++ b/content/installations/TDM_2-Postfix/index.md @@ -1,7 +1,7 @@ --- title: "Installation : Postfix + LDAP" -categories: ["Installation", "tdm"] -tags: ["Postfix", "LDAP", "maildir] +categories: ["Installation", "TD machine"] +tags: ["Postfix", "LDAP", "maildir"] date: 2018-09-13 modify: 2018-10-18 --- @@ -62,7 +62,7 @@ permettra à LDAP d'aller chercher les utilisateurs dans l'annuaire LDAP. C'est en quelque sorte la requête pour aller checrher les informations dans l'annuaire. -```cf +```conf server_host = ldap://ldapsrv.u-bordeaux.fr search_base = dmdName=users,dc=u-bordeaux,dc=fr bind = yes diff --git a/content/progsys/TDM_1-appels_systemes/index.md b/content/progsys/TDM_1-appels_systemes/index.md index f4458fd..c6883cc 100644 --- a/content/progsys/TDM_1-appels_systemes/index.md +++ b/content/progsys/TDM_1-appels_systemes/index.md @@ -1,9 +1,10 @@ --- -title: Programmation systeme TDM 1 +title: "TDM : Les appels système" date: 2018-09-05 -categorie: ['Programmation système', 'TDM'] +categories: ['Programmation système', 'TD machine'] tags : ['appels', 'systèmes', 'Python', 'C'] --- + #Différence entre les strace C et Python Le strace python est plus volumineux, ce aui semble normal puisque le code est diff --git a/content/progsys/TDM_2-fichiers/index.md b/content/progsys/TDM_2-fichiers/index.md index fc5b69a..130f024 100644 --- a/content/progsys/TDM_2-fichiers/index.md +++ b/content/progsys/TDM_2-fichiers/index.md @@ -1,7 +1,7 @@ --- title: "TDM : Les fichiers" date: 2018-09-11 -categories : ['Programmation système', 'TDM'] +categories : ['Programmation système', 'TD machine'] --- Pas encore de contenu diff --git a/content/progsys/TDM_3-processus/index.md b/content/progsys/TDM_3-processus/index.md index 4d25308..f211f55 100644 --- a/content/progsys/TDM_3-processus/index.md +++ b/content/progsys/TDM_3-processus/index.md @@ -1,7 +1,7 @@ --- Title: "TDM : Les Processus" Date: 2018-09-18 -Category: Programmation système +Categories: ["Programmation système", "TD machine"] tags: ['TD Machine', 'programmation', 'C', 'processus'] --- diff --git a/content/progsys/TDM_5-threads/index.md b/content/progsys/TDM_5-threads/index.md index 06ecff6..5c815ee 100644 --- a/content/progsys/TDM_5-threads/index.md +++ b/content/progsys/TDM_5-threads/index.md @@ -1,6 +1,6 @@ --- title : "TDM : Les processus légers" -category: Programmation système +categories: ["Programmation système", "TD machine"] date: 2018-09-25 --- [télécharger les questions](./files/tdm5.pdf) diff --git a/content/progsys/TDM_6-tubes/index.md b/content/progsys/TDM_6-tubes/index.md index 4c9e8ab..e938e50 100644 --- a/content/progsys/TDM_6-tubes/index.md +++ b/content/progsys/TDM_6-tubes/index.md @@ -1,6 +1,11 @@ --- title: "TDM6 : les tubes" +categories: ["Programmation système", "TD machine"] date: 2018-10-09 --- +[télécharger]( files/tdm6.pdf ) +## Question 1 + +[Voir]( src/q1.c ) mon code C diff --git a/content/progsys/TDM_7-attributs_fichiers/files/tdm7.pdf b/content/progsys/TDM_7-attributs_fichiers/files/tdm7.pdf new file mode 100644 index 0000000..c35bb3c Binary files /dev/null and b/content/progsys/TDM_7-attributs_fichiers/files/tdm7.pdf differ diff --git a/content/progsys/TDM_7-attributs_fichiers/index.md b/content/progsys/TDM_7-attributs_fichiers/index.md new file mode 100644 index 0000000..57512c5 --- /dev/null +++ b/content/progsys/TDM_7-attributs_fichiers/index.md @@ -0,0 +1,15 @@ +--- +title: "TDM7 : les attibuts de fichiers" +date: 2018-10-16 +categories: ["Programmation système", "TD machine"] +--- + +[Télécharger]( files/tdm7.pdf ) les questions. + +## Question 1 + +[Voir]( src/myls.c ) mon code C + +J'ai choisi d'utiliser l'operateur ternaire pour afficher les différents +éléments. S'il y a des cas ou il peut complexifier la lecture du code, je le +trouve très adapté à la situation. diff --git a/content/progsys/TDM_7-attributs_fichiers/src/myls.c b/content/progsys/TDM_7-attributs_fichiers/src/myls.c new file mode 100644 index 0000000..eb31fcd --- /dev/null +++ b/content/progsys/TDM_7-attributs_fichiers/src/myls.c @@ -0,0 +1,41 @@ +#include +#include +#include +#include + +int main (int argc, char **argv){ + int i; + struct stat statbuf; + for (i = 1; i < argc; i++) { + if (stat(argv[i], &statbuf) < 0) { + perror("Unable to get stats"); + continue; + } + printf("%s", S_ISDIR(statbuf.st_mode) ? "d" : (S_ISLNK(statbuf.st_mode) ? "l" : "_")); + printf("%s", (statbuf.st_mode & S_IRUSR) ? "r" : "-"); + printf("%s", (statbuf.st_mode & S_IWUSR) ? "w" : "-"); + printf("%s", (statbuf.st_mode & S_IXUSR) ? "x" : "-"); + + printf("%s", (statbuf.st_mode & S_IRGRP) ? "r" : "-"); + printf("%s", (statbuf.st_mode & S_IWGRP) ? "w" : "-"); + printf("%s", (statbuf.st_mode & S_IXGRP) ? "x" : "-"); + + printf("%s", (statbuf.st_mode & S_IROTH) ? "r" : "-"); + printf("%s", (statbuf.st_mode & S_IWOTH) ? "w" : "-"); + printf("%s", (statbuf.st_mode & S_IXOTH) ? "x" : "-"); + + printf("\t"); + + printf("%ld\t", statbuf.st_nlink); + + printf("%d ", statbuf.st_uid); + printf("%d ", statbuf.st_gid); + + printf("\t"); + printf("%ld", statbuf.st_size); + + printf("\t"); + printf("%s", argv[i]); + printf("\n"); + } +} diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..da6affc --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,4 @@ +User-agent: * + +{{range .Pages}} +Disallow: {{.RelPermalink}} {{end}}