[prev in list] [next in list] [prev in thread] [next in thread]
List: rsync
Subject: Updated - NeXTStep 3.3 / OpenStep 4.2 changes
From: David VanSickle <vansickd () Phibro ! COM>
Date: 1998-07-02 17:52:42
[Download RAW message or body]
<fixed><fontfamily><param>Ohlfs</param><smaller> For anyone that
uses NeXT(3.3)/OpenStep(4.2) here are the changes
that have been add to our rsync source tree for NeXT/OpenStep support.
I had previously set the incorrect prototypes in config.h
which caused the --delete option to fail (rsync thought files were dirs)
Things seem to work good now!
/Makefile
CFLAGS=-g -O2 -arch i386 -arch m68k
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/lib/compat.c
#ifndef HAVE_WAITPID
pid_t waitpid(pid_t pid, int *statptr, int options)
{
#ifndef NeXT
return wait4(pid, statptr, options, NULL);
#else
/*
THIS IS AS CLOSE AS I CAN MAKE IT!!!
*/
int ret;
union wait wp;
ret=wait4(pid,&wp, options, NULL);
if (WIFEXITED(wp))
*statptr=wp.w_termsig;
else if (WIFSIGNALED(wp))
*statptr=wp.w_stopsig;
else if (WIFSTOPPED(wp))
*statptr=wp.w_stopsig;
return ret;
#endif
}
#endif
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/lib/getopt.c
getopt (argc, argv, optstring)
int argc;
#ifdef NeXT
char **argv;
char *optstring;
#else
char *const *argv;
const char *optstring;
#endif
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/config.h
#ifdef NeXT
#include <<libc.h>
extern char *strdup(char *s);
extern char *getwd(char *buf);
extern char *mktemp(char *template);
extern char *getpass(char *prompt);
#ifndef _POSIX_SOURCE
#define S_ISBLK(mode) (((mode) & (_S_IFMT)) == (_S_IFBLK))
#define S_ISCHR(mode) (((mode) & (_S_IFMT)) == (_S_IFCHR))
#define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR))
#define S_ISFIFO(mode) (((mode) & (_S_IFMT)) == (_S_IFIFO))
#define S_ISREG(mode) (((mode) & (_S_IFMT)) == (_S_IFREG))
#endif
#endif
</smaller></fontfamily></fixed>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic