1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
/****************************************************************
* *
* Copyright (c) 2001-2015 Fidelity National Information *
* Services, Inc. and/or its subsidiaries. All rights reserved. *
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
* under a license. If you do not know the terms of *
* the license, please stop and do not read further. *
* *
****************************************************************/
#include "mdef.h"
#include "gtm_stdio.h"
#include "io.h"
#include "iormdef.h"
/* The rm device is unbuffered, so the flush operation is a no-op. */
void iorm_flush(io_desc *iod)
{
return;
}
void iorm_cond_wteol(io_desc *iod)
{
d_rm_struct *rm_ptr;
unsigned int *dollarx_ptr;
rm_ptr = (d_rm_struct *)iod->dev_sp;
#ifdef __MVS__
/* on zos if it is a fifo device then point to the pair.out for $X and $Y */
if (rm_ptr->fifo)
dollarx_ptr = &(iod->pair.out->dollar.x);
else
#endif
dollarx_ptr = &(iod->dollar.x);
if (*dollarx_ptr && rm_ptr->lastop == RM_WRITE && !iod->dollar.za)
iorm_wteol(1, iod);
return;
}
|