| 1 |
/*=========================================================================== |
| 2 |
Copyright (C) 1995-2010 European Southern Observatory (ESO) |
| 3 |
|
| 4 |
This program is free software; you can redistribute it and/or |
| 5 |
modify it under the terms of the GNU General Public License as |
| 6 |
published by the Free Software Foundation; either version 2 of |
| 7 |
the License, or (at your option) any later version. |
| 8 |
|
| 9 |
This program is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU General Public License for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public |
| 15 |
License along with this program; if not, write to the Free |
| 16 |
Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, |
| 17 |
MA 02139, USA. |
| 18 |
|
| 19 |
Correspondence concerning ESO-MIDAS should be addressed as follows: |
| 20 |
Internet e-mail: [email protected] |
| 21 |
Postal address: European Southern Observatory |
| 22 |
Data Management Division |
| 23 |
Karl-Schwarzschild-Strasse 2 |
| 24 |
D 85748 Garching bei Muenchen |
| 25 |
GERMANY |
| 26 |
===========================================================================*/ |
| 27 |
|
| 28 |
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 29 |
.TYPE Module |
| 30 |
.NAME iodevd |
| 31 |
.LANGUAGE C |
| 32 |
.AUTHOR IPG-ESO Garching |
| 33 |
.CATEGORY Host operating system interfaces. |
| 34 |
.COMMENTS Tape management. |
| 35 |
The functions of this module perform basic i/o to |
| 36 |
magnetic tapes on Unix enviroments |
| 37 |
.VERSION 1.0 08-Jan-1993 Implementation C. Guirao |
| 38 |
|
| 39 |
100426 last modif |
| 40 |
|
| 41 |
|
| 42 |
We don't work with magtapes anymore. Here's just a skeleton left |
| 43 |
of the original iodevg.c module... |
| 44 |
|
| 45 |
------------------------------------------------------------*/ |
| 46 |
|
| 47 |
#define next_iodev iodev /* Next iodev in chain */ |
| 48 |
|
| 49 |
static char class_name[] = "generic"; /* Default Tape Class */ |
| 50 |
|
| 51 |
#include <osudef.h> |
| 52 |
|
| 53 |
extern int oserror; |
| 54 |
extern char *oserrmsg; |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
/*===================================================================== |
| 60 |
* Definition of the structure returned to osu |
| 61 |
*=====================================================================*/ |
| 62 |
|
| 63 |
#ifdef next_iodev |
| 64 |
struct iolist *next_iodev(); |
| 65 |
#else |
| 66 |
#define next_iodev (IODEV)0 |
| 67 |
#endif |
| 68 |
|
| 69 |
|
| 70 |
static struct iolist this_dev = { |
| 71 |
next_iodev, /* Next iodev in List */ |
| 72 |
class_name, /* How it's written in DEVCAPFILE */ |
| 73 |
0, |
| 74 |
(OPITEM *)0 |
| 75 |
}; |
| 76 |
|
| 77 |
|
| 78 |
struct iolist *iodevg() |
| 79 |
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 80 |
.PURPOSE Get All definitions concerning this class of Devices |
| 81 |
.RETURNS The iolist |
| 82 |
.REMARKS Simply returns the local iolist address... |
| 83 |
------------------------------------------------------------*/ |
| 84 |
{ |
| 85 |
return(&this_dev); |
| 86 |
} |
| 87 |
|