OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [LINUX_2_4_26_OR32/] [linux/] [linux-2.4/] [include/] [linux/] [fcntl.h] - Diff between revs 1279 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 1279 Rev 1765
#ifndef _LINUX_FCNTL_H
#ifndef _LINUX_FCNTL_H
#define _LINUX_FCNTL_H
#define _LINUX_FCNTL_H
 
 
#include <asm/fcntl.h>
#include <asm/fcntl.h>
 
 
#define F_SETLEASE      (F_LINUX_SPECIFIC_BASE+0)
#define F_SETLEASE      (F_LINUX_SPECIFIC_BASE+0)
#define F_GETLEASE      (F_LINUX_SPECIFIC_BASE+1)
#define F_GETLEASE      (F_LINUX_SPECIFIC_BASE+1)
 
 
/*
/*
 * Request nofications on a directory.
 * Request nofications on a directory.
 * See below for events that may be notified.
 * See below for events that may be notified.
 */
 */
#define F_NOTIFY        (F_LINUX_SPECIFIC_BASE+2)
#define F_NOTIFY        (F_LINUX_SPECIFIC_BASE+2)
 
 
/*
/*
 * Types of directory notifications that may be requested.
 * Types of directory notifications that may be requested.
 */
 */
#define DN_ACCESS       0x00000001      /* File accessed */
#define DN_ACCESS       0x00000001      /* File accessed */
#define DN_MODIFY       0x00000002      /* File modified */
#define DN_MODIFY       0x00000002      /* File modified */
#define DN_CREATE       0x00000004      /* File created */
#define DN_CREATE       0x00000004      /* File created */
#define DN_DELETE       0x00000008      /* File removed */
#define DN_DELETE       0x00000008      /* File removed */
#define DN_RENAME       0x00000010      /* File renamed */
#define DN_RENAME       0x00000010      /* File renamed */
#define DN_ATTRIB       0x00000020      /* File changed attibutes */
#define DN_ATTRIB       0x00000020      /* File changed attibutes */
#define DN_MULTISHOT    0x80000000      /* Don't remove notifier */
#define DN_MULTISHOT    0x80000000      /* Don't remove notifier */
 
 
#ifdef __KERNEL__
#ifdef __KERNEL__
 
 
#if BITS_PER_LONG == 32
#if BITS_PER_LONG == 32
#define IS_GETLK32(cmd)         ((cmd) == F_GETLK)
#define IS_GETLK32(cmd)         ((cmd) == F_GETLK)
#define IS_SETLK32(cmd)         ((cmd) == F_SETLK)
#define IS_SETLK32(cmd)         ((cmd) == F_SETLK)
#define IS_SETLKW32(cmd)        ((cmd) == F_SETLKW)
#define IS_SETLKW32(cmd)        ((cmd) == F_SETLKW)
#define IS_GETLK64(cmd)         ((cmd) == F_GETLK64)
#define IS_GETLK64(cmd)         ((cmd) == F_GETLK64)
#define IS_SETLK64(cmd)         ((cmd) == F_SETLK64)
#define IS_SETLK64(cmd)         ((cmd) == F_SETLK64)
#define IS_SETLKW64(cmd)        ((cmd) == F_SETLKW64)
#define IS_SETLKW64(cmd)        ((cmd) == F_SETLKW64)
#else
#else
#define IS_GETLK32(cmd)         (0)
#define IS_GETLK32(cmd)         (0)
#define IS_SETLK32(cmd)         (0)
#define IS_SETLK32(cmd)         (0)
#define IS_SETLKW32(cmd)        (0)
#define IS_SETLKW32(cmd)        (0)
#define IS_GETLK64(cmd)         ((cmd) == F_GETLK)
#define IS_GETLK64(cmd)         ((cmd) == F_GETLK)
#define IS_SETLK64(cmd)         ((cmd) == F_SETLK)
#define IS_SETLK64(cmd)         ((cmd) == F_SETLK)
#define IS_SETLKW64(cmd)        ((cmd) == F_SETLKW)
#define IS_SETLKW64(cmd)        ((cmd) == F_SETLKW)
#endif /* BITS_PER_LONG == 32 */
#endif /* BITS_PER_LONG == 32 */
 
 
#define IS_GETLK(cmd)   (IS_GETLK32(cmd)  || IS_GETLK64(cmd))
#define IS_GETLK(cmd)   (IS_GETLK32(cmd)  || IS_GETLK64(cmd))
#define IS_SETLK(cmd)   (IS_SETLK32(cmd)  || IS_SETLK64(cmd))
#define IS_SETLK(cmd)   (IS_SETLK32(cmd)  || IS_SETLK64(cmd))
#define IS_SETLKW(cmd)  (IS_SETLKW32(cmd) || IS_SETLKW64(cmd))
#define IS_SETLKW(cmd)  (IS_SETLKW32(cmd) || IS_SETLKW64(cmd))
 
 
#endif /* __KERNEL__ */
#endif /* __KERNEL__ */
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.