/* $modname$ $version$ $date$ $time$ REVISION HISTORY: $log$ */ /* ************************************************************* * * * WOODS HOLE OCEANOGRAPHIC INSTITUTION * * UPPER OCEAN PROCESSES GROUP * * PHYSICAL OCEANOGRAPHY DEPT. * * WOODS HOLE, MASSACHUSETTS USA 02543 * * * * File: globals.c * * * * Function: global variables - this is Franklin C51 style * for eventual port to embedded processor - * normal C-style parameter passing is inefficient * * * Project: * * * Programmer: G.A. * * * * Copyright (c) 2004 Woods Hole Oceanographic Institution * * * ************************************************************* */ #include #include #include #include #include "struct.h" #define uchar unsigned char /* misc globals */ time_t curr_time; struct tm *timeptr; short GO_mode; short cmnd_rdy; short msg_len; /* returned message length */ /* for remote serial ports */ char inbuf[8192]; char msgbuf[8192]; char cmd[256]; char filename[64]; struct termios newtio; // see "man 3 termios" int fd_comms[6]; // file descriptor - see "man 2 open" FILE *sf2, *sf3; /* major structure variable */ struct status_type status;