scsh-0.6/scsh/syscalls1.h

69 lines
1.6 KiB
C
Raw Normal View History

/* Exports from syscalls1.c. */
s48_value wait_pid(s48_value pid, s48_value flags);
int scheme_exec(const char *prog, s48_value argv, s48_value env);
s48_value scsh_exit (s48_value status);
s48_value scsh__exit (s48_value status);
s48_value scsh_fork ();
s48_value scheme_pipe();
s48_value scsh_kill (s48_value pid, s48_value signal);
2000-09-20 06:14:11 -04:00
s48_value scm_readlink(s48_value path);
int scm_utime(char const *path, time_t ac, time_t mod);
int scm_utime_now(char const *path);
2000-09-20 06:14:11 -04:00
s48_value set_cloexec(s48_value _fd, s48_value _val);
int scheme_cwd(const char **dirp);
int process_times(clock_t *utime, clock_t *stime,
clock_t *cutime, clock_t *cstime);
int cpu_clock_ticks_per_sec();
s48_value read_fdes_char(int fd);
int write_fdes_char(char c, int fd);
ssize_t read_fdes_substring(s48_value buf, size_t start, size_t end, int fd);
int read_stream_substring(s48_value buf, int start, int end, FILE *f);
ssize_t write_fdes_substring(s48_value buf, size_t start, size_t end, int fd);
int write_stream_substring(s48_value buf, int start, int end, FILE *f);
int scheme_stat(const char *path, s48_value vec, int chase_p);
int scheme_fstat(int fd, s48_value vec);
int num_supp_groups(void);
int get_groups(s48_value gvec);
int put_env(const char *s);
s48_value scm_envvec(void);
int install_env(s48_value vec);
s48_value delete_env(s48_value var);
s48_value scm_gethostname(void);
char *errno_msg(int i);
s48_value fcntl_read(s48_value fd, s48_value command);
s48_value fcntl_write(s48_value fd, s48_value command, s48_value value);
s48_value scm_crypt(s48_value key, s48_value salt);