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