helper.h 791 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
  3. * Licensed under the GPL
  4. */
  5. #ifndef __HELPER_H__
  6. #define __HELPER_H__
  7. extern int run_helper(void (*pre_exec)(void *), void *pre_data, char **argv,
  8. unsigned long *stack_out);
  9. extern int run_helper_thread(int (*proc)(void *), void *arg,
  10. unsigned int flags, unsigned long *stack_out,
  11. int stack_order);
  12. extern int helper_wait(int pid);
  13. #endif
  14. /*
  15. * Overrides for Emacs so that we follow Linus's tabbing style.
  16. * Emacs will notice this stuff at the end of the file and automatically
  17. * adjust the settings for this buffer only. This must remain at the end
  18. * of the file.
  19. * ---------------------------------------------------------------------------
  20. * Local variables:
  21. * c-file-style: "linux"
  22. * End:
  23. */