id
int64
1
722k
file_path
stringlengths
8
177
funcs
stringlengths
1
35.8M
101
./libzt/src/zt_uuid.c
#ifdef HAVE_CONFIG_H # include "zt_config.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STRING_H # include <string.h> #endif /* HAVE_STRING_H */ #include <stdio.h> #include <math.h> #include "zt.h" #include "zt_internal.h" zt_uuid_t NAMESPACE_DNS = { { { 0x6b, 0xa7, 0xb8, 0x10, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x0...
102
./libzt/src/zt_gc.c
#ifdef HAVE_CONFIG_H # include "zt_config.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STRING_H # include <string.h> #endif /* HAVE_STRING_H */ #include <stdio.h> #define ZT_WITH_GC #include "zt.h" #include "zt_internal.h" /* * Implements a form of Baker's treadmill with 'write protection' * */ static int one_is_w...
103
./libzt/src/zt_ptr_array.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "zt.h" #include "zt_stdint.h" #include "zt_internal.h" zt_ptr_array * zt_ptr_array_init(void * args, zt_ptr_array_free_cb free_cb) { zt_ptr_array * array; if (!(array = zt_calloc(zt_ptr_array, 1))) { return NULL; } array->si...
104
./libzt/src/zt_base.c
#include "zt_base.h" typedef uint64_t _bits_t; static zt_base_definition_t _base64_rfc = { "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "0123456789+/", /* valid: alphanum, '+', '/'; allows CR,LF,'=',SP,TAB * -1 (invalid) -2 (ignored) */ { -1, -1, -1, -1, -1, -1, -1, -1, -1, -...
105
./libzt/src/zt_daemon.c
/*! * Filename: zt_daemon.c * Description: deamon tools * * Author: Jason L. Shiffer <jshiffer@zerotao.org> * Copyright: * Copyright (C) 2000-2010, Jason L. Shiffer. * See file COPYING for details * * Notes: * */ #ifdef HAVE_CONFIG_H #include <zt_config.h> #endif #include <sys/types.h> #inclu...
106
./libzt/src/zt_bstream.c
#include "zt.h" static size_t _array_put(zt_array_t array, char *s, size_t offt, size_t len, int flip) { if (flip) { s += len - 1; while (len--) { zt_array_put(array, offt++, s--); } } else { while (len--) { zt_array_put(array, offt++, s++); } ...
107
./libzt/src/zt_set.c
#include <errno.h> #include "zt_set.h" #include "zt_assert.h" zt_set * zt_set_init(int (*match)(const void *key1, size_t key1_size, const void *key2, size_t key2_size, void *cdata), void (*destroy)(void *data), void *cdata) { zt_set * set; set = zt_malloc(zt_...
108
./libzt/src/zt_int.c
#include "zt_int.h"
109
./libzt/src/zt_llist.c
/* * Copyright (C) 2007 Jason L. Shiffer <jshiffer@zerotao.org>. All Rights Reserved. * See file COPYING for details. */ #include <zt_llist.h>
110
./libzt/src/zt_win32.c
#include <stdlib.h> #include <stdarg.h> #include <stdio.h> #include <string.h> #define WIN32_LEAN_AND_MEAN #define VC_EXTRALEAN #include <Windows.h> #include "zt_win32.h" void srandom(unsigned int _Seed) { srand(_Seed); } long int random(void) { return rand(); } int snprintf(char * s, size_t n, const ch...
111
./libzt/src/zt_assert.c
/* * zt_assert.c ZeroTao Assertions * * Copyright (C) 2000-2006, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved. * See file COPYING for details. * * $Id: assert.c,v 1.1 2002/11/10 23:36:42 jshiffer Exp $ * */ /* * Description: */ #ifdef HAVE_CONFIG_H # include <zt_config.h> #endif #in...
112
./libzt/src/zt_buf.c
#include <stdio.h> #ifdef HAVE_CONFIG_H # include "zt_config.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STRING_H # include <string.h> #endif /* HAVE_STRING_H */ #include "zt.h" struct zt_buf { size_t len; size_t max; void * buf; void * top; }; zt_buf_t * zt_buf_new(void) { zt_buf_t * b; if ...
113
./libzt/src/zt_array.c
#include <string.h> #include "zt.h" #include "zt_internal.h" static void arrayrep_init(zt_array_t array, size_t len, size_t size, void *ary) { zt_assert(array); zt_assert((ary && len > 0) || (len == 0 && ary == NULL)); zt_assert(size > 0); array->length = len; array->size = size; ...
114
./libzt/src/zt_atexit.c
/*! * Filename: zt_atexit.c * Description: Hook to extend the system atexit * * Author: Jason L. Shiffer <jshiffer@zerotao.org> * Copyright: * Copyright (C) 2010, Jason L. Shiffer. * See file COPYING for details * * Notes: * */ #ifdef HAVE_CONFIG_H # include "zt_config.h" #endif #ifdef HAVE_STDLIB...
115
./libzt/src/zt_progname.c
/* * zt_progname.c ZeroTao progname functions * * Copyright (C) 2000-2006, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved. * See file COPYING for details. * * $Id: progname.c,v 1.3 2003/06/09 16:55:09 jshiffer Exp $ * */ /* * Description: */ #ifdef HAVE_CONFIG_H #include <zt_config.h>...
116
./libzt/src/zt_ipv4_tbl.c
#include "zt_internal.h" #include "zt_mem.h" #include "zt_ipv4_tbl.h" #define DEFAULT_ELT_NUM 32 static uint32_t netmask_tbl[] = { 0x00000000, 0x80000000, 0xC0000000, 0xE0000000, 0xF0000000, 0xF8000000, 0xFC000000, 0xFE000000, 0xFF000000, 0xFF800000, 0xFFC00000, 0xFFE00000, 0xFFF00000, 0xFFF80000, 0xFFFC0...
117
./libzt/src/zt_path.c
#ifdef HAVE_STRING_H #include <string.h> #endif /* HAVE_STRING_H */ #ifdef HAVE_ERRNO_H #include <errno.h> #endif /* HAVE_ERRNO_H */ #include "zt.h" /* Create a directory, allowing for creation of intermediate directories as * needed. Will leave directory structure partially created if intermediate * directory c...
118
./libzt/src/zt_malloc.c
/* * zt_malloc.c wrappers for malloc et. el. * * Copyright (C) 2000-2005, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved. * See file COPYING for details. * * $Id: malloc.c,v 1.4 2003/06/09 16:55:09 jshiffer Exp $ * */ #include <string.h> #include "zt_internal.h" #include "zt_assert.h" #...
119
./libzt/src/zt_log.c
/*! * Filename: zt_log.c * Description: generic logging interface * * Author: Jason L. Shiffer <jshiffer@zerotao.org> * Copyright: * Copyright (C) 2000-2010, Jason L. Shiffer. * See file COPYING for details * * Notes: * */ #ifdef HAVE_CONFIG_H #include "zt_config.h" #endif #ifdef HAVE_STRING_H...
120
./libzt/src/zt_hash.c
/*! * Filename: zt_hash.h * Description: this is an implementation of the FNV hashing algorithm as described at * http://www.isthe.com/chongo/tech/comp/fnv/index.html * * Author: Jason L. Shiffer <jshiffer@zerotao.org> * Copyright: * as this is a measly import of the work done at isthe.com this file and ...
121
./libzt/src/zt_sha1.c
/* * Copyright (C) 2008, Jason L. Shiffer <jshiffer@zerotao.org>. * All Rights Reserved. * See file COPYING for details. */ #ifdef HAVE_CONFIG_H # include "zt_config.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STRING_H # include <string.h> #endif /* HAVE_STRING_H */ /* SHA-1 origional by Steve Reid <steve@edmweb.c...
122
./libzt/src/zt_tree.c
/* * Copyright 2005 Jason L. Shiffer <jshiffer@zerotao.org> * * Altered from the BSD sys/tree.h for the most part only the * red-black algorithm remains. It now uses an embedded type, similar * if not the same as the embedded list api. * */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights...
123
./libzt/src/zt_ez_mempool.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "zt.h" #include "zt_stdint.h" #include "zt_internal.h" static void chunk_append(zt_ez_mempool_chunk **head, zt_ez_mempool_chunk *chunk) { if (*head == NULL) { *head = chunk; return; } chunk->next = *head; ...
124
./libzt/src/zt_cfg.c
/*! * Filename: zt_cfg.h * Description: config file abstraction * * Author: Jason L. Shiffer <jshiffer@zerotao.org> * Copyright: * Copyright (C) 2000-2010, Jason L. Shiffer. * See file COPYING for details * * Notes: * */ #ifdef HAVE_CONFIG_H #include <zt_config.h> #endif #include "zt.h" #inclu...
125
./libzt/src/zt_time.c
/*! * Filename: zt_time.c * Description: time manipulation functions * * Author: Jason L. Shiffer <jshiffer@zerotao.org> * Copyright: * Copyright (C) 2000-2010, Jason L. Shiffer. * See file COPYING for details * * Notes: * */ #ifndef WIN32 #include <sys/resource.h> #endif #include "zt_time.h" #in...
126
./libzt/src/zt_threads.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #ifdef HAVE_ERRNO_H #include <errno.h> #endif #include <sys/queue.h> #include <unistd.h> #include <zt.h> #include <zt_threads.h> static void * _zt_threadpool_iput_loop(void *args); static void * _zt_threadpool_oput_loop(void *args); str...
127
./libzt/src/zt_mem.c
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "zt.h" #include "zt_internal.h" #include "zt_assert.h" #include "zt_list.h" #include "zt_mem.h" #include "zt_atexit.h" /* * FIXME: threads will need these wrapped */ static struct { void *(* alloc)(size_t); void (* dealloc)(void *); vo...
128
./libzt/src/zt_unit.c
#include <string.h> #define ZT_WITH_UNIT #include "zt.h" #include "zt_internal.h" #define yaml_dict(name, offt) \ printf(BLANK "%s:\n", INDENT_TO(offt, 2, 0), name) #define yaml_list_elt(value, fmt, offt) \ printf(BLANK "- " fmt "\n", INDENT_TO(offt, 2, 0), value) #define yaml_value(name, offt_1, value_fmt,...
129
./libzt/src/zt_table.c
/* * zt_table.c ZeroTao Tablees * * Copyright (C) 2002-2005, Jason L. Shiffer <jshiffer@zerotao.org>. All Rights Reserved. * See file COPYING for details. * * $Id$ */ #include <errno.h> #include "zt.h" #include "zt_internal.h" #define DEFAULT_BUCKETS 512 static uint8_t nbits(size_t val) { uint8_t n...
130
./libzt/src/zt_format.c
#include <limits.h> #include <ctype.h> #include <float.h> #include <string.h> #include "zt.h" #include "zt_internal.h" struct zt_fmt_obuf { char * buf; char * bp; size_t size; }; #define pad(n, c, tlen) \ do { \ ssize_t nn = (n); \ w...
131
./libzt/src/zt_opts.c
/* * opts.c option parsing routines * * Copyright (C) 2000-2011, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved. * See file COPYING for details. * * $Id: opts.c,v 1.7 2003/11/26 17:37:16 jshiffer Exp $ * */ #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <errno.h> #if...
132
./libzt/src/zt_cfg/cfg_ini.c
/* * Interface to ini style config files * * Copyright (C) 2000-2002, 2004, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved. * See file COPYING for details. * * $Id: ini.c,v 1.2 2003/06/09 13:42:12 jshiffer Exp $ * */ #include "cfg_private.h" #include <stdio.h> #include <string.h> #include "../...
133
./libzt/src/zt_cfg/cfg_private.c
/* private interface to cfg * * Copyright (C) 2000-2004, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved. * See file COPYING for details. * * $Id: cfg_private.c,v 1.5 2003/11/26 17:47:29 jshiffer Exp $ * */ #ifdef HAVE_CONFIG_H #include <zt_config.h> #endif #ifdef HAVE_STRING_H #include <string.h...
134
./libzt/src/replace/basename.c
/* basename.c Replacement version of basename * Copyright (C) 2000, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved. * See file COPYING for details. * * $Id: basename.c,v 1.1 2002/11/10 23:36:59 jshiffer Exp $ * * $Log: basename.c,v $ * Revision 1.1 2002/11/10 23:36:59 jshiffer * Initial ...
135
./libzt/src/replace/asprintf.c
/* * Copyright (c) 2004 Darren Tucker. * * Based originally on asprintf.c from OpenBSD: * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright n...
136
./libzt/src/replace/vsyslog.c
#ifdef HAVE_CONFIG_H # include <zt_config.h> #endif #include <zt_internal.h> #include <zt_assert.h> #ifdef HAVE_SYSLOG_H # include <syslog.h> #endif #ifdef HAVE_STRING_H # include <string.h> #elif HAVE_STRINGS_H # include <strings.h> #endif #include <stdarg.h> #include <errno.h> #include <limits.h> #ifndef HAS...
137
./libzt/src/zt_threads/zt_threads_pthreads.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <errno.h> #include <pthread.h> #include <sys/time.h> #include <zt.h> #include <zt_threads.h> zt_threads_mutex * zt_threads_pthreads_lock_alloc(int locktype UNUSED) { pthread_mutex_t *lock; if ((lock = calloc(sizeof(pthrea...
138
./libzt/src/zt_log/log_file.c
/* * file.c ZeroTao logging to a file * * Copyright (C) 2000, 2002, 2003, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved. * See file COPYING for details. * * $Id: file.c,v 1.4 2003/11/26 05:05:30 jshiffer Exp $ * */ /* * Description: */ #include <stdio.h> #include <errno.h> #include <s...
139
./libzt/src/zt_log/log_private.c
/* * private.c ZeroTao private definitions for logging * * Copyright (C) 2000-2004, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved. * See file COPYING for details. * * $Id: zt_log_private.c,v 1.4 2003/11/26 17:47:29 jshiffer Exp $ * */ /* * Description: */ #ifdef HAVE_CONFIG_H #include ...
140
./libzt/src/zt_log/log_stderr.c
/* * stderr.c ZeroTao logging to stderr * * Copyright (C) 2000-2004, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved. * See file COPYING for details. * * $Id: stderr.c,v 1.3 2003/06/10 04:00:48 jshiffer Exp $ * */ /* * Description: */ #include <stdio.h> #include "../zt_internal.h" #inc...
141
./libzt/src/zt_log/log_syslog.c
/* * syslog.c ZeroTao logging to syslog * * Copyright (C) 2000-2004, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved. * See file COPYING for details. * * $Id: syslog.c,v 1.3 2003/06/10 04:15:55 jshiffer Exp $ * */ /* * Description: */ #ifdef HAVE_SYSLOG_H #include <syslog.h> #endif #in...
142
./spacefm/src/main-window.c
/* * * Copyright: See COPYING file that comes with this distribution * */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <libintl.h> #include "pcmanfm.h" #include "private.h" #include <gtk/gtk.h> #include <glib.h> #include <glib/gstdio.h> #include <glib-object.h> #include <gdk/gdk.h> #include <gdk/gdkke...
143
./spacefm/src/cust-dialog.c
/* * cust-dialog.c * */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <gdk/gdk.h> #include <gdk/gdkkeysyms.h> #include <gdk-pixbuf/gdk-pixbuf.h> #include <gtk/gtk.h> #include <glib/gi18n.h> #include <glib-object.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #inclu...
144
./spacefm/src/settings.c
/* * * Copyright: See COPYING file that comes with this distribution * */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #ifndef _GNU_SOURCE #define _GNU_SOURCE // euidaccess #endif #include "settings.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #includ...
145
./spacefm/src/main.c
/* * * Copyright: See COPYING file that comes with this distribution * */ #ifdef HAVE_CONFIG_H # include <config.h> #endif /* turn on to debug GDK_THREADS_ENTER/GDK_THREADS_LEAVE related deadlocks */ #undef _DEBUG_THREAD #include "private.h" #include <gtk/gtk.h> #include <glib.h> #include <stdlib.h> #include <str...
146
./spacefm/src/go-dialog.c
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <string.h> #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> #include "go-dialog.h" #include "main-window.h" #include "ptk-file-browser.h" #include "ptk-path-entry.h" #include "ptk-utils.h" static const char * chosen_path; static gboolean show_g...
147
./spacefm/src/edit-bookmarks.c
/* * * NOTE: This file is retained for reference purposes only - it is no longer * included in the build system. * */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include "pcmanfm.h" #include "edit-bookmarks.h" #include "ptk-bookmarks.h" #include "private.h" #include <gtk/gtk.h> #include <glib.h>...
148
./spacefm/src/xml-purge.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #define IS_BLANK(ch) strchr(" \t\n\r", ch) static void purge_file( const char* file ) { struct stat statbuf; int fd; char* buf, *pbuf; int in_tag = 0, in_quote = 0; FILE...
149
./spacefm/src/pref-dialog.c
/* * C Implementation: pref_dialog * * Description: * * * * Copyright: See COPYING file that comes with this distribution * */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include "pcmanfm.h" #include <string.h> #include <gtk/gtk.h> #include <stdlib.h> #include <string.h> #include "glib-utils.h" #include <g...
150
./spacefm/src/find-files.c
/* * find-files.c * * Copyright 2008 PCMan <pcman.tw@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at ...
151
./spacefm/src/compat/glib-utils.c
/* * C++ Interface: glib-mem * * Description: Compatibility macros for older versions of glib * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * */ #include "glib-utils.h" /* older versions of glib don't provde these API */ #if ! ...
152
./spacefm/src/desktop/desktop.c
/* * main.c - desktop manager of pcmanfm * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later vers...
153
./spacefm/src/desktop/working-area.c
/* * Guifications - The end all, be all, toaster popup plugin * Copyright (C) 2003-2004 Gary Kramlich * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, ...
154
./spacefm/src/desktop/desktop-window.c
/* * desktop-window.c * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Thi...
155
./spacefm/src/libmd5-rfc/md5.c
/* Copyright (C) 1999, 2000, 2002 Aladdin Enterprises. All rights reserved. This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software fo...
156
./spacefm/src/vfs/vfs-mime-type.c
/* * C Implementation: vfs-mime_type-type * * Description: * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * */ #include "vfs-mime-type.h" #include "mime-action.h" #include "vfs-file-monitor.h" #include <sys/types.h> #include <s...
157
./spacefm/src/vfs/vfs-execute.c
/* * C Implementation: vfs-execute * * Description: * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * */ #include "vfs-execute.h" #ifdef HAVE_SN /* FIXME: Startup notification may cause problems */ #define SN_API_NOT_YET_FROZEN ...
158
./spacefm/src/vfs/vfs-volume-hal.c
/* * vfs-volume-hal.c - Support voulme management with HAL * * Copyright (C) 2004-2005 Red Hat, Inc, David Zeuthen <davidz@redhat.com> * Copyright (c) 2005-2007 Benedikt Meurer <benny@xfce.org> * Copyright 2008 PCMan <pcman.tw@gmail.com> * * This file contains source code from other proj...
159
./spacefm/src/vfs/vfs-app-desktop.c
/* * C Implementation: vfs-app-desktop * * Description: * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * */ #include "vfs-app-desktop.h" #include <glib/gi18n.h> #include "glib-mem.h" #include <string.h> #include "vfs-execute.h...
160
./spacefm/src/vfs/vfs-dir.c
/* * C Implementation: vfs-dir * * Description: Object used to present a directory * * * * Copyright: See COPYING file that comes with this distribution * */ #ifndef _GNU_SOURCE #define _GNU_SOURCE // euidaccess #endif #include "vfs-dir.h" #include "vfs-thumbnail-loader.h" #include "glib-mem.h" #include <glib/gi18...
161
./spacefm/src/vfs/vfs-volume-hal-options.c
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include "vfs-volume-hal-options.h" #include <string.h> #include <unistd.h> /* for getuid() */ #include <sys/types.h> #include <locale.h> /* for setlocale() */ #define CONFIG_FILE PACKAGE_DATA_DIR "/mount.rules" gboolean vfs_volume_hal_get_options( const char* fs...
162
./spacefm/src/vfs/vfs-file-info.c
/* * C Implementation: vfs-file-info * * Description: File information * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * */ #include "vfs-file-info.h" #include <glib.h> #include "glib-mem.h" #include <glib/gi18n.h> #include <grp....
163
./spacefm/src/vfs/vfs-file-task.c
/* * C Implementation: vfs-file-task * * Description: modified and redesigned for SpaceFM * * * * Copyright: See COPYING file that comes with this distribution * */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "vfs-file-task.h" #include <unistd.h> #include <fcntl.h> #include <utime.h> #include <sys/type...
164
./spacefm/src/vfs/vfs-async-task.c
/* * vfs-async-task.c * * Copyright 2008 PCMan <pcman.tw@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * ...
165
./spacefm/src/vfs/vfs-utils.c
/* * vfs-utils.c * * Copyright 2008 PCMan <pcman.tw@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at y...
166
./spacefm/src/vfs/vfs-thumbnail-loader.c
/* * vfs-thumbnail-loader.c * * Copyright 2008 PCMan <pcman.tw@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or *...
167
./spacefm/src/vfs/vfs-file-monitor.c
/* * C Implementation: vfs-monitor * * Description: File alteration monitor * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * * Most of the inotify parts are taken from "menu-monitor-inotify.c" of * gnome-menus, which is licensed ...
168
./spacefm/src/vfs/vfs-volume-nohal.c
/* * C Implementation: vfs-volume * * udev & mount monitor code by IgnorantGuru * device info code uses code excerpts from freedesktop's udisks v1.0.4 * * Copyright: See COPYING file that comes with this distribution * */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "vfs-volume.h" #include "glib-mem.h"...
169
./spacefm/src/exo/exo-tree-view.c
/* $Id: exo-tree-view.c 22991 2006-09-02 11:41:18Z benny $ */ /*- * Copyright (c) 2004-2006 Benedikt Meurer <benny@xfce.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either...
170
./spacefm/src/exo/exo-string.c
/* $Id: exo-string.c 47 2006-01-30 02:32:10Z pcmanx $ */ /*- * Copyright (c) 2004 os-cillation e.K. * * Written by Benedikt Meurer <benny@xfce.org>. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free S...
171
./spacefm/src/exo/exo-private.c
/* $Id: exo-private.c 22884 2006-08-26 12:40:43Z benny $ */ /*- * Copyright (c) 2004-2006 os-cillation e.K. * * Written by Benedikt Meurer <benny@xfce.org>. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by th...
172
./spacefm/src/exo/exo-icon-view.c
/* $Id: exo-icon-view.c 24207 2006-12-28 19:16:50Z benny $ */ /*- * Copyright (c) 2004-2006 os-cillation e.K. * Copyright (c) 2002,2004 Anders Carlsson <andersca@gnu.org> * * Written by Benedikt Meurer <benny@xfce.org>. * * This library is free software; you can redistribute it and/or * modify it under the ter...
173
./spacefm/src/exo/exo-marshal.c
#include <glib-object.h> #ifdef G_ENABLE_DEBUG #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) #define g_marshal_value_peek_char(v) g_value_get_char (v) #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) #define g_marshal_value_peek_int(v) g_value_get_int (v) #define g_marshal_v...
174
./spacefm/src/ptk/ptk-utils.c
/* * C Implementation: ptkutils * * Description: * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * */ #include "ptk-utils.h" #include <glib.h> #include <glib/gi18n.h> #include "working-area.h" #include "gtk2-compat.h" GtkWidget...
175
./spacefm/src/ptk/ptk-file-misc.c
/* * C Implementation: ptk-file-misc * * Description: Miscellaneous GUI-realated functions for files * * * * Copyright: See COPYING file that comes with this distribution * */ #include "ptk-file-misc.h" #include <glib.h> #include "glib-mem.h" #include <string.h> #include <fcntl.h> #include <sys/types.h> #include <s...
176
./spacefm/src/ptk/ptk-text-renderer.c
/* ptk-text-renderer.c * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (...
177
./spacefm/src/ptk/ptk-file-properties.c
/* * C Implementation: file_properties * * Description: * * * Copyright: See COPYING file that comes with this distribution * */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <libintl.h> #include "private.h" #include <gtk/gtk.h> #include "glib-mem.h" #include "ptk-file-properties.h" #include "mime-t...
178
./spacefm/src/ptk/ptk-file-task.c
/* * C Implementation: ptk-file-task * * Description: * * * Copyright: See COPYING file that comes with this distribution * */ #include <glib.h> #include <glib/gi18n.h> #include "glib-mem.h" #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include <gdk/gdkkeysyms.h> #include "ptk-file-task.h" #inclu...
179
./spacefm/src/ptk/ptk-console-output.c
/* * * NOTE: This file is retained for reference purposes only - it is no longer * included in the build system. * */ #include <gtk/gtk.h> #include <glib/gi18n.h> #include "glib-mem.h" #include <unistd.h> #include <fcntl.h> #include <sys/wait.h> #include <string.h> #include <signal.h> /* for kill(2) */ ...
180
./spacefm/src/ptk/ptk-dir-tree.c
/* * C Implementation: ptk-dir-tree * * Description: * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * */ #include "ptk-dir-tree.h" #include <gdk/gdk.h> #include <glib/gi18n.h> #include <string.h> #include "vfs-file-info.h" #in...
181
./spacefm/src/ptk/ptk-bookmarks.c
/* * C Implementation: ptkbookmarks * * Description: * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * */ #include "ptk-bookmarks.h" #include "vfs-file-monitor.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #inclu...
182
./spacefm/src/ptk/ptk-path-entry.c
/* * C Implementation: ptk-path-entry * * Description: A custom entry widget with auto-completion * * * Copyright: See COPYING file that comes with this distribution * */ #include "ptk-path-entry.h" #include <gdk/gdkkeysyms.h> #include "vfs-file-info.h" /* for vfs_file_resolve_path */ #include <string.h> #include "s...
183
./spacefm/src/ptk/ptk-file-archiver.c
/* * C Implementation: ptk-file-archiver * * Description: * * * Copyright: See COPYING file that comes with this distribution * */ #include <glib/gi18n.h> #include <string.h> #include "ptk-file-archiver.h" #include "ptk-console-output.h" #include "ptk-file-task.h" #include "vfs-file-info.h" #include "vfs-mime-type....
184
./spacefm/src/ptk/ptk-clipboard.c
/* * C Implementation: ptk-clipboard * * Description: * * * Copyright: See COPYING file that comes with this distribution * */ #include "ptk-clipboard.h" #include <string.h> #include "vfs-file-info.h" #include "ptk-file-task.h" #include "vfs-file-task.h" #include "ptk-utils.h" //MOD static GdkDragAction clipboar...
185
./spacefm/src/ptk/ptk-location-view.c
/* * C Implementation: PtkLocationView * * Description: * * * Copyright: See COPYING file that comes with this distribution * */ //MOD this file extensively changed separating bookmarks list and adding // udisks support and device manager features #include <glib.h> #include <glib/gi18n.h> #include "ptk-location-vie...
186
./spacefm/src/ptk/ptk-app-chooser.c
/* * C Implementation: appchooserdlg * * Description: * * Copyright: See COPYING file that comes with this distribution * */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include "ptk-app-chooser.h" #include "ptk-utils.h" #include <gtk/gtk.h> #include <glib.h> #include <string.h> #include "private.h" #includ...
187
./spacefm/src/ptk/ptk-input-dialog.c
/* * C Implementation: ptk-input-dialog * * Description: * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2005 * * Copyright: See COPYING file that comes with this distribution * */ #include "ptk-input-dialog.h" #include <gtk/gtk.h> /* * Create a dialog used to prompt the user to input a string. * t...
188
./spacefm/src/ptk/ptk-file-menu.c
/* * C Implementation: ptk-file-menu * * Description: * * * Copyright: See COPYING file that comes with this distribution * */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <unistd.h> /* for access */ #include "ptk-file-menu.h" #include <glib.h> #include "g...
189
./spacefm/src/ptk/ptk-file-icon-renderer.c
/* * C Implementation: ptkfileiconrenderer * * Description: PtkFileIconRenderer is used to render file icons * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * * Part of this class is taken from GtkCellRendererPixbuf written by * R...
190
./spacefm/src/ptk/ptk-file-list.c
/* * C Implementation: ptk-file-list * * Description: * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * */ #include "ptk-file-list.h" #include <gdk/gdk.h> #include "glib-mem.h" #include "vfs-file-info.h" #include "vfs-thumbnail-...
191
./spacefm/src/ptk/ptk-file-browser.c
#ifdef HAVE_CONFIG_H #include <config.h> #endif #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <unistd.h> #include <gtk/gtk.h> #include <glib.h> #include <glib/gi18n.h> #include <gdk/gdkkeysyms.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <fcntl.h> #include <...
192
./spacefm/src/ptk/ptk-dir-tree-view.c
/* * C Implementation: ptkdirtreeview * * Description: * * * Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006 * * Copyright: See COPYING file that comes with this distribution * */ #include "ptk-dir-tree-view.h" #include "ptk-file-icon-renderer.h" #include <glib.h> #include <glib/gi18n.h> #include <g...
193
./spacefm/src/mime-type/mime-cache.c
/* * mime-cache.c * * Copyright 2007 PCMan <pcman.tw@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at ...
194
./spacefm/src/mime-type/mime-action.c
/* * mime-action.c * * Copyright 2007 PCMan <pcman.tw@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at...
195
./spacefm/src/mime-type/mime-type.c
/* * mime-type.c * * Copyright 2007 Houng Jen Yee (PCMan) <pcman.tw@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, ...
196
./sleepd/src/main.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
197
./sleepd/src/pwrevents/suspend_ipc.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
198
./sleepd/src/pwrevents/activity.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
199
./sleepd/src/pwrevents/client.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
200
./sleepd/src/pwrevents/suspend.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...