Date: Tue, 7 Mar 2000 10:20:48 +1030 (CST) From: Greg Lewis <glewis@trc.adelaide.edu.au> To: freebsd-java@freebsd.org Subject: JDK 1.2.2 source - Solaris fcntl flags Message-ID: <200003062350.KAA02809@ares.maths.adelaide.edu.au>
next in thread | raw e-mail | index | archive | help
Hi all, During compiling JDK 1.2.2 under FreeBSD one of the errors I've run into is in compiling the awt_Robot.c file which contains the code (in fdSetNoBuffer) flags |= O_NDELAY|O_SYNC|O_DSYNC|O_RSYNC; if (fcntl(fd, F_SETFL, flags) != -1) { /* fprintf(stderr, * "ERROR OCCURRED IN fdSetNoBuffer(). " * "File output may be buffered.\n"); */ return; } FreeBSD certainly defines O_NDELAY (as an alias for O_NONBLOCK) but doesn't define the other flags. On a Solaris 2.5.1 box the remaining flags are defined as (in /usr/include/sys/fcntl.h) #if defined(__EXTENSIONS__) || !defined(_POSIX_C_SOURCE) || \ (_POSIX_C_SOURCE > 2) || defined(_XOPEN_SOURCE) #define O_SYNC 0x10 /* synchronized file update option */ #define O_DSYNC 0x40 /* synchronized data update option */ #define O_RSYNC 0x8000 /* synchronized file update option */ /* defines read/write file integraty */ /* we are taking last bit as no spece */ /* left in first 8 bits */ #endif /* defined(__EXTENSIONS__) || !defined(_POSIX_C_SOURCE) ... */ Nothing leaps out at me from the FreeBSD fcntl.h as equivalent. Anyone got any thoughts on this? If not I'll just experiment I guess :). -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 5083 Teletraffic Research Centre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003062350.KAA02809>