path: root/pseudo.h
diff options
authorPeter Seebach <peter.seebach@windriver.com>2011-03-25 12:38:43 -0500
committerPeter Seebach <peter.seebach@windriver.com>2011-03-25 12:38:43 -0500
commit29e8b8a4cd8f7383c3d851b6255272f1c2a5d286 (patch)
treec9619032a670d06124ef45c392484f4a04f7d0f0 /pseudo.h
parent96d8e7ce8b483e5cafd0449b9735e4714f41f20b (diff)
Merge in ports work
This is a spiffied-up rebase of a bunch of intermediate changes, presented as a whole because it is, surprisingly, less confusing that way. The basic idea is to separate the guts code into categories ranging from generic stuff that can be the same everywhere and specific variants. The big scary one is the Darwin support, which actually seems to run okay on 64-bit OS X 10.6. (No other variants were tested.) The other example given is support for the old clone() syscall on RHEL 4, which affects some wrlinux use cases. There's a few minor cleanup bits here, such as a function with inconsistent calling conventions, but nothing really exciting.
Diffstat (limited to 'pseudo.h')
1 files changed, 6 insertions, 3 deletions
diff --git a/pseudo.h b/pseudo.h
index a101597..297d6d8 100644
--- a/pseudo.h
+++ b/pseudo.h
@@ -56,15 +56,17 @@ extern char *pseudo_bindir_path(char *);
extern char *pseudo_libdir_path(char *);
extern char *pseudo_localstatedir_path(char *);
extern char *pseudo_get_prefix(char *);
-extern char *pseudo_get_bindir();
-extern char *pseudo_get_libdir();
-extern char *pseudo_get_localstatedir();
+extern char *pseudo_get_bindir(void);
+extern char *pseudo_get_libdir(void);
+extern char *pseudo_get_localstatedir(void);
extern int pseudo_logfile(char *defname);
extern ssize_t pseudo_sys_path_max(void);
extern ssize_t pseudo_path_max(void);
#define PSEUDO_PWD_MAX 4096
extern int pseudo_etc_file(const char *filename, char *realname, int flags, char **search, int dircount);
#define PSEUDO_ETC_FILE(name, realname, flags) pseudo_etc_file((name), (realname), (flags), (char *[]) { pseudo_chroot, pseudo_passwd }, 2)
+extern void pseudo_stat32_from64(struct stat *, const struct stat64 *);
+extern void pseudo_stat64_from32(struct stat64 *, const struct stat *);
extern char *pseudo_version;
@@ -111,3 +113,4 @@ extern char *pseudo_version;
#define O_LARGEFILE 0
+#include "pseudo_ports.h"