sys-wait.c 807 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * <sys/wait.h> wrapper functions.
  3. *
  4. * Authors:
  5. * Jonathan Pryor ([email protected])
  6. *
  7. * Copyright (C) 2004 Jonathan Pryor
  8. */
  9. #include <sys/types.h>
  10. #include <sys/wait.h>
  11. #include <glib.h>
  12. #include "mph.h"
  13. #include "map.h"
  14. G_BEGIN_DECLS
  15. gint32
  16. Mono_Posix_Syscall_WIFEXITED (gint32 status)
  17. {
  18. return WIFEXITED (status);
  19. }
  20. gint32
  21. Mono_Posix_Syscall_WEXITSTATUS (gint32 status)
  22. {
  23. return WEXITSTATUS (status);
  24. }
  25. gint32
  26. Mono_Posix_Syscall_WIFSIGNALED (gint32 status)
  27. {
  28. return WIFSIGNALED (status);
  29. }
  30. gint32
  31. Mono_Posix_Syscall_WTERMSIG (gint32 status)
  32. {
  33. return WTERMSIG (status);
  34. }
  35. gint32
  36. Mono_Posix_Syscall_WIFSTOPPED (gint32 status)
  37. {
  38. return WIFSTOPPED (status);
  39. }
  40. gint32
  41. Mono_Posix_Syscall_WSTOPSIG (gint32 status)
  42. {
  43. return WSTOPSIG (status);
  44. }
  45. G_END_DECLS
  46. /*
  47. * vim: noexpandtab
  48. */