G:/ScriptBasic/source/tools/shared.h File Reference

#include <sys/termios.h>

Go to the source code of this file.

Data Structures

class  delqueue_list
class  pinfo
class  pinfo_list
class  child_info
class  child_info_fork
class  reg_key
class  mount_item
class  mount_info
class  tty_min
class  tty
class  tty_list
class  shared_info
struct  cygwin_version_info

Defines

#define MAX_DELQUEUES_PENDING   100
#define PINFO_ZERO   ((((pinfo *) NULL)->progname + 1) - ((char *) NULL))
#define ISSTATE(p, f)   (!!((p)->process_state & f))
#define NOTSTATE(p, f)   (!((p)->process_state & f))
#define PSIZE   128
#define PROC_MAGIC_MASK   0xff00f000
#define PROC_MAGIC_GENERIC   0xaf00f000
#define PROC_MAGIC_VER_MASK   0x0ff0000
#define EXEC_MAGIC_SIZE   sizeof(child_info)
#define MAX_MOUNTS   30
#define INP_BUFFER_SIZE   256
#define OUT_BUFFER_SIZE   256
#define NTTYS   128
#define TTY_CONSOLE   0x40000000
#define tty_attached(p)   ((p)->ctty >= 0 && (p)->ctty != TTY_CONSOLE)
#define OUTPUT_DONE_EVENT   "cygtty%d.output.done"
#define IOCTL_REQUEST_EVENT   "cygtty%d.ioctl.request"
#define IOCTL_DONE_EVENT   "cygtty%d.ioctl.done"
#define RESTART_OUTPUT_EVENT   "cygtty%d.output.restart"
#define OUTPUT_MUTEX   "cygtty%d.output.mutex"
#define TTY_SLAVE_ALIVE   "cygtty%x.slave_alive"
#define TTY_MASTER_ALIVE   "cygtty%x.master_alive"
#define TTYISSETF(x)   __ISSETF (tc, x, TTY)
#define TTYSETF(x)   __SETF (tc, x, TTY)
#define TTYCLEARF(x)   __CLEARF (tc, x, TTY)
#define TTYCONDSETF(n, x)   __CONDSETF(n, tc, x, TTY)
#define MIN_CTRL_C_SLOP   50

Enumerations

enum  { __SIGFLUSH = -2, __SIGSTRACE = -1, __SIGCHILDSTOPPED = 0, __SIGOFFSET = 3 }
enum  {
  PROC_MAGIC = 0xaf08f000, PROC_FORK = PROC_MAGIC + 1, PROC_EXEC = PROC_MAGIC + 2, PROC_SPAWN = PROC_MAGIC + 3,
  PROC_FORK1 = PROC_MAGIC + 4
}
enum  { TTY_INITIALIZED = 1, TTY_RSTCONS = 2 }

Functions

void __api_fatal (const char *,...) __attribute__((noreturn))
int __small_sprintf (char *dst, const char *fmt,...)
int __small_vsprintf (char *dst, const char *fmt, va_list ap)
void __stdcall pinfo_init (PBYTE)
pinfo *__stdcall procinfo (int n)
void __stdcall init_child_info (DWORD, child_info *, int, HANDLE)
char *__stdcall get_registry_hive_path (const PSID psid, char *path)
void __stdcall load_registry_hive (PSID psid)
void __stdcall tty_init ()
void __stdcall tty_terminate ()
int __stdcall attach_tty (int)
void __stdcall create_tty_master (int)
int ttyslot (void)
SECURITY_ATTRIBUTES *__stdcall sec_user (PVOID sa_buf, PSID sid2=NULL, BOOL inherit=TRUE)
SECURITY_ATTRIBUTES *__stdcall sec_user_nih (PVOID sa_buf, PSID sid2=NULL)
int __stdcall set_console_state_for_spawn ()
void __stdcall shared_init (void)
void __stdcall shared_terminate (void)
char *__stdcall shared_name (const char *, int)
void *__stdcall open_shared (const char *name, HANDLE &shared_h, DWORD size, void *addr)
shared_infocygwin_getshared (void)

Variables

child_info_forkchild_proc_info
pinfomyself
HANDLE parent_alive
SECURITY_ATTRIBUTES sec_none
SECURITY_ATTRIBUTES sec_none_nih
SECURITY_ATTRIBUTES sec_all
SECURITY_ATTRIBUTES sec_all_nih
shared_infocygwin_shared
HANDLE cygwin_shared_h
HANDLE console_shared_h
cygwin_version_info cygwin_version
const char * cygwin_version_strings


Define Documentation

#define EXEC_MAGIC_SIZE   sizeof(child_info)
 

Definition at line 192 of file shared.h.

#define INP_BUFFER_SIZE   256
 

Definition at line 363 of file shared.h.

#define IOCTL_DONE_EVENT   "cygtty%d.ioctl.done"
 

Definition at line 373 of file shared.h.

#define IOCTL_REQUEST_EVENT   "cygtty%d.ioctl.request"
 

Definition at line 372 of file shared.h.

#define ISSTATE p,
 )     (!!((p)->process_state & f))
 

Definition at line 158 of file shared.h.

Referenced by fork().

#define MAX_DELQUEUES_PENDING   100
 

Definition at line 30 of file shared.h.

#define MAX_MOUNTS   30
 

