ELinks 0.18.0
osdep.c File Reference
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <locale.h>
#include "elinks.h"
#include "config/options.h"
#include "main/main.h"
#include "main/select.h"
#include "osdep/osdep.h"
#include "osdep/signals.h"
#include "session/session.h"
#include "terminal/terminal.h"
#include "util/conv.h"
#include "util/file.h"
#include "util/memory.h"
#include "util/string.h"
Include dependency graph for osdep.c:

Functions

long os_get_free_mem_in_mib (void)
 
int set_nonblocking_fd (int fd)
 
int set_blocking_fd (int fd)
 
void set_ip_tos_throughput (int socket)
 
int get_e (const char *env)
 
char * get_cwd (void)
 
void set_cwd (char *path)
 
const char * get_shell (void)
 
static void sigwinch (void *s)
 
void handle_terminal_resize (int fd, void(*fn)(void))
 
void unhandle_terminal_resize (int fd)
 
void get_terminal_size (int fd, int *x, int *y, int *cw, int *ch)
 
int is_twterm (void)
 
int is_gnuscreen (void)
 
int exe (char *path)
 
int exe_no_stdin (char *path)
 
char * get_clipboard_text (void)
 
void set_clipboard_text (char *data)
 
void set_window_title (const char *ctitle, int codepage)
 
char * get_window_title (int codepage)
 
int resize_window (int width, int height, int old_width, int old_height)
 
int start_thread (void(*fn)(void *, int), void *ptr, int l)
 
void want_draw (void)
 
void done_draw (void)
 
int get_output_handle (void)
 
int get_ctl_handle (void)
 
int get_input_handle (void)
 
void init_osdep (void)
 
void block_stdin (void)
 
void unblock_stdin (void)
 
void elinks_cfmakeraw (struct termios *t)
 
void * handle_mouse (int cons, void(*fn)(void *, char *, int), void *data)
 
void unhandle_mouse (void *data)
 
void suspend_mouse (void *data)
 
void resume_mouse (void *data)
 
static int get_common_env (void)
 
int can_resize_window (int environment)
 
int can_open_os_shell (int environment)
 
void set_highpri (void)
 
const char * get_system_str (int xwin)
 
char * tempname (const char *dir, const char *pfx, char *suff)
 

Variables

unsigned int resize_count = 0
 
static char * clipboard
 

Function Documentation

◆ block_stdin()

void block_stdin ( void )

◆ 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_common_env()

static int get_common_env ( void )
static

◆ 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_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_gnuscreen()

int is_gnuscreen ( void )

◆ is_twterm()

int is_twterm ( void )

◆ os_get_free_mem_in_mib()

long os_get_free_mem_in_mib ( void )

◆ resize_window()

int resize_window ( int width,
int height,
int old_width,
int old_height )

◆ resume_mouse()

void resume_mouse ( void * data)

◆ 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 )

◆ sigwinch()

static void sigwinch ( void * s)
static

◆ 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 )

◆ 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 )

Variable Documentation

◆ clipboard

char* clipboard
static

◆ resize_count

unsigned int resize_count = 0