Main Page | File List | Globals

src/plibc.c File Reference

Core of PlibC. More...

#include "plibc_private.h"

Go to the source code of this file.

Functions

int _win_isSocketValid (int s)
void __plibc_panic_default (int err, char *szMsg)
 Default panic proc.
int plibc_init (char *pszOrg, char *pszApp)
 Initialize POSIX emulation and set up Windows environment.
void plibc_shutdown ()
 Clean up Windows environment.
void plibc_set_panic_proc (TPanicProc proc)
 Register a function which is called when plibc encounters an interal error.


Detailed Description

Core of PlibC.

Definition in file plibc.c.


Function Documentation

void __plibc_panic_default int  err,
char *  szMsg
 

Default panic proc.

For internal use only.

Definition at line 135 of file plibc.c.

Referenced by plibc_init().

int _win_isSocketValid int  s  ) 
 

Check if socket is valid

Returns:
1 if valid, 0 otherwise

Definition at line 125 of file plibc.c.

Referenced by _win_read(), and _win_write().

int plibc_init char *  pszOrg,
char *  pszApp
 

Initialize POSIX emulation and set up Windows environment.

Parameters:
pszOrg Organisation ("GNU" for GNU projects)
pszApp Application title
Returns:
Error code from winerror.h, ERROR_SUCCESS on success
Note:
Example: plibc_init("My Company", "My Application");

Definition at line 150 of file plibc.c.

References __plibc_panic_default(), _plibc_DetermineHomeDir(), and _plibc_DetermineRootDir().

void plibc_set_panic_proc TPanicProc  proc  ) 
 

Register a function which is called when plibc encounters an interal error.

Parameters:
proc void my_proc(int, char *)

Definition at line 285 of file plibc.c.


Generated on Sun Sep 4 11:16:48 2005 for PlibC by  doxygen 1.4.2