Subject: OS dependencies

From: Dominik Vogt <[email-masked]>
Date: Thu, 31 Dec 1998 12:23:05 +0100

Hi Paul (PDS),

I've found a few places where references/defines for
certain UNIX flavours are made. Could you have a look
at them and see what has to be done to 'autoconf' them?

1) events.c:

    #ifdef __hpux
      if (select(fd_width,(int *)&in_fdset, (int *)&out_fdset,0, NULL) > 0)
    #else
      if (select(fd_width,&in_fdset, &out_fdset, 0, NULL) > 0)
    #endif

2) builtins.c:

    win = (unsigned long)strtol(num,NULL,0); /* SunOS doesn't have strtoul */

3) module.c:

    /* the write returns EWOULDBLOCK or EAGAIN if the pipe is full.
     * (This is non-blocking I/O). SunOS returns EWOULDBLOCK, OSF/1
     * returns EAGAIN under these conditions. Hopefully other OSes
     * return one of these values too. Solaris 2 doesn't seem to have
     * a man page for write(2) (!) */
    else if ((errno == EWOULDBLOCK)||(errno == EAGAIN)||(errno==EINTR))

4) bindings.c:

    /* in some BSD implementations, tolower(c) is not defined
     * unless isupper(c) is true */
    tmp1=string[i];
    if(isupper(tmp1))
      tmp1=tolower(tmp1);

Bye

Dominik

--
Dominik Vogt, [email-masked]
Reply-To: [email-masked]

--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked].