ELinks 0.18.0
osdep.h File Reference
#include "osdep/beos/beos.h"
#include "osdep/dos/dos.h"
#include "osdep/os2/os2.h"
#include "osdep/riscos/riscos.h"
#include "osdep/unix/unix.h"
#include "osdep/win32/win32.h"
Include dependency graph for osdep.h:

Macros

#define CHAR_DIR_SEP   '/'
 
#define STRING_DIR_SEP   "/"
 
#define user_appdata_directory()   NULL
 

Functions

int get_system_env (void)
 
int get_e (const char *env)
 
int is_xterm (void)
 
int is_twterm (void)
 
void get_terminal_size (int, int *, int *, int *, int *)
 
void handle_terminal_resize (int, void(*)(void))
 
void unhandle_terminal_resize (int)
 
void set_bin (int)
 
int c_pipe (int *)
 
int get_input_handle (void)
 
int get_output_handle (void)
 
int get_ctl_handle (void)
 
void want_draw (void)
 
void done_draw (void)
 
void init_osdep (void)
 
void terminate_osdep (void)
 
void * handle_mouse (int, void(*)(void *, char *, int), void *)
 
void unhandle_mouse (void *)
 
void suspend_mouse (void *)
 
void resume_mouse (void *)
 
int start_thread (void(*)(void *, int), void *, int)
 
char * get_clipboard_text (void)
 
void set_clipboard_text (char *)
 
void set_window_title (const char *, int codepage)
 
char * get_window_title (int codepage)
 
void block_stdin (void)
 
void unblock_stdin (void)
 
int exe (char *)
 
int exe_no_stdin (char *)
 
int resize_window (int, int, int, int)
 
int can_resize_window (int)
 
int can_open_os_shell (int)
 
void set_highpri (void)
 
char * tempname (const char *dir, const char *pfx, char *suff)
 
long os_get_free_mem_in_mib (void)
 
static void prealloc_truncate (int x, int y)
 
const char * get_system_str (int)
 
int set_nonblocking_fd (int)
 
int set_blocking_fd (int)
 
void set_ip_tos_throughput (int socket)
 
char * get_cwd (void)
 
void set_cwd (char *)
 
const char * get_shell (void)
 
void elinks_cfmakeraw (struct termios *t)
 

Macro Definition Documentation

◆ CHAR_DIR_SEP

#define CHAR_DIR_SEP   '/'

◆ STRING_DIR_SEP

#define STRING_DIR_SEP   "/"

◆ user_appdata_directory

#define user_appdata_directory ( void)    NULL

Function Documentation

◆ block_stdin()

void block_stdin ( void )

◆ c_pipe()

int c_pipe ( int * )

◆ can_open_os_shell()

int can_open_os_shell ( int environment)

◆ can_resize_window()

int can_resize_window ( int environment)

◆ done_draw()

void done_draw ( void )

◆ elinks_cfmakeraw()

void elinks_cfmakeraw ( struct termios * t)

◆ exe()

int exe ( char * path)

◆ exe_no_stdin()

int exe_no_stdin ( char * path)

◆ get_clipboard_text()

char * get_clipboard_text ( void )

◆ get_ctl_handle()

int get_ctl_handle ( void )

◆ get_cwd()

char * get_cwd ( void )

◆ get_e()

int get_e ( const char * env)

◆ get_input_handle()

int get_input_handle ( void )

◆ get_output_handle()

int get_output_handle ( void )

◆ get_shell()

const char * get_shell ( void )

◆ get_system_env()

int get_system_env ( void )

◆ get_system_str()

const char * get_system_str ( int xwin)

◆ get_terminal_size()

void get_terminal_size ( int fd,
int * x,
int * y,
int * cw,
int * ch )

◆ get_window_title()

char * get_window_title ( int codepage)

◆ handle_mouse()

void * handle_mouse ( int cons,
void(* fn )(void *, char *, int),
void * data )

◆ handle_terminal_resize()

void handle_terminal_resize ( int fd,
void(* fn )(void) )

◆ init_osdep()

void init_osdep ( void )

◆ is_twterm()

int is_twterm ( void )

◆ is_xterm()

int is_xterm ( void )

◆ os_get_free_mem_in_mib()

long os_get_free_mem_in_mib ( void )

◆ prealloc_truncate()

static void prealloc_truncate ( int x,
int y )
inlinestatic

◆ resize_window()

int resize_window ( int x,
int y,
int old_width,
int old_height )

◆ resume_mouse()

void resume_mouse ( void * data)

◆ set_bin()

void set_bin ( int )

◆ set_blocking_fd()

int set_blocking_fd ( int fd)

◆ set_clipboard_text()

void set_clipboard_text ( char * data)

◆ set_cwd()

void set_cwd ( char * path)

◆ set_highpri()

void set_highpri ( void )

◆ set_ip_tos_throughput()

void set_ip_tos_throughput ( int socket)

◆ set_nonblocking_fd()

int set_nonblocking_fd ( int fd)

◆ set_window_title()

void set_window_title ( const char * ctitle,
int codepage )

◆ start_thread()

int start_thread ( void(* fn )(void *, int),
void * ptr,
int l )

◆ suspend_mouse()

void suspend_mouse ( void * data)

◆ tempname()

char * tempname ( const char * dir,
const char * pfx,
char * suff )

◆ terminate_osdep()

void terminate_osdep ( void )

◆ unblock_stdin()

void unblock_stdin ( void )

◆ unhandle_mouse()

void unhandle_mouse ( void * data)

◆ unhandle_terminal_resize()

void unhandle_terminal_resize ( int fd)

◆ want_draw()

void want_draw ( void )