4 ms·
Programs are passed arguments. As in, execve gives you a list of arguments that end up in argv and have absolutely no need to have anything to do with STDIN.
by cestith 10y ago
Programs are passed arguments. As in, execve gives you a list of arguments that end up in argv and have absolutely no need to have anything to do with STDIN.
- dllthomas 10y agoYeah, the input is actually a list of strings (arguments), a map of strings to strings (environment variables), and a string. (Assuming that we're not doing anything interesting with the file descriptors; I can see an argument for excluding that possibility from this discussion, but certainly it's a simplification.)