Exemple #1
0
void 
read_args (unsigned int *acptr, char ***avptr)
{
	char *cp;
	char **av;

	if (acptr == (unsigned int *) NULL) return;
	if (*acptr <= 1) return;

	av = *avptr;
	av++;

	while ((cp = *av) && (*cp == '-')) {
		switch (*++cp) {
		case 'T':
			if (*++av != NULLCP) load_oid_table(*av);
			break;
		case 'c':
			if (*++av != NULLCP) myname = *av;
			break;
		case 't':
			if (lexequ(*av, "-test") != 0) {
				if (*++av != NULLCP) tailfile = *av;
			} else {
				testing = TRUE;
			}
			break;
		default:
			av++;
		}
		av++;
	}
}
int Host_Info::thread_start(){
    int rvalue;

    rvalue=load_oid_table();
    //rvalue=load_oid_table_get();
    if(rvalue>=0){
        mapping_done=1;
    }

    if(NULL!=thread_semaphore){
       rvalue=sem_post(thread_semaphore);
       assert(rvalue>=0);
    }
   

    return 0;
}