Пример #1
0
int
main(void)
{
	sef_local_startup();
	chardriver_task(&fb_tab, CHARDRIVER_SYNC);
	return OK;
}
Пример #2
0
/*===========================================================================*
 *				printer_task				     *
 *===========================================================================*/
int main(void)
{
/* Main routine of the printer task. */

  /* SEF local startup. */
  sef_local_startup();

  chardriver_task(&printer_tab);
}
Пример #3
0
/*===========================================================================*
 *				   main 				     *
 *===========================================================================*/
PUBLIC int main(void)
{
  /* SEF local startup. */
  sef_local_startup();

  /* Call the generic receive loop. */
  chardriver_task(&log_dtab, CHARDRIVER_ASYNC);

  return(OK);
}
Пример #4
0
int main(void)
{
    /*
     * Perform initialization.
     */
    sef_local_startup();

    /*
     * Run the main loop.
     */
    chardriver_task(&hello_tab, CHARDRIVER_SYNC);
    return OK;
}
Пример #5
0
PUBLIC int main(void)
{
    /*
     * Perform initialization.
     */
    sef_local_startup();

    /*
     * Run the main loop.
     */
    chardriver_task(&counter_tab, CHARDRIVER_SYNC);
    printf("\n");
    return OK;
}
Пример #6
0
int main(void)
{
    int i = 0;
    owner = -1;
    open_file_descriptors = 0;
    secret_opened_for_reading = false;

    for (i = 0; i < SECRET_SIZE; i++) {
        the_secret[i] = '\0';
    }

    /*
     * Perform initialization.
     */
    sef_local_startup();

    /*
     * Run the main loop.
     */
    chardriver_task(&hello_tab, CHARDRIVER_SYNC);
    return OK;
}