/*************************************************************************
* *
* Header: sst.h *
* *
* realizzato dal Gruppo 17 di Lab2 Anno Accademico 1995/96 *
* *
* Lorenzo Claudio Valerio Riccardo Emiliano *
* Coronati Lanconelli Paolini Solmi Trentini *
* *
**************************************************************************/
#ifndef _SST_H
#define _SST_H
#include "../h/supconst.h"
typedef union servreq_t {
char service;
struct {
char pad_0;
char string[1];
} str;
struct {
char pad_1;
char tproc_no;
} tno;
struct {
int pad_2;
int no_secs;
} sec;
struct {
int pad_3;
char *addr;
int track_no;
int sect_no;
} dev;
} servreq_t;
typedef union servmsg_t {
servreq_t req;
char b_buf[MAXMSGLEN];
int i_buf[1];
} servmsg_t;
#endif