GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
unistd-wrappers.h File Reference
#include <stdbool.h>
#include <sys/types.h>

Go to the source code of this file.

Functions

int octave_access_f_ok (void)
 
int octave_access_r_ok (void)
 
int octave_access_w_ok (void)
 
int octave_access_wrapper (const char *nm, int mode)
 
int octave_access_x_ok (void)
 
int octave_chdir_wrapper (const char *nm)
 
int octave_close_wrapper (int fd)
 
const char * octave_ctermid_wrapper (void)
 
int octave_dup2_wrapper (int fd1, int fd2)
 
int octave_execv_wrapper (const char *file, char *const *argv)
 
int octave_execvp_wrapper (const char *file, char *const *argv)
 
pid_t octave_fork_wrapper (void)
 
int octave_ftruncate_wrapper (int fd, off_t sz)
 
char * octave_getcwd_wrapper (char *nm, size_t len)
 
gid_t octave_getegid_wrapper (void)
 
uid_t octave_geteuid_wrapper (void)
 
gid_t octave_getgid_wrapper (void)
 
int octave_gethostname_wrapper (char *nm, size_t len)
 
pid_t octave_getpgrp_wrapper (void)
 
pid_t octave_getpid_wrapper (void)
 
pid_t octave_getppid_wrapper (void)
 
uid_t octave_getuid_wrapper (void)
 
bool octave_have_fork (void)
 
bool octave_have_vfork (void)
 
int octave_isatty_wrapper (int fd)
 
int octave_link_wrapper (const char *nm1, const char *nm2)
 
int octave_pipe_wrapper (int *fd)
 
int octave_rmdir_wrapper (const char *nm)
 
pid_t octave_setsid_wrapper (void)
 
int octave_stdin_fileno (void)
 
int octave_stdout_fileno (void)
 
int octave_symlink_wrapper (const char *nm1, const char *nm2)
 
int octave_unlink_wrapper (const char *nm)
 
pid_t octave_vfork_wrapper (void)
 

Function Documentation

◆ octave_access_f_ok()

int octave_access_f_ok ( void  )

Definition at line 57 of file unistd-wrappers.c.

◆ octave_access_r_ok()

int octave_access_r_ok ( void  )

Definition at line 63 of file unistd-wrappers.c.

◆ octave_access_w_ok()

int octave_access_w_ok ( void  )

Definition at line 69 of file unistd-wrappers.c.

◆ octave_access_wrapper()

int octave_access_wrapper ( const char *  nm,
int  mode 
)

Definition at line 81 of file unistd-wrappers.c.

◆ octave_access_x_ok()

int octave_access_x_ok ( void  )

Definition at line 75 of file unistd-wrappers.c.

◆ octave_chdir_wrapper()

int octave_chdir_wrapper ( const char *  nm)

Definition at line 87 of file unistd-wrappers.c.

References chdir(), free(), and u8_to_wchar().

Referenced by chdir().

◆ octave_close_wrapper()

int octave_close_wrapper ( int  fd)

Definition at line 100 of file unistd-wrappers.c.

Referenced by procbuf::open().

◆ octave_ctermid_wrapper()

const char* octave_ctermid_wrapper ( void  )

Definition at line 106 of file unistd-wrappers.c.

◆ octave_dup2_wrapper()

int octave_dup2_wrapper ( int  fd1,
int  fd2 
)

Definition at line 116 of file unistd-wrappers.c.

References dup2().

Referenced by dup2(), and procbuf::open().

◆ octave_execv_wrapper()

int octave_execv_wrapper ( const char *  file,
char *const *  argv 
)

Definition at line 122 of file unistd-wrappers.c.

References free(), malloc(), and u8_to_wchar().

◆ octave_execvp_wrapper()

int octave_execvp_wrapper ( const char *  file,
char *const *  argv 
)

Definition at line 181 of file unistd-wrappers.c.

References execvp().

Referenced by execvp().

◆ octave_fork_wrapper()

pid_t octave_fork_wrapper ( void  )

Definition at line 187 of file unistd-wrappers.c.

References fork().

Referenced by fork(), and vfork().

◆ octave_ftruncate_wrapper()

