NetSurf
Macros | Functions | Variables
osspec.c File Reference
#include <sys/types.h>
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <support.h>
#include <mint/osbind.h>
#include <mint/cookie.h>
#include "utils/log.h"
#include "atari/osspec.h"
#include "atari/gemtk/gemtk.h"
Include dependency graph for osspec.c:

Go to the source code of this file.

Macros

#define PATH_MAX   1024
 

Functions

void init_os_info (void)
 
int tos_getcookie (long tag, long *value)
 
char * gemdos_realpath (const char *path, char *rpath)
 

Variables

NS_ATARI_SYSINFO atari_sysinfo
 

Macro Definition Documentation

◆ PATH_MAX

#define PATH_MAX   1024

Definition at line 35 of file osspec.c.

Function Documentation

◆ gemdos_realpath()

char * gemdos_realpath ( const char *  path,
char *  rpath 
)

Definition at line 107 of file osspec.c.

References NSLOG, path(), PATH_MAX, and realpath().

Referenced by atari_find_resource(), and gui_download_window_create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_os_info()

void init_os_info ( void  )

Definition at line 40 of file osspec.c.

References NS_ATARI_SYSINFO::aes_max_win_title_len, atari_sysinfo, NS_ATARI_SYSINFO::gdos_FSMC, NS_ATARI_SYSINFO::gemdos_version, NS_ATARI_SYSINFO::large_sfont_pxh, NS_ATARI_SYSINFO::medium_sfont_pxh, NS_ATARI_SYSINFO::sfont_monospaced, NS_ATARI_SYSINFO::small_sfont_pxh, and tos_getcookie().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tos_getcookie()

int tos_getcookie ( long  tag,
long *  value 
)

Definition at line 76 of file osspec.c.

References atari_sysinfo, COOKIE::c, NS_ATARI_SYSINFO::gemdos_version, and COOKIE::v.

Referenced by init_os_info(), and read_vdi_sysinfo().

Here is the caller graph for this function:

Variable Documentation

◆ atari_sysinfo

NS_ATARI_SYSINFO atari_sysinfo

Definition at line 38 of file osspec.c.

Referenced by gui_window_set_title(), init_os_info(), tos_getcookie(), and window_create().