4 ms·
Where it's not possible? It's possible at least on all unixes and windows.
by GoblinSlayer 5y ago
Where it's not possible? It's possible at least on all unixes and windows.
- tptacek 5y agoWhere is it not possible to execve(..., NULL, ...)? On every other Unix besides Linux, apparently.
- GoblinSlayer 5y agoI mean the claim about impossibility to replace argv[0], which is certainly required on unixes by the login shell.
- mmis1000 5y agoUmmm. On windows, it seems you can make it something else, but not null it. Windows literally specify there will be at least one parameter in argv (argc is always big or equal to 1) https://docs.microsoft.com/en-us/cpp/cpp/main-function-command-line-args?view=msvc-170 https://docs.microsoft.com/en-us/cpp/cpp/main-function-comma...