ROOT
6.05/03
Reference Guide
|
Go to the source code of this file.
Classes | |
struct | _GDebugKey |
struct | _GTrashStack |
Macros | |
#define | G_DIR_SEPARATOR '/' |
#define | G_DIR_SEPARATOR_S "/" |
#define | G_SEARCHPATH_SEPARATOR ':' |
#define | G_SEARCHPATH_SEPARATOR_S ":" |
#define | G_VA_COPY(ap1, ap2) ((ap1) = (ap2)) |
#define | G_CAN_INLINE 1 |
#define | inline /* don't inline, then */ |
#define | G_INLINE_FUNC extern |
#define | g_dirname g_path_get_dirname |
#define | ATEXIT(proc) g_ATEXIT(proc) |
#define | GLIB_CHECK_VERSION(major, minor, micro) |
Typedefs | |
typedef struct _GDebugKey | GDebugKey |
typedef void(* | GVoidFunc )(void) |
typedef struct _GTrashStack | GTrashStack |
Variables | |
GLIB_VAR const guint | glib_major_version |
GLIB_VAR const guint | glib_minor_version |
GLIB_VAR const guint | glib_micro_version |
GLIB_VAR const guint | glib_interface_age |
GLIB_VAR const guint | glib_binary_age |
#define ATEXIT | ( | proc | ) | g_ATEXIT(proc) |
Definition at line 186 of file gutils.h.
Referenced by g_atexit().
#define G_DIR_SEPARATOR '/' |
Definition at line 49 of file gutils.h.
Referenced by g_basename(), g_file_open_tmp(), g_find_program_in_path(), g_get_any_init(), g_get_current_dir(), g_path_get_basename(), g_path_get_dirname(), g_path_is_absolute(), g_path_skip_root(), g_win32_get_package_installation_subdirectory(), and get_package_directory_from_module().
#define G_DIR_SEPARATOR_S "/" |
Definition at line 50 of file gutils.h.
Referenced by g_build_filename(), g_file_open_tmp(), g_path_get_basename(), and g_win32_get_package_installation_subdirectory().
#define g_dirname g_path_get_dirname |
#define G_SEARCHPATH_SEPARATOR ':' |
Definition at line 51 of file gutils.h.
Referenced by g_find_program_in_path().
#define G_VA_COPY | ( | ap1, | |
ap2 | |||
) | ((ap1) = (ap2)) |
Definition at line 65 of file gutils.h.
Referenced by g_logv(), and g_strdup_vprintf().
#define GLIB_CHECK_VERSION | ( | major, | |
minor, | |||
micro | |||
) |
typedef struct _GDebugKey GDebugKey |
typedef struct _GTrashStack GTrashStack |
Definition at line 118 of file gutils.c.
Referenced by gdk_init_check().
G_CONST_RETURN gchar* g_basename | ( | const gchar * | file_name | ) |
G_INLINE_FUNC gint g_bit_nth_lsf | ( | gulong | mask, |
gint | nth_bit | ||
) |
G_INLINE_FUNC gint g_bit_nth_msf | ( | gulong | mask, |
gint | nth_bit | ||
) |
Referenced by g_log_default_handler(), and g_logv().
G_INLINE_FUNC guint g_bit_storage | ( | gulong | number | ) |
Referenced by upper_power2().
g_find_program_in_path: : a program name
Locates the first executable named in the user's path, in the same way that execvp() would locate it. Returns an allocated string with the absolute path name, or NULL if the program is not found in the path. If is already an absolute path, returns a copy of if exists and is executable, and NULL otherwise.
On Windows, if does not have a file type suffix, tries to append the suffixes in the PATHEXT environment variable (if that doesn't exists, the suffixes .com, .exe, and .bat) in turn, and then look for the resulting file name in the same way as CreateProcess() would. This means first in the directory where the program was loaded from, then in the current directory, then in the Windows 32-bit system directory, then in the Windows directory, and finally in the directories in the PATH environment variable. If the program is found, the return value contains the full name including the type suffix.
Return value: absolute path, or NULL
G_CONST_RETURN gchar* g_get_home_dir | ( | void | ) |
Definition at line 1009 of file gutils.c.
Referenced by g_log_write_prefix(), g_on_error_query(), gdk_init_check(), and gdk_window_new().
G_CONST_RETURN gchar* g_get_real_name | ( | void | ) |
G_CONST_RETURN gchar* g_get_tmp_dir | ( | void | ) |
Definition at line 996 of file gutils.c.
Referenced by g_file_open_tmp().
G_CONST_RETURN gchar* g_get_user_name | ( | void | ) |
G_CONST_RETURN gchar* g_getenv | ( | const gchar * | variable | ) |
Definition at line 671 of file gutils.c.
Referenced by g_execute(), g_find_program_in_path(), g_get_any_init(), and g_log_write_prefix().
Definition at line 427 of file gutils.c.
Referenced by g_log_write_prefix(), gdk_arg_debug_cb(), gdk_arg_no_debug_cb(), and gdk_init_check().
Definition at line 488 of file gutils.c.
Referenced by g_win32_readdir().
Definition at line 602 of file gutils.c.
Referenced by g_find_program_in_path().
Definition at line 534 of file gutils.c.
Referenced by g_filename_from_uri(), g_filename_to_uri(), and g_find_program_in_path().
G_CONST_RETURN gchar* g_path_skip_root | ( | const gchar * | file_name | ) |
Definition at line 1021 of file gutils.c.
Referenced by gdk_arg_name_cb(), and gdk_init_check().
G_INLINE_FUNC guint g_trash_stack_height | ( | GTrashStack ** | stack_p | ) |
G_INLINE_FUNC gpointer g_trash_stack_peek | ( | GTrashStack ** | stack_p | ) |
G_INLINE_FUNC gpointer g_trash_stack_pop | ( | GTrashStack ** | stack_p | ) |
Referenced by g_queue_new().
G_INLINE_FUNC void g_trash_stack_push | ( | GTrashStack ** | stack_p, |
gpointer | data_p | ||
) |
Referenced by g_queue_free().