List Info

Thread: Re: Installing FormsDev6iR2 on openSuSE 10.2




Re: Installing FormsDev6iR2 on openSuSE 10.2
user name
2007-05-06 17:16:26
If you need the ctype.c:

compilation: cc ctype.c -c -o ctype.o
At installation I inserted at sysliblist
at $ORACLE_HOME/lib. But it will be always
be overwritten. Therefore I made at root 
a loop:

# while true ; do
  cp sysliblist.NEW sysliblist
  sleep 1 
  done

sysliblist.NEW is:

-ldl -lm -lpthread /home/oracle/product/9i/ctype.o


Here it is:

</BEGIN>

#define FILENAME        "/tmp/log_ctype.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
/*#include <linux/ctype.h>*/

static int    __ctype_fileopen = 0;
static FILE * __ctype_fil      = NULL;

void log_open() {
  if( ! __ctype_fileopen ) {
    __ctype_fil = fopen( FILENAME, "w" );
    __ctype_fileopen = __ctype_fil != NULL;
  }
}

void log_close() {
  if( __ctype_fileopen ) {
    fclose( __ctype_fil );
    __ctype_fileopen = 0;
  }
}

void log_printf( char * text ) {
  if( ! __ctype_fileopen )
    log_open();

  if( __ctype_fileopen ) {
    fprintf( __ctype_fil, "%sn", text );
    fflush( __ctype_fil );
  }
}

int __ctype_tolower(int c) {
  log_printf( "__ctype_tolower" );
  return( tolower( c ) );
}

int __ctype_toupper(int c) {
  log_printf( "__ctype_toupper" );
  return( toupper( c ) );
}

unsigned short int **__ctype_b (void) {
  log_printf( "__ctype_b" );
  return( (unsigned short int **)__ctype_b_loc() );
}

<END>


-- 
To unsubscribe, email: suse-oracle-unsubscribesuse.com
For additional commands, email: suse-oracle-helpsuse.com
Please see http://www.suse.com/oracl
e/ before posting


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )