5
* System abstraction utility routines
8
* Jon A. Cruz <jon@joncruz.org>
10
* Copyright (C) 2004-2005 Authors
12
* Released under GNU GPL, read the file 'COPYING' for more information
17
#include <sys/types.h>
18
#include <glib/gtypes.h>
19
#include <glib/gdir.h>
20
#include <glib/gfileutils.h>
21
#include <glibmm/spawn.h>
24
/*#####################
26
#####################*/
31
void dump_fopen_call( char const *utf8name, char const *id );
33
FILE *fopen_utf8name( char const *utf8name, char const *mode );
35
int mkdir_utf8name( char const *utf8name );
37
int file_open_tmp( std::string& name_used, const std::string& prefix );
39
bool file_test( char const *utf8name, GFileTest test );
41
GDir *dir_open(gchar const *utf8name, guint flags, GError **error);
43
gchar *dir_read_utf8name(GDir *dir);
45
gchar* locale_to_utf8_fallback( const gchar *opsysstring,
51
gchar* sanitizeString( gchar const * str );
53
void spawn_async_with_pipes (const std::string& working_directory,
54
const Glib::ArrayHandle<std::string>& argv,
55
Glib::SpawnFlags flags,
56
const sigc::slot<void>& child_setup,