You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425
  1. #ifndef _UNISTD_H
  2. #define _UNISTD_H
  3. #include <stddef.h>
  4. #include <stdarg.h>
  5. extern unsigned int sleep ( unsigned int seconds );
  6. extern int execv ( const char *command, char * const argv[] );
  7. /**
  8. * Execute command
  9. *
  10. * @v command Command name
  11. * @v arg ... Argument list (starting with argv[0])
  12. * @ret rc Command exit status
  13. *
  14. * This is a front end to execv().
  15. */
  16. #define execl( command, arg, ... ) ( { \
  17. char * const argv[] = { (arg), ## __VA_ARGS__ }; \
  18. int rc = execv ( (command), argv ); \
  19. rc; \
  20. } )
  21. #endif /* _UNISTD_H */