search for: sort_compar

Displaying 2 results from an estimated 2 matches for "sort_compar".

Did you mean: sort_compare
2010 Apr 28
1
[PATCH] RFC: Running initscripts from kinit
...#include "run-init.h" #include "resume.h" +#define INITD "/etc/init.d" + const char *progname = "kinit"; int mnt_procfs; int mnt_sysfs; @@ -189,6 +193,70 @@ static const char *find_init(const char *root, const char *user) return path; } +static int sort_compare(const void *a, const void *b) +{ + return strcmp(a, b); +} + +/* Go through and run all scripts found in /etc/init.d */ +static void do_runscripts() +{ + DIR *dir; + struct dirent *dirent; + char **names = NULL; + unsigned used_count = 0; + unsigned total_count = 0; + char buf[256 + strlen(INITD)...
2006 May 11
6
problem with solaris install
I was trying to install ferret 0.9.2 on solaris (SunOS 5.8) which does not have a sys/dir.h nix_io.c:5:21: sys/dir.h: No such file or directory make: *** [nix_io.o] Error 1 I couldn''t find an obvious way around this... any suggestions? Thanks, Rich Marisa Cornell Information Technologies Cornell University