posix.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #ifndef SCM_POSIX_H
  2. #define SCM_POSIX_H
  3. /* Copyright 1995-1998, 2000-2001, 2003, 2006, 2008-2011, 2018, 2021-2023
  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_INTERNAL SCM scm_pipe2 (SCM flags);
  26. SCM_API SCM scm_getgroups (void);
  27. SCM_API SCM scm_setgroups (SCM groups);
  28. SCM_API SCM scm_getpgrp (void);
  29. SCM_API SCM scm_getpwuid (SCM user);
  30. SCM_API SCM scm_setpwent (SCM arg);
  31. SCM_API SCM scm_getgrgid (SCM name);
  32. SCM_API SCM scm_setgrent (SCM arg);
  33. SCM_API SCM scm_getrlimit (SCM resource);
  34. SCM_API SCM scm_setrlimit (SCM resource, SCM soft, SCM hard);
  35. SCM_API SCM scm_kill (SCM pid, SCM sig);
  36. SCM_API SCM scm_waitpid (SCM pid, SCM options);
  37. SCM_API SCM scm_status_exit_val (SCM status);
  38. SCM_API SCM scm_status_term_sig (SCM status);
  39. SCM_API SCM scm_status_stop_sig (SCM status);
  40. SCM_API SCM scm_getppid (void);
  41. SCM_API SCM scm_getuid (void);
  42. SCM_API SCM scm_getgid (void);
  43. SCM_API SCM scm_geteuid (void);
  44. SCM_API SCM scm_getegid (void);
  45. SCM_API SCM scm_setuid (SCM uid);
  46. SCM_API SCM scm_setgid (SCM gid);
  47. SCM_API SCM scm_seteuid (SCM euid);
  48. SCM_API SCM scm_setegid (SCM egid);
  49. SCM_API SCM scm_ttyname (SCM port);
  50. SCM_API SCM scm_execl (SCM filename, SCM args);
  51. SCM_API SCM scm_execlp (SCM filename, SCM args);
  52. SCM_API SCM scm_execle (SCM filename, SCM env, SCM args);
  53. SCM_API SCM scm_fork (void);
  54. SCM_API SCM scm_uname (void);
  55. SCM_API SCM scm_environ (SCM env);
  56. SCM_API SCM scm_tmpnam (void);
  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_INTERNAL SCM scm_spawn_process (SCM prog, SCM arguments, SCM keyword_args);
  61. SCM_API SCM scm_system_star (SCM cmds);
  62. SCM_API SCM scm_utime (SCM object, SCM actime, SCM modtime,
  63. SCM actimens, SCM modtimens, SCM flags);
  64. SCM_API SCM scm_access (SCM path, SCM how);
  65. SCM_API SCM scm_getpid (void);
  66. SCM_API SCM scm_putenv (SCM str);
  67. SCM_API SCM scm_setlocale (SCM category, SCM locale);
  68. SCM_API SCM scm_mknod (SCM path, SCM type, SCM perms, SCM dev);
  69. SCM_API SCM scm_nice (SCM incr);
  70. SCM_API SCM scm_sync (void);
  71. SCM_API SCM scm_crypt (SCM key, SCM salt);
  72. SCM_API SCM scm_chroot (SCM path);
  73. SCM_API SCM scm_getlogin (void);
  74. SCM_API SCM scm_getpriority (SCM which, SCM who);
  75. SCM_API SCM scm_setpriority (SCM which, SCM who, SCM prio);
  76. SCM_API SCM scm_getpass (SCM prompt);
  77. SCM_API SCM scm_flock (SCM file, SCM operation);
  78. SCM_API SCM scm_sethostname (SCM name);
  79. SCM_API SCM scm_gethostname (void);
  80. SCM_API SCM scm_getaffinity (SCM pid);
  81. SCM_API SCM scm_setaffinity (SCM pid, SCM cpu_set);
  82. SCM_INTERNAL void scm_init_posix (void);
  83. SCM_INTERNAL scm_i_pthread_mutex_t scm_i_locale_mutex;
  84. #endif /* SCM_POSIX_H */