posix.h 3.6 KB

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