Handling argc==0 in the kernel
Handling argc==0 in the kernel
Posted Jan 29, 2022 0:23 UTC (Sat) by nybble41 (subscriber, #55106)In reply to: Handling argc==0 in the kernel by khim
Parent article: Handling argc==0 in the kernel
If you do claim to be a Strictly Conforming POSIX Application then you can't call exec with less than one argument. However, a Strictly Conforming POSIX Application may be *invoked* with zero arguments, and is required to handle that case as well to qualify as Strictly Conforming since POSIX does not specify that the argument list passed to main() will be non-empty and you can't assume every other program in the system is also Strictly Conforming.
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
