GStatBuf is used instead.
{
#ifdef G_OS_UNIX
static time_t resolv_conf_changed = (time_t)NULL;
{
#ifdef G_OS_UNIX
static time_t resolv_conf_changed = (time_t)NULL;
/* This makes the glibc re-read resolv.conf, if it changed
* since our startup. Maybe that should be #ifdef'ed, I don't
* know if it'd work on BSDs.
* Why doesn't the glibc do it by itself?
*/
/* This makes the glibc re-read resolv.conf, if it changed
* since our startup. Maybe that should be #ifdef'ed, I don't
* know if it'd work on BSDs.
* Why doesn't the glibc do it by itself?
*/
- if (stat("/etc/resolv.conf", &s) == 0) {
+ if (g_stat("/etc/resolv.conf", &s) == 0) {
if (s.st_mtime > resolv_conf_changed) {
resolv_conf_changed = s.st_mtime;
res_init();
if (s.st_mtime > resolv_conf_changed) {
resolv_conf_changed = s.st_mtime;
res_init();
unsigned int max = 512;
unsigned int flags = 0;
gnutls_datum_t tmp;
unsigned int max = 512;
unsigned int flags = 0;
gnutls_datum_t tmp;
int r;
*cert_list = NULL;
int r;
*cert_list = NULL;
{
gnutls_x509_privkey_t key = NULL;
gnutls_datum_t tmp;
{
gnutls_x509_privkey_t key = NULL;
gnutls_datum_t tmp;
int r;
if (fstat(fileno(fp), &s) < 0) {
perror("fstat");
int r;
if (fstat(fileno(fp), &s) < 0) {
perror("fstat");
{
gnutls_pkcs12_t p12 = NULL;
gnutls_datum_t tmp;
{
gnutls_pkcs12_t p12 = NULL;
gnutls_datum_t tmp;
int r;
if (fstat(fileno(fp), &s) < 0) {
log_error(LOG_PROTOCOL, _("Cannot stat P12 certificate file (%s)\n"),
int r;
if (fstat(fileno(fp), &s) < 0) {
log_error(LOG_PROTOCOL, _("Cannot stat P12 certificate file (%s)\n"),
compose_close(compose);
return TRUE;
} else {
compose_close(compose);
return TRUE;
} else {
gchar *path;
path = folder_item_fetch_msg(draft, msgnum);
gchar *path;
path = folder_item_fetch_msg(draft, msgnum);
gchar md5sum[33];
if (filename == NULL) {
gchar md5sum[33];
if (filename == NULL) {
gint stat_ok;
socket_dir = g_strdup_printf("%s%cclaws-mail-%d",
gint stat_ok;
socket_dir = g_strdup_printf("%s%cclaws-mail-%d",
guint memusage = 0;
gint tmp_len = 0, map_len = -1;
char *cache_data = NULL;
guint memusage = 0;
gint tmp_len = 0, map_len = -1;
char *cache_data = NULL;
cm_return_val_if_fail(cache_file != NULL, NULL);
cm_return_val_if_fail(item != NULL, NULL);
cm_return_val_if_fail(cache_file != NULL, NULL);
cm_return_val_if_fail(item != NULL, NULL);
guint32 num;
gint map_len = -1;
char *cache_data = NULL;
guint32 num;
gint map_len = -1;
char *cache_data = NULL;
gboolean error = FALSE;
swapping = TRUE;
gboolean error = FALSE;
swapping = TRUE;
guint32 num;
gint map_len = -1;
char *cache_data = NULL;
guint32 num;
gint map_len = -1;
char *cache_data = NULL;
gboolean error = FALSE;
swapping = TRUE;
gboolean error = FALSE;
swapping = TRUE;
char* buf = NULL;
ssize_t len;
int fd;
char* buf = NULL;
ssize_t len;
int fd;
struct file_info* file;
gchar* filename = NULL;
gchar* msg = NULL;
struct file_info* file;
gchar* filename = NULL;
gchar* msg = NULL;
static void cache_stat_item(gpointer filename, gpointer data)
{
static void cache_stat_item(gpointer filename, gpointer data)
{
const gchar *fname = (const gchar *) filename;
AvatarCacheStats *stats = (AvatarCacheStats *) data;
const gchar *fname = (const gchar *) filename;
AvatarCacheStats *stats = (AvatarCacheStats *) data;
for (cur = file_list; cur != NULL; cur = cur->next) {
int fd;
for (cur = file_list; cur != NULL; cur = cur->next) {
int fd;
char * data;
size_t len;
struct claws_mailmbox_msg_info * msg;
char * data;
size_t len;
struct claws_mailmbox_msg_info * msg;