Fix some ez80 compilation errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2005 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
64777d8eaf
commit
ea16dce2f3
@ -80,7 +80,6 @@ static inline int file_vfcntl(int fildes, int cmd, va_list ap)
|
|||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning "Many fcntl() commands not yet implemented"
|
|
||||||
switch (cmd)
|
switch (cmd)
|
||||||
{
|
{
|
||||||
case F_DUPFD:
|
case F_DUPFD:
|
||||||
|
@ -88,20 +88,14 @@
|
|||||||
|
|
||||||
/* For posix fcntl() and lockf() */
|
/* For posix fcntl() and lockf() */
|
||||||
|
|
||||||
#define F_RDLCK 0
|
#define F_RDLCK 0 /* Take out a read lease */
|
||||||
#define F_WRLCK 1
|
#define F_WRLCK 1 /* Take out a write lease */
|
||||||
#define F_UNLCK 2
|
#define F_UNLCK 2 /* Remove a lease */
|
||||||
|
|
||||||
/* close-on-exec flag for F_GETRL and F_SETFL */
|
/* close-on-exec flag for F_GETRL and F_SETFL */
|
||||||
|
|
||||||
#define FD_CLOEXEC 1
|
#define FD_CLOEXEC 1
|
||||||
|
|
||||||
/* Arguments to F_SETLEASE */
|
|
||||||
|
|
||||||
#define F_RDLCK 0 /* Take out a read lease */
|
|
||||||
#define F_WRLCK 2 /* Take out a write lease */
|
|
||||||
#define F_UNLCK 3 /* Remove a lease */
|
|
||||||
|
|
||||||
/* These are the notifications that can be received from F_NOTIFY (linux) */
|
/* These are the notifications that can be received from F_NOTIFY (linux) */
|
||||||
|
|
||||||
#define DN_ACCESS 0 /* A file was accessed */
|
#define DN_ACCESS 0 /* A file was accessed */
|
||||||
|
@ -77,8 +77,6 @@ int net_vfcntl(int sockfd, int cmd, va_list ap)
|
|||||||
/* Interrupts must be disabled in order to perform operations on socket structures */
|
/* Interrupts must be disabled in order to perform operations on socket structures */
|
||||||
|
|
||||||
flags = irqsave();
|
flags = irqsave();
|
||||||
|
|
||||||
#warning "Most fcntl() commands not yet implemented"
|
|
||||||
switch (cmd)
|
switch (cmd)
|
||||||
{
|
{
|
||||||
case F_DUPFD:
|
case F_DUPFD:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user