opkg_libcore_sources = \
- includes.h \
opkg.c opkg.h \
opkg_defines.h
opkg_cmd_sources = opkg_cmd.c opkg_cmd.h \
General Public License for more details.
*/
-#include <string.h>
+#include <stdio.h>
#include <stdlib.h>
-#include "includes.h"
#include "opkg_message.h"
-
#include "conffile.h"
#include "file_util.h"
#include "sprintf_alloc.h"
+#include "opkg_conf.h"
int conffile_init(conffile_t *conffile, const char *file_name, const char *md5sum)
{
#include "nv_pair.h"
typedef struct nv_pair conffile_t;
-#include "opkg_conf.h"
-
int conffile_init(conffile_t *conffile, const char *file_name, const char *md5sum);
void conffile_deinit(conffile_t *conffile);
int conffile_has_been_modified(conffile_t *conffile);
General Public License for more details.
*/
-#include "includes.h"
-
#include "conffile_list.h"
void conffile_list_init(conffile_list_t *list)
General Public License for more details.
*/
-#include "includes.h"
+#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
+#include <unistd.h>
#include "sprintf_alloc.h"
#include "file_util.h"
#include "md5.h"
#include "libbb/libbb.h"
-#undef strlen
#if defined HAVE_SHA256
#include "sha256.h"
+++ /dev/null
-#ifndef INCLUDES_H
-#define INCLUDES_H
-
-#include "config.h"
-#include <stdio.h>
-
-#if STDC_HEADERS
-# include <stdlib.h>
-# include <stdarg.h>
-# include <stddef.h>
-# include <ctype.h>
-# include <errno.h>
-#else
-# if HAVE_STDLIB_H
-# include <stdlib.h>
-# endif
-#endif
-
-#if HAVE_REGEX_H
-# include <regex.h>
-#endif
-
-#if HAVE_STRING_H
-# include <string.h>
-#endif
-
-#if HAVE_STRINGS_H
-# include <strings.h>
-#endif
-
-#if HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-
-#if HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
-
-#if HAVE_UNISTD_H
-# include <sys/types.h>
-# include <unistd.h>
-#endif
-
-// #include "replace/replace.h"
-
-#endif
General Public License for more details.
*/
-#include "includes.h"
-
#include "nv_pair.h"
#include "libbb/libbb.h"
General Public License for more details.
*/
-#include "includes.h"
-
#include "nv_pair.h"
#include "void_list.h"
#include "nv_pair_list.h"
General Public License for more details.
*/
-#include <config.h>
+#include "config.h"
+
+#include <stdio.h>
+#include <unistd.h>
#include <fnmatch.h>
#include "opkg.h"
General Public License for more details.
*/
-
-#include "includes.h"
+#include <stdio.h>
#include <dirent.h>
#include <glob.h>
#include <fnmatch.h>
+#include <signal.h>
+#include <unistd.h>
#include "opkg_conf.h"
#include "opkg_cmd.h"
const char *name;
int requires_args;
opkg_cmd_fun_t fun;
- uint pfm; /* package field mask */
+ unsigned int pfm; /* package field mask */
};
typedef struct opkg_cmd opkg_cmd_t;
General Public License for more details.
*/
-#include "includes.h"
-#include "opkg_conf.h"
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <glob.h>
+#include <unistd.h>
+#include "opkg_conf.h"
+#include "pkg_vec.h"
+#include "pkg.h"
#include "xregex.h"
#include "sprintf_alloc.h"
#include "opkg_message.h"
#include "opkg_defines.h"
#include "libbb/libbb.h"
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <glob.h>
-
static int lock_fd;
static char *lock_file = NULL;
typedef struct opkg_conf opkg_conf_t;
extern opkg_conf_t *conf;
+#include <stdarg.h>
+
#include "hash_table.h"
-#include "pkg.h"
-#include "pkg_hash.h"
#include "pkg_src_list.h"
#include "pkg_dest_list.h"
#include "nv_pair_list.h"
char *tmp_dir;
char *lists_dir;
- uint pfm; /* package field mask */
+ unsigned int pfm; /* package field mask */
/* For libopkg users to capture messages. */
void (*opkg_vmessage)(int, const char *fmt, va_list ap);
General Public License for more details.
*/
-#include "includes.h"
+#include <stdio.h>
+
#include "sprintf_alloc.h"
#include "opkg_configure.h"
#include "opkg_message.h"
#ifndef OPKG_CONFIGURE_H
#define OPKG_CONFIGURE_H
-#include "opkg_conf.h"
+#include "pkg.h"
int opkg_configure(pkg_t *pkg);
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/
+
#include "config.h"
-#include "includes.h"
+#include <stdio.h>
+#include <unistd.h>
+
#include "opkg_download.h"
#include "opkg_message.h"
#ifndef OPKG_DOWNLOAD_H
#define OPKG_DOWNLOAD_H
-#include "opkg_conf.h"
+#include "pkg.h"
typedef void (*opkg_download_progress_callback)(int percent, char *url);
typedef int (*curl_progress_func)(void *data, double t, double d, double ultotal, double ulnow);
General Public License for more details.
*/
-#include "includes.h"
-#include <errno.h>
-#include <dirent.h>
-#include <glob.h>
+#include <stdio.h>
#include <time.h>
#include <signal.h>
+#include <unistd.h>
#include "pkg.h"
#include "pkg_hash.h"
General Public License for more details.
*/
+#include <stdio.h>
-#include "includes.h"
#include "opkg_conf.h"
#include "opkg_message.h"
#include "libbb/libbb.h"
#include <openssl/ssl.h>
#include <libpathfinder.h>
-
+#include <stdlib.h>
#if defined(HAVE_SSLCURL)
#include <curl/curl.h>
#endif
-#include "includes.h"
#include "libbb/libbb.h"
#include "opkg_message.h"
General Public License for more details.
*/
-#include "includes.h"
-#include "opkg_message.h"
-
+#include <stdio.h>
#include <glob.h>
+#include <unistd.h>
+#include "opkg_message.h"
#include "opkg_remove.h"
#include "opkg_cmd.h"
-
#include "file_util.h"
#include "sprintf_alloc.h"
#include "libbb/libbb.h"
General Public License for more details.
*/
-#include "includes.h"
+#include <stdio.h>
+#include <stdlib.h>
+
#include "opkg_install.h"
#include "opkg_upgrade.h"
#include "opkg_message.h"
General Public License for more details.
*/
-#include "includes.h"
-#include <errno.h>
#include <ctype.h>
#include <sys/statvfs.h>
-#include "opkg_utils.h"
-#include "pkg.h"
-#include "pkg_hash.h"
#include "libbb/libbb.h"
-void print_pkg_status(pkg_t * pkg, FILE * file);
-
unsigned long
get_available_kbytes(char * filesystem)
{
General Public License for more details.
*/
-#include "includes.h"
-#include <ctype.h>
-#include <alloca.h>
+#include "config.h"
+
+#include <stdio.h>
#include <string.h>
-#include <stdbool.h>
-#include <errno.h>
+#include <ctype.h>
+#include <unistd.h>
#include "pkg.h"
{
int fd, err = 0;
FILE *control_file;
- char *control_path;
+ char *control_path, *tmp;
pkg_init(pkg);
pkg->local_filename = xstrdup(filename);
+ tmp = xstrdup(filename);
sprintf_alloc(&control_path, "%s/%s.control.XXXXXX",
conf->tmp_dir,
- basename(filename));
+ basename(tmp));
+ free(tmp);
fd = mkstemp(control_path);
if (fd == -1) {
opkg_perror(ERROR, "Failed to make temp file %s", control_path);
#define PKG_H
#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
#include "pkg_vec.h"
#include "str_list.h"
General Public License for more details.
*/
-#include "includes.h"
-#include <errno.h>
+#include <stdio.h>
#include <ctype.h>
-
+
#include "pkg.h"
#include "opkg_utils.h"
#include "pkg_hash.h"
#include "pkg.h"
#include "pkg_hash.h"
-#include "includes.h"
enum depend_type {
PREDEPEND,
General Public License for more details.
*/
-#include "includes.h"
+#include <stdio.h>
#include "pkg_dest.h"
#include "file_util.h"
#ifndef PKG_DEST_H
#define PKG_DEST_H
-#include "includes.h"
-
typedef struct pkg_dest pkg_dest_t;
struct pkg_dest
{
General Public License for more details.
*/
-#include "includes.h"
+#include <stdio.h>
#include "pkg_dest.h"
#include "void_list.h"
General Public License for more details.
*/
-#include "includes.h"
-#include <errno.h>
+#include <stdio.h>
#include "pkg_extract.h"
-
#include "libbb/libbb.h"
#include "file_util.h"
#include "sprintf_alloc.h"
General Public License for more details.
*/
-#include "includes.h"
-#include <errno.h>
-#include <ctype.h>
-#include <stdlib.h>
-#include <string.h>
+#include <stdio.h>
#include "hash_table.h"
#include "pkg.h"
#include "pkg.h"
#include "pkg_src.h"
#include "pkg_dest.h"
-#include "pkg_vec.h"
#include "hash_table.h"
General Public License for more details.
*/
-#include "includes.h"
-#include <errno.h>
+#include <stdio.h>
#include <ctype.h>
-
+
#include "pkg.h"
#include "opkg_utils.h"
#include "pkg_parse.h"
General Public License for more details.
*/
-#include "includes.h"
-
#include "pkg_src.h"
#include "libbb/libbb.h"
General Public License for more details.
*/
-#include "includes.h"
-
#include "pkg_src_list.h"
#include "void_list.h"
#include "libbb/libbb.h"
General Public License for more details.
*/
-#include "includes.h"
+#include <stdio.h>
#include <fnmatch.h>
+
#include "xregex.h"
#include "pkg.h"
#include "opkg_message.h"
GNU General Public License for more details.
*/
-#include "includes.h"
#include <stdarg.h>
#include "sprintf_alloc.h"
General Public License for more details.
*/
-#include "includes.h"
#include "str_list.h"
#include "libbb/libbb.h"
General Public License for more details.
*/
-#include "includes.h"
-
#include "void_list.h"
#include "libbb/libbb.h"
GNU General Public License for more details.
*/
-#include "includes.h"
-
#include "xregex.h"
#include "libbb/libbb.h"
General Public License for more details.
*/
-#include "includes.h"
+#include <sys/types.h>
#include <sys/wait.h>
+#include <unistd.h>
#include "xsystem.h"
#include "libbb/libbb.h"
#ifndef XSYSTEM_H
#define XSYSTEM_H
-#include <stdlib.h>
-
/* Like system(3), but with error messages printed if the fork fails
or if the child process dies due to an uncaught signal. Also, the
return value is a bit simpler:
opkg command line frontend using libopkg
*/
-#include "includes.h"
+#include "config.h"
+#include <stdio.h>
#include <getopt.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
#include "opkg_conf.h"
#include "opkg_cmd.h"
-#include <opkg.h>
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <libgen.h>
+#include <opkg.h>
+
pkg_t *find_pkg = NULL;