lundi 30 mars 2015

How the getcwd is implemented in the kernel (library)?



One process could do



chdir("/to/some/where");


when from the another shell



mv /to/some/where /now/different/path/


the 1st process



print getcwd();
#prints /now/different/path/


How the getcwd is implemented? (at the lowest level, e.g. at the level of kernel, inodes ...).




Aucun commentaire:

Enregistrer un commentaire