woke a écrit 3 commentaires

  • [^] # Re: mais zencore

    Posté par  . En réponse au lien Réforme des retraites: le spectre d’une censure totale du texte par le Conseil Constitutionnel. Évalué à -1.

  • # mais zencore

    Posté par  . En réponse au lien Réforme des retraites: le spectre d’une censure totale du texte par le Conseil Constitutionnel. Évalué à 2.

    « Le Conseil constitutionnel ne joue pas le rôle de contre-pouvoir »

    La blague à laquelle on assiste est destinée à devenir la norme (y’a une contre-réforme des institutions dans les cartons…).

  • # Nope

    Posté par  . En réponse au message C : gestion du répertoire de travail. Évalué à 1.

    man 3p exec

    The value in argv[0] should point to a filename string that is associated with the process being started by one of the exec functions.

    man 3 exec

    The char *const argv[] argument is an array of pointers to null-terminated strings that represent the argument list available to the new program. The first argument, by convention, should point to the filename associated with the file being executed. The array of pointers must be terminated by a null pointer.

    Bonus :

    ~ /bin/ls -l /proc/self/exe
    lrwxrwxrwx 1 woke users 0 Mar 16 12:07 /proc/self/exe -> /bin/ls

    man proc

    /proc/pid/exe Under Linux 2.2 and later, this file is a symbolic link containing the actual pathname of the executed command. This symbolic link can be dereferenced normally; attempting to open it will open the executable. You can even type /proc/pid/exe to run another copy of the same executable that is being run by process pid. If the pathname has been unlinked, the symbolic link will contain the string '(deleted)' appended to the original pathname. In a multithreaded process, the contents of this symbolic link are not available if the main thread has already terminated (typically by calling pthread_exit(3)).

    man hier