[BACK]Return to ioctl32.h CVS log [TXT][DIR] Up to [Development] / linux-2.4-xfs / include / asm-s390x

File: [Development] / linux-2.4-xfs / include / asm-s390x / ioctl32.h (download)

Revision 1.1, Tue Jan 6 23:17:36 2004 UTC (13 years, 9 months ago) by cattelan
Branch: MAIN
CVS Tags: HEAD

Upgrade to 2.4.25-pre4

/*
 * include/asm-s390/ioctl32.h
 * include/asm-s390x/ioctl32.h
 *
 *         Copyright (C) 2003 IBM Corporation
 *         Author: Arnd Bergmann <arndb@de.ibm.com>
 */
#ifndef ASM_IOCTL32_H
#define ASM_IOCTL32_H

extern int sys_ioctl(unsigned int, unsigned int, unsigned long, struct file*);
typedef int (*ioctl_trans_handler_t)(unsigned int, unsigned int, unsigned long, struct file *);

#ifdef CONFIG_S390_SUPPORT

extern int
register_ioctl32_conversion(unsigned int cmd, ioctl_trans_handler_t handler);

extern void
unregister_ioctl32_conversion(unsigned int cmd);

#else

static inline int
register_ioctl32_conversion(unsigned int cmd, ioctl_trans_handler_t handler)
{
	return 0;
}

static inline void 
unregister_ioctl32_conversion(unsigned int cmd)
{
}

#endif /* CONFIG_S390_SUPPORT */
#endif /* ASM_IOCTL32_H */