portable.cpp File Reference

#include "build_configuration.h"
#include "convert_utf.h"
#include "function.h"
#include "mutex.h"

Include dependency graph for portable.cpp:

Go to the source code of this file.

Namespaces

namespace  portable

Functions

mutex BASIS_EXTERN & __uptime_synchronizer ()
mutex BASIS_EXTERN & __process_synchronizer ()
int_set BASIS_EXTERN & __our_kids ()
double portable::rolling_uptime ()
 like system_uptime(), but tracks rollovers to provide continuity.
u_int portable::system_uptime ()
 the length of time (in milliseconds) since this computer booted.
void portable::sleep_ms (u_int msec)
 a system independent name for a forced snooze measured in milliseconds.
istring portable::null_device ()
 returns the name of the system's NULL device.
bool portable::event_poll (MSG &message)
istring portable::get_cmdline_from_proc ()
 returns the command line that /proc has recorded for our process.
istring portable::query_for_process_info ()
istring portable::application_name ()
 returns the full name of the current application.
istring portable::module_name (const void *module_handle=NIL)
 returns the name of the module for the "module_handle" where supported.
u_int portable::system_error ()
 gets the most recent system error reported on this thread.
istring portable::system_error_text (u_int error_to_show)
 returns the OS's string form of the "error_to_show".
bool portable::is_address_valid (const void *address, int size_expected, bool writable)
version portable::get_OS_version ()
 returns the operating system's version information.
u_int portable::process_id ()
 returns the process id for this task, if that's relevant on the OS.
istring portable::current_directory ()
 returns the current directory as reported by the operating system.
istring portable::env_string (const istring &variable_name)
 looks up the "variable_name" in the current environment variables.
bool portable::set_environ (const istring &variable_name, const istring &value)
 adds or creates "variable_name" in the environment.
timeval portable::fill_timeval_ms (int milliseconds)
 returns a timeval system object that represents the "milliseconds".
char_star_array portable::break_line (istring &app, const istring &parameters)
 prepares an "app" to launch with the "parameters" (via exec).
void portable::exiting_child_signal_handler (int sig_num)
u_int portable::launch_process (const istring &app_name, const istring &command_line, int flag, u_int &child_id)
 starts an application using the "app_name" as the executable to run.
char * portable::itoa (int to_convert, char *buffer, int radix)
 turns the integer "to_convert" into a string stored in the "buffer".
void portable::show_wait_cursor ()
void portable::show_normal_cursor ()
istring portable::rc_string (UINT id, application_instance instance)
istring portable::rc_string (u_int id)
bool portable::has_win95_style_shell ()
known_operating_systems portable::determine_OS ()

Variables

const int MAXIMUM_COMMAND_LINE = 32 * KILOBYTE
const char * UPTIME_REPORT_FILE = "/tmp/uptime_report.log"
const char * UPTIME_REPORT_FILE = "c:/uptime_report.log"


Function Documentation

int_set BASIS_EXTERN& __our_kids (  ) 

Definition at line 429 of file static_memory_gremlin.cpp.

References SAFE_STATIC_IMPLEMENTATION.

Referenced by portable::exiting_child_signal_handler(), and portable::launch_process().

mutex BASIS_EXTERN& __process_synchronizer (  ) 

Definition at line 435 of file static_memory_gremlin.cpp.

References SAFE_STATIC_IMPLEMENTATION.

Referenced by portable::exiting_child_signal_handler(), and portable::launch_process().

mutex BASIS_EXTERN& __uptime_synchronizer (  ) 

Definition at line 432 of file static_memory_gremlin.cpp.

References SAFE_STATIC_IMPLEMENTATION.

Referenced by portable::rolling_uptime(), and portable::system_uptime().


Variable Documentation

const int MAXIMUM_COMMAND_LINE = 32 * KILOBYTE

Definition at line 106 of file portable.cpp.

Referenced by portable::query_for_process_info().

const char* UPTIME_REPORT_FILE = "c:/uptime_report.log"

Definition at line 113 of file portable.cpp.

const char* UPTIME_REPORT_FILE = "/tmp/uptime_report.log"

Definition at line 110 of file portable.cpp.

Referenced by portable::rolling_uptime(), and portable::system_uptime().


Generated on Sat Aug 30 04:32:32 2008 for HOOPLE Libraries by  doxygen 1.5.1