|
|
| |
AC_CHECK_FUNCS(mmap strerror) | AC_CHECK_FUNCS(mmap strerror) |
AC_CHECK_FUNCS(getopt_long) | AC_CHECK_FUNCS(getopt_long) |
|
AC_CHECK_FUNCS(strndup) |
| |
AC_OUTPUT(Makefile) | AC_OUTPUT(Makefile) |
|
|
fchown(fd_out, st.st_uid, st.st_gid); | fchown(fd_out, st.st_uid, st.st_gid); |
} | } |
| |
|
#ifndef HAVE_STRNDUP |
|
static char* strndup(const char* s, size_t n) { |
|
char* ret = malloc(n + 1); |
|
if (ret == NULL) return(ret); |
|
ret[n] = '\0'; |
|
return(strncpy(ret, s, n)); |
|
} |
|
#endif |
| |
/* | /* |
decompress one file from the command line | decompress one file from the command line |