無保証です.ご自由にお使いください.
% gcc simple-inetd.c -o simple-inetd -Wall
# simple-inetd 10000 1001 1001 /home/user print-argv print-argv abc def