Definition at line 295 of file shared.h.

#define MIN_CTRL_C_SLOP   50
 

Definition at line 393 of file shared.h.

#define NOTSTATE p,
 )     (!((p)->process_state & f))
 

Definition at line 159 of file shared.h.

#define NTTYS   128
 

Definition at line 365 of file shared.h.

#define OUT_BUFFER_SIZE   256
 

Definition at line 364 of file shared.h.

#define OUTPUT_DONE_EVENT   "cygtty%d.output.done"
 

Definition at line 371 of file shared.h.

#define OUTPUT_MUTEX   "cygtty%d.output.mutex"
 

Definition at line 375 of file shared.h.

Referenced by tty::open_output_mutex().

#define PINFO_ZERO   ((((pinfo *) NULL)->progname + 1) - ((char *) NULL))
 

Definition at line 142 of file shared.h.

#define PROC_MAGIC_GENERIC   0xaf00f000
 

Definition at line 189 of file shared.h.

#define PROC_MAGIC_MASK   0xff00f000
 

Definition at line 188 of file shared.h.

#define PROC_MAGIC_VER_MASK   0x0ff0000
 

Definition at line 190 of file shared.h.

#define PSIZE   128
 

Definition at line 161 of file shared.h.

Referenced by pinfo_list::size().

#define RESTART_OUTPUT_EVENT   "cygtty%d.output.restart"
 

Definition at line 374 of file shared.h.

#define tty_attached p   )     ((p)->ctty >= 0 && (p)->ctty != TTY_CONSOLE)
 

Definition at line 367 of file shared.h.

#define TTY_CONSOLE   0x40000000
 

Definition at line 366 of file shared.h.

#define TTY_MASTER_ALIVE   "cygtty%x.master_alive"
 

Definition at line 377 of file shared.h.

#define TTY_SLAVE_ALIVE   "cygtty%x.slave_alive"
 

Definition at line 376 of file shared.h.

#define TTYCLEARF  )     __CLEARF (tc, x, TTY)
 

Definition at line 389 of file shared.h.

#define TTYCONDSETF n,
 )     __CONDSETF(n, tc, x, TTY)
 

Definition at line 390 of file shared.h.

#define TTYISSETF  )     __ISSETF (tc, x, TTY)
 

Definition at line 387 of file shared.h.

#define TTYSETF  )     __SETF (tc, x, TTY)
 

Definition at line 388 of file shared.h.


Enumeration Type Documentation

anonymous enum
 

Enumerator:
__SIGFLUSH 
__SIGSTRACE 
__SIGCHILDSTOPPED 
__SIGOFFSET 

Definition at line 48 of file shared.h.

anonymous enum
 

Enumerator:
PROC_MAGIC 
PROC_FORK 
PROC_EXEC 
PROC_SPAWN 
PROC_FORK1 

Definition at line 178 of file shared.h.

anonymous enum
 

Enumerator:
TTY_INITIALIZED 
TTY_RSTCONS 

Definition at line 381 of file shared.h.


Function Documentation

void __api_fatal const char *  ,
  ...
 

int __small_sprintf char *  dst,
const char *  fmt,
  ...
 

Referenced by tty::open_output_mutex().

int __small_vsprintf char *  dst,
const char *  fmt,
va_list  ap
 

int __stdcall attach_tty int   ) 
 

void __stdcall create_tty_master int   ) 
 

class shared_info* cygwin_getshared void   ) 
 

char* __stdcall get_registry_hive_path const PSID  psid,
char *  path
 

void __stdcall init_child_info DWORD  ,
child_info ,
int  ,
HANDLE 
 

Referenced by fork().

void __stdcall load_registry_hive PSID  psid  ) 
 

void* __stdcall open_shared const char *  name,
HANDLE &  shared_h,
DWORD  size,
void *  addr
 

void __stdcall pinfo_init PBYTE   ) 
 

pinfo* __stdcall procinfo int  n  ) 
 

SECURITY_ATTRIBUTES* __stdcall sec_user PVOID  sa_buf,
PSID  sid2 = NULL,
BOOL  inherit = TRUE
 

Referenced by fork().

SECURITY_ATTRIBUTES* __stdcall sec_user_nih PVOID  sa_buf,
PSID  sid2 = NULL
 

int __stdcall set_console_state_for_spawn  ) 
 

void __stdcall shared_init void   ) 
 

char* __stdcall shared_name const char *  ,
int 
 

void __stdcall shared_terminate void   ) 
 

void __stdcall tty_init  ) 
 

void __stdcall tty_terminate  ) 
 

int ttyslot void   ) 
 


Variable Documentation

child_info_fork* child_proc_info
 

HANDLE console_shared_h
 

shared_info* cygwin_shared
 

Referenced by fork().

HANDLE cygwin_shared_h
 

cygwin_version_info cygwin_version
 

const char* cygwin_version_strings
 

pinfo* myself
 

Referenced by fork().

HANDLE parent_alive
 

SECURITY_ATTRIBUTES sec_all
 

Referenced by fork().

SECURITY_ATTRIBUTES sec_all_nih
 

SECURITY_ATTRIBUTES sec_none
 

SECURITY_ATTRIBUTES sec_none_nih
 

Referenced by fork().


Generated on Sun Mar 12 23:56:38 2006 for ScriptBasic by  doxygen 1.4.6-NO