GNU Octave  8.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>
Include dependency graph for unistd-wrappers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Function Documentation

◆ octave_access_f_ok()

OCTAVE_API int octave_access_f_ok ( void  )

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

◆ octave_access_r_ok()

OCTAVE_API int octave_access_r_ok ( void  )

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

Referenced by READABLE().

◆ octave_access_w_ok()

OCTAVE_API int octave_access_w_ok ( void  )

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

◆ octave_access_wrapper()

OCTAVE_API int octave_access_wrapper ( const char *  nm,
int  mode 
)

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

Referenced by READABLE().

◆ octave_access_x_ok()

OCTAVE_API int octave_access_x_ok ( void  )

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

◆ octave_chdir_wrapper()

OCTAVE_API 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()

OCTAVE_API int octave_close_wrapper ( int  fd)

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

Referenced by procbuf::open().

◆ octave_ctermid_wrapper()

OCTAVE_API const char* octave_ctermid_wrapper ( void  )

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

◆ octave_dup2_wrapper()

OCTAVE_API 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()

OCTAVE_API 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().

Referenced by octave_exec().

◆ octave_execvp_wrapper()

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

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

References execvp().

Referenced by execvp().

◆ octave_fork_wrapper()

OCTAVE_API pid_t octave_fork_wrapper ( void  )

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

References fork().

Referenced by fork(), main(), and vfork().

◆ octave_ftruncate_wrapper()

OCTAVE_API int octave_ftruncate_wrapper ( int  fd,
off_t  sz 
)

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

◆ octave_getcwd_wrapper()

OCTAVE_API char* octave_getcwd_wrapper ( char *  nm,
size_t  len 
)

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

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

Referenced by getcwd().

◆ octave_getegid_wrapper()

OCTAVE_API gid_t octave_getegid_wrapper ( void  )

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

References getegid().

Referenced by getegid().

◆ octave_geteuid_wrapper()

OCTAVE_API uid_t octave_geteuid_wrapper ( void  )

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

References geteuid().

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

◆ octave_getgid_wrapper()

OCTAVE_API gid_t octave_getgid_wrapper ( void  )

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

References getgid().

Referenced by getgid().

◆ octave_gethostname_wrapper()

OCTAVE_API int octave_gethostname_wrapper ( char *  nm,
size_t  len 
)

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

References len.

Referenced by env::do_get_host_name().

◆ octave_getpgrp_wrapper()

OCTAVE_API pid_t octave_getpgrp_wrapper ( void  )

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

References getpgrp().

Referenced by getpgrp().

◆ octave_getpid_wrapper()

OCTAVE_API pid_t octave_getpid_wrapper ( void  )

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

References getpid().

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

◆ octave_getppid_wrapper()

OCTAVE_API pid_t octave_getppid_wrapper ( void  )

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

References getppid().

Referenced by getppid().

◆ octave_getuid_wrapper()

OCTAVE_API uid_t octave_getuid_wrapper ( void  )

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

References getuid().

Referenced by getuid().

◆ octave_have_fork()

OCTAVE_API bool octave_have_fork ( void  )

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

Referenced by fork(), and vfork().

◆ octave_have_vfork()

OCTAVE_API bool octave_have_vfork ( void  )

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

Referenced by vfork().

◆ octave_isatty_wrapper()

OCTAVE_API int octave_isatty_wrapper ( int  fd)

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

References isatty.

Referenced by interpreter::interpreter(), and raw_mode().

◆ octave_link_wrapper()

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

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

References link().

Referenced by link().

◆ octave_pipe_wrapper()

OCTAVE_API int octave_pipe_wrapper ( int *  fd)

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

References pipe().

Referenced by pipe().

◆ octave_rmdir_wrapper()

OCTAVE_API int octave_rmdir_wrapper ( const char *  nm)

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

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

Referenced by rmdir().

◆ octave_setsid_wrapper()

OCTAVE_API pid_t octave_setsid_wrapper ( void  )

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

Referenced by main().

◆ octave_stdin_fileno()

OCTAVE_API int octave_stdin_fileno ( void  )

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

References STDIN_FILENO.

◆ octave_stdout_fileno()

OCTAVE_API int octave_stdout_fileno ( void  )

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

◆ octave_symlink_wrapper()

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

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

References symlink().

Referenced by symlink().

◆ octave_unlink_wrapper()

OCTAVE_API int octave_unlink_wrapper ( const char *  nm)

◆ octave_vfork_wrapper()

OCTAVE_API pid_t octave_vfork_wrapper ( void  )

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

References vfork().

Referenced by vfork().