int octave_ftruncate_wrapper ( int  fd,
off_t  sz 
)

Definition at line 197 of file unistd-wrappers.c.

◆ octave_getcwd_wrapper()

char* octave_getcwd_wrapper ( char *  nm,
size_t  len 
)

Definition at line 203 of file unistd-wrappers.c.

References free(), getcwd(), len, strlen(), and u8_from_wchar().

Referenced by getcwd().

◆ octave_getegid_wrapper()

gid_t octave_getegid_wrapper ( void  )

Definition at line 230 of file unistd-wrappers.c.

References getegid().

Referenced by getegid().

◆ octave_geteuid_wrapper()

uid_t octave_geteuid_wrapper ( void  )

Definition at line 240 of file unistd-wrappers.c.

References geteuid().

Referenced by command_editor::do_decode_prompt_string(), and geteuid().

◆ octave_getgid_wrapper()

gid_t octave_getgid_wrapper ( void  )

Definition at line 250 of file unistd-wrappers.c.

References getgid().

Referenced by getgid().

◆ octave_gethostname_wrapper()

int octave_gethostname_wrapper ( char *  nm,
size_t  len 
)

Definition at line 260 of file unistd-wrappers.c.

References len.

◆ octave_getpgrp_wrapper()

pid_t octave_getpgrp_wrapper ( void  )

Definition at line 266 of file unistd-wrappers.c.

References getpgrp().

Referenced by getpgrp().

◆ octave_getpid_wrapper()

pid_t octave_getpid_wrapper ( void  )

Definition at line 276 of file unistd-wrappers.c.

References getpid().

Referenced by getpid(), and interpreter::interrupt().

◆ octave_getppid_wrapper()

pid_t octave_getppid_wrapper ( void  )

Definition at line 286 of file unistd-wrappers.c.

References getppid().

Referenced by getppid().

◆ octave_getuid_wrapper()

uid_t octave_getuid_wrapper ( void  )

Definition at line 296 of file unistd-wrappers.c.

References getuid().

Referenced by getuid().

◆ octave_have_fork()

bool octave_have_fork ( void  )

Definition at line 396 of file unistd-wrappers.c.

Referenced by fork(), and vfork().

◆ octave_have_vfork()

bool octave_have_vfork ( void  )

Definition at line 406 of file unistd-wrappers.c.

Referenced by vfork().

◆ octave_isatty_wrapper()

int octave_isatty_wrapper ( int  fd)

Definition at line 306 of file unistd-wrappers.c.

References isatty.

Referenced by octave::raw_mode().

◆ octave_link_wrapper()

int octave_link_wrapper ( const char *  nm1,
const char *  nm2 
)

Definition at line 312 of file unistd-wrappers.c.

References octave::sys::link().

Referenced by octave::sys::link().

◆ octave_pipe_wrapper()

int octave_pipe_wrapper ( int *  fd)

Definition at line 318 of file unistd-wrappers.c.

References pipe().

Referenced by pipe().

◆ octave_rmdir_wrapper()

int octave_rmdir_wrapper ( const char *  nm)

Definition at line 324 of file unistd-wrappers.c.

References free(), octave::sys::rmdir(), and u8_to_wchar().

Referenced by octave::sys::rmdir().

◆ octave_setsid_wrapper()

pid_t octave_setsid_wrapper ( void  )

Definition at line 337 of file unistd-wrappers.c.

◆ octave_stdin_fileno()

int octave_stdin_fileno ( void  )

Definition at line 347 of file unistd-wrappers.c.

References STDIN_FILENO.

◆ octave_stdout_fileno()

int octave_stdout_fileno ( void  )

Definition at line 353 of file unistd-wrappers.c.

◆ octave_symlink_wrapper()

int octave_symlink_wrapper ( const char *  nm1,
const char *  nm2 
)

Definition at line 359 of file unistd-wrappers.c.

References octave::sys::symlink().

Referenced by octave::sys::symlink().

◆ octave_unlink_wrapper()

int octave_unlink_wrapper ( const char *  nm)

◆ octave_vfork_wrapper()

pid_t octave_vfork_wrapper ( void  )

Definition at line 386 of file unistd-wrappers.c.

References vfork().

Referenced by vfork().