posix.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #ifndef SCM_POSIX_H
  2. #define SCM_POSIX_H
  3. /* Copyright 1995-1998,2000-2001,2003,2006,2008-2011,2018
  4. Free Software Foundation, Inc.
  5. This file is part of Guile.
  6. Guile is free software: you can redistribute it and/or modify it
  7. under the terms of the GNU Lesser General Public License as published
  8. by the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. Guile is distributed in the hope that it will be useful, but WITHOUT
  11. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  13. License for more details.
  14. You should have received a copy of the GNU Lesser General Public
  15. License along with Guile. If not, see
  16. <https://www.gnu.org/licenses/>. */
  17. #include "libguile/threads.h"
  18. SCM_API SCM scm_tcsetpgrp (SCM port, SCM pgid);
  19. SCM_API SCM scm_tcgetpgrp (SCM port);
  20. SCM_API SCM scm_ctermid (void);
  21. SCM_API SCM scm_setsid (void);
  22. SCM_API SCM scm_getsid (SCM pid);
  23. SCM_API SCM scm_setpgid (SCM pid, SCM pgid);
  24. SCM_API SCM scm_pipe (void);
  25. SCM_API SCM scm_getgroups (void);
  26. SCM_API SCM scm_setgroups (SCM groups);
  27. SCM_API SCM scm_getpgrp (void);
  28. SCM_API SCM scm_getpwuid (SCM user);
  29. SCM_API SCM scm_setpwent (SCM arg);
  30. SCM_API SCM scm_getgrgid (SCM name);
  31. SCM_API SCM scm_setgrent (SCM arg);
  32. SCM_API SCM scm_getrlimit (SCM resource);
  33. SCM_API SCM scm_setrlimit (SCM resource, SCM soft, SCM hard);
  34. SCM_API SCM scm_kill (SCM pid, SCM sig);
  35. SCM_API SCM scm_waitpid (SCM pid, SCM options);
  36. SCM_API SCM scm_status_exit_val (SCM status);
  37. SCM_API SCM scm_status_term_sig (SCM status);
  38. SCM_API SCM scm_status_stop_sig (SCM status);
  39. SCM_API SCM scm_getppid (void);
  40. SCM_API SCM scm_getuid (void);
  41. SCM_API SCM scm_getgid (void);
  42. SCM_API SCM scm_geteuid (void);
  43. SCM_API SCM scm_getegid (void);
  44. SCM_API SCM scm_setuid (SCM uid);
  45. SCM_API SCM scm_setgid (SCM gid);
  46. SCM_API SCM scm_seteuid (SCM euid);
  47. SCM_API SCM scm_setegid (SCM egid);
  48. SCM_API SCM scm_ttyname (SCM port);
  49. SCM_API SCM scm_execl (SCM filename, SCM args);
  50. SCM_API SCM scm_execlp (SCM filename, SCM args);
  51. SCM_API SCM scm_execle (SCM filename, SCM env, SCM args);
  52. SCM_API SCM scm_fork (void);
  53. SCM_API SCM scm_uname (void);
  54. SCM_API SCM scm_environ (SCM env);
  55. SCM_API SCM scm_tmpnam (void);
  56. SCM_API SCM scm_mkstemp (SCM tmpl);
  57. SCM_API SCM scm_tmpfile (void);
  58. SCM_API SCM scm_open_pipe (SCM pipestr, SCM modes);
  59. SCM_API SCM scm_close_pipe (SCM port);
  60. SCM_API SCM scm_system_star (SCM cmds);
  61. SCM_API SCM scm_utime (SCM pathname, SCM actime, SCM modtime,
  62. SCM actimens, SCM modtimens, SCM flags);
  63. SCM_API SCM scm_access (SCM path, SCM how);
  64. SCM_API SCM scm_getpid (void);
  65. SCM_API SCM scm_putenv (SCM str);
  66. SCM_API SCM scm_setlocale (SCM category, SCM locale);
  67. SCM_API SCM scm_mknod (SCM path, SCM type, SCM perms, SCM dev);
  68. SCM_API SCM scm_nice (SCM incr);
  69. SCM_API SCM scm_sync (void);
  70. SCM_API SCM scm_crypt (SCM key, SCM salt);
  71. SCM_API SCM scm_chroot (SCM path);
  72. SCM_API SCM scm_getlogin (void);
  73. SCM_API SCM scm_getpriority (SCM which, SCM who);
  74. SCM_API SCM scm_setpriority (SCM which, SCM who, SCM prio);
  75. SCM_API SCM scm_getpass (SCM prompt);
  76. SCM_API SCM scm_flock (SCM file, SCM operation);
  77. SCM_API SCM scm_sethostname (SCM name);
  78. SCM_API SCM scm_gethostname (void);
  79. SCM_API SCM scm_getaffinity (SCM pid);
  80. SCM_API SCM scm_setaffinity (SCM pid, SCM cpu_set);
  81. SCM_INTERNAL void scm_init_posix (void);
  82. SCM_INTERNAL scm_i_pthread_mutex_t scm_i_locale_mutex;
  83. #endif /* SCM_POSIX_H */