From 7585deb0878bca96eee9a3e00fb5726c7725831c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 16 Dec 1999 01:25:23 +0000 Subject: I have done the QNX4 port with the current source tree. The number of backend/Makefiles to be patched could significantly be reduced since they have been adopted to the QNX4 needs. Andreas Kardos --- src/backend/port/qnx/tstrint.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/backend/port/qnx/tstrint.c (limited to 'src/backend/port/qnx/tstrint.c') diff --git a/src/backend/port/qnx/tstrint.c b/src/backend/port/qnx/tstrint.c new file mode 100644 index 00000000000..82d04e1a735 --- /dev/null +++ b/src/backend/port/qnx/tstrint.c @@ -0,0 +1,31 @@ +/*------------------------------------------------------------------------- + * + * tstrint.c + * rint() test + * + * Copyright (c) 1999, repas AEG Automation GmbH + * + * + * IDENTIFICATION + * $Header: /cvsroot/pgsql/src/backend/port/qnx/Attic/tstrint.c,v 1.1 1999/12/16 01:25:06 momjian Exp $ + * + *------------------------------------------------------------------------- + */ + +#include +#include +#include +#include "os.h" + + +int main( int argc, char **argv ) +{ + double x; + + if( argc != 2 ) exit( 1 ); + + x = strtod( argv[1], NULL ); + printf( "rint( %f ) = %f\n", x, rint( x ) ); + + return 0; +} -- cgit v1.2.3