/** * * @File : exo_05-x.cxx * * @Authors : A.B. Dragut * * @Date : 2011 * * @Synopsis : Prog_test_executable pour exo_05 * Heritage des descripteurs de fichiers ouverts * en execution, drapeau O_CLOEXEC * Linux kernel ?2.6.23 et glibc ?2.7, open a le drapeau * O_CLOEXEC * **/ #include #include #include // execl() #include // O_RDONLY #include "CExc.h" #include "nsSysteme.h" // Fork(), Signal() using namespace std; using namespace nsSysteme; // Fork(), Signal() using namespace nsFctShell; //TestFdOuverts(); int main(int argc, char * argv []) { try { cout << "Nombre d'arguments : " << argc << endl; cout << "Arguments de la commande : " << endl; for(int i=0;i