/* diagnose code 0x14 subcode 0x0fff - retrieve next file descriptor cc=0 normal completion cc=1 no files on reader queue or no subsequent file cc=2 spid specified is invalid  */
static int diag_read_next_file_info(struct file_control_block *buf, int spid)
/* diagnose code 0x14 subcode 0x0fff - retrieve next file descriptor cc=0 normal completion cc=1 no files on reader queue or no subsequent file cc=2 spid specified is invalid  */
static int diag_read_next_file_info(struct file_control_block *buf, int spid)
{
	int cc;
	cc = diag14((unsigned long) buf, spid, 0xfff);
	switch (cc) {
	case 0:
		return 0;
	default:
		return -ENODATA;
	}
}