[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-developers] cygwin
From: |
jan marco alkema |
Subject: |
[GNUnet-developers] cygwin |
Date: |
Sat, 14 Jun 2003 10:30:50 +0200 |
Hello Krista,
I downloaded and started setup.exe.
http://www.cygwin.com/setup.exe
The problem is that I can't scroll in the "Select Package: Select the
packages you want setup to install". Arrow up/down key: Keep -> Prev ->
Curr -> Exp. It don't scroll the lines in the screen. There are lines I
can't access in the screen (bottom ones).
Maybe I must download CVS source files to get all commands?
$make
bash: make: command not found
Greetings Jan Marco
Appendix A: fshcron.c routines in Linux not in MSC++:
#if defined(_WIN32)
/* not in msc++ */
#define LOG_PID 0
#define LOG_CRON 1
#define LOG_ERR 2
#define LOG_NOTICE 3 /* informational messages */
#define LOG_WARNING 4 /* warning messages */
#define LOG_DEBUG 5 /* only used when DEBUG is defined */
#define LOCK_EX 6
#define LOCK_NB 7
#define F_SETFD 8
#define SIGHUP 9
#define SIGCHLD 10
#define SIGUSR1 11
#define SIGUSR2 12
#define S_IWUSR 13
#define S_IRUSR 14
#define X_OK 15
#define WNOHANG 16
#define TIOCNOTTY 17
#define SIGPIPE 18
/* not in msc++ */
#else
#endif
#if defined(_WIN32)
/* not in msc++ */
typedef int mode_t;
typedef int pid_t;
typedef int uid_t;
typedef int gid_t;
/* not in msc++ */
#else
#endif
#if defined(_WIN32)
/* not in msc++ */
struct option {
const char *name;
int has_arg;
int *flag;
int val;
};
struct rusage {
struct timeval ru_utime; /* user time used */
struct timeval ru_stime; /* system time used */
long ru_maxrss;
#define ru_first ru_ixrss
long ru_ixrss; /* XXX: 0 */
long ru_idrss; /* XXX: sum of rm_asrss */
long ru_isrss; /* XXX: 0 */
long ru_minflt; /* any page faults not requiring
I/O */
long ru_majflt; /* any page faults requiring I/O
*/
long ru_nswap; /* swaps */
long ru_inblock; /* block input operations */
long ru_oublock; /* block output operations */
long ru_msgsnd; /* messages sent */
long ru_msgrcv; /* messages received */
long ru_nsignals; /* signals received */
long ru_nvcsw; /* voluntary context switches */
long ru_nivcsw; /* involuntary context switches
*/
#define ru_last ru_nivcsw
};
struct passwd {
char *pw_name;
char *pw_passwd;
uid_t pw_uid;
gid_t pw_gid;
time_t pw_change;
char *pw_class;
char *pw_gecos;
char *pw_dir;
char *pw_shell;
time_t pw_expire;
};
/* not in msc++ */
#else
#endif
#if defined(_WIN32)
// The module attribute causes WinMain to be automatically implemented for
you
[ module(EXE, uuid = "{2142892A-A4B8-4455-8E55-F375B12A2FD1}",
name = "fshcron",
helpstring = "fshcron 1.0 Type Library",
resource_name = "IDR_FSHCRON") ];
int vsnprintf(char *msg, int max_msg, char *fmt, va_list args)
{
msg=msg;max_msg=max_msg;fmt=fmt;args=args;
return 0;
}
void openlog(char *prog_name, int log_pid, int syslog_facility)
{ prog_name=prog_name;log_pid=log_pid;syslog_facility=syslog_facility;
}
void syslog(int priority, char *format, char *msg, ...)
{priority=priority;format=format;msg=msg;
}
void closelog(void)
{
}
pid_t wait3(int *status, int options, struct rusage *rusage)
{
status=status;options=options;rusage=rusage;
return 0;
}
int flock(int fd, int option)
{
fd=fd;option=option;
return 0;
}
void fcntl(int fd, int option1, int option2)
{
fd=fd;option1=option1;option2=option2;
}
void ftruncate(int fileno_jm, int ftell_jm)
{
fileno_jm=fileno_jm;ftell_jm=ftell_jm;
}
int getopt_long (int argc, char *const *argv, const char *options, const
struct option *long_options, int *opt_index)
{
return 0;
}
void siginterrupt(int sign, int option)
{
sign=sign;option=option;
}
int mkstemp(char *name_local)
{
name_local=name_local;
return 0;
}
int fchmod(int fd, int option)
{ fd=fd;option=option;
return 0;
}
int chdir(char *path)
{ path=path;
return 0;
}
int WIFEXITED(int status)
{
status=status;
return 0;
}
int WEXITSTATUS(int status)
{
status=status;
return 0;
}
int WIFSIGNALED(int status)
{ status=status;
return 0;
}
int WTERMSIG(int status)
{ status=status;
return 0;
}
int pipe(int pipe_pid_fd[])
{
pipe_pid_fd= pipe_pid_fd;
return 0;
}
int fork(void)
{
return 0;
}
void setlinebuf(FILE *stream)
{ stream=stream;
}
int nice(int cl_nice_jm)
{ cl_nice_jm = cl_nice_jm;
return 0;
}
struct passwd *getpwnam(char *runas)
{
runas=runas;
return NULL;
}
void setenv(char *user, char *password, int option)
{
user=user;password=password;option=option;
}
int initgroups(const char *user, gid_t group)
{
user=user;group=group;
return 0;
}
int setgid(gid_t gid)
{
gid=gid;
return 0;
}
int setuid(uid_t uid)
{
uid=uid;
return 0;
}
void bzero(void *s, size_t n)
{
s=s;n=n;
}
/* Pauses for a specified number of seconds. */
void sleep( clock_t wait )
{
clock_t goal;
wait = (clock_t) wait * CLOCKS_PER_SEC;
goal = wait + clock();
while( goal > clock());
}
/* Pauses for a specified milli number of seconds. should be micro seconds*/
void usleep( clock_t wait )
{
clock_t goal;
goal = wait + clock();
while( goal > clock());
}
int gettimeofday(struct timeval *tv, struct timezone *tz)
{
tv=tv;tz=tz;
return 0;
}
uid_t getuid(void)
{
return 0;
}
int ioctl(int d, int request, ...)
{
d=d;request=request;
return 0;
}
int setsid(void)
{
return 0;
}
#else
#endif