sys-wait.c 797 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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/gtypes.h>
  12. #include "map.h"
  13. G_BEGIN_DECLS
  14. gint32
  15. Mono_Posix_Syscall_WIFEXITED (gint32 status)
  16. {
  17. return WIFEXITED (status);
  18. }
  19. gint32
  20. Mono_Posix_Syscall_WEXITSTATUS (gint32 status)
  21. {
  22. return WEXITSTATUS (status);
  23. }
  24. gint32
  25. Mono_Posix_Syscall_WIFSIGNALED (gint32 status)
  26. {
  27. return WIFSIGNALED (status);
  28. }
  29. gint32
  30. Mono_Posix_Syscall_WTERMSIG (gint32 status)
  31. {
  32. return WTERMSIG (status);
  33. }
  34. gint32
  35. Mono_Posix_Syscall_WIFSTOPPED (gint32 status)
  36. {
  37. return WIFSTOPPED (status);
  38. }
  39. gint32
  40. Mono_Posix_Syscall_WSTOPSIG (gint32 status)
  41. {
  42. return WSTOPSIG (status);
  43. }
  44. G_END_DECLS
  45. /*
  46. * vim: noexpandtab
  47. */