summaryrefslogtreecommitdiffstats
path: root/net/irda
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-04-28 01:09:25 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-04-28 01:09:25 +0000
commitb9ba7aeb165cffecdffb60aec8c3fa8d590d9ca9 (patch)
tree42d07b0c7246ae2536a702e7c5de9e2732341116 /net/irda
parent7406b0a326f2d70ade2671c37d1beef62249db97 (diff)
Merge with 2.3.99-pre6.
Diffstat (limited to 'net/irda')
-rw-r--r--net/irda/af_irda.c138
-rw-r--r--net/irda/ircomm/ircomm_tty.c2
2 files changed, 68 insertions, 72 deletions
diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c
index bed8c5cc2..2ba86afcc 100644
--- a/net/irda/af_irda.c
+++ b/net/irda/af_irda.c
@@ -1215,9 +1215,9 @@ static int irda_recvmsg_dgram(struct socket *sock, struct msghdr *msg,
static void irda_data_wait(struct sock *sk)
{
if (!skb_peek(&sk->receive_queue)) {
- sk->socket->flags |= SO_WAITDATA;
+ set_bit(SOCK_ASYNC_WAITDATA, &sk->socket->flags);
interruptible_sleep_on(sk->sleep);
- sk->socket->flags &= ~SO_WAITDATA;
+ clear_bit(SOCK_ASYNC_WAITDATA, &sk->socket->flags);
}
}
@@ -1241,7 +1241,7 @@ static int irda_recvmsg_stream(struct socket *sock, struct msghdr *msg,
self = sk->protinfo.irda;
ASSERT(self != NULL, return -1;);
- if (sock->flags & SO_ACCEPTCON)
+ if (sock->flags & __SO_ACCEPTCON)
return(-EINVAL);
if (flags & MSG_OOB)
@@ -2015,88 +2015,84 @@ static struct net_proto_family irda_family_ops =
};
static struct proto_ops SOCKOPS_WRAPPED(irda_stream_ops) = {
- PF_IRDA,
+ family: PF_IRDA,
- irda_release,
- irda_bind,
- irda_connect,
- sock_no_socketpair,
- irda_accept,
- irda_getname,
- irda_poll,
- irda_ioctl,
- irda_listen,
- irda_shutdown,
- irda_setsockopt,
- irda_getsockopt,
- sock_no_fcntl,
- irda_sendmsg,
- irda_recvmsg_stream,
- sock_no_mmap
+ release: irda_release,
+ bind: irda_bind,
+ connect: irda_connect,
+ socketpair: sock_no_socketpair,
+ accept: irda_accept,
+ getname: irda_getname,
+ poll: irda_poll,
+ ioctl: irda_ioctl,
+ listen: irda_listen,
+ shutdown: irda_shutdown,
+ setsockopt: irda_setsockopt,
+ getsockopt: irda_getsockopt,
+ sendmsg: irda_sendmsg,
+ recvmsg: irda_recvmsg_stream,
+ mmap: sock_no_mmap,
};
static struct proto_ops SOCKOPS_WRAPPED(irda_seqpacket_ops) = {
- PF_IRDA,
+ family: PF_IRDA,
- irda_release,
- irda_bind,
- irda_connect,
- sock_no_socketpair,
- irda_accept,
- irda_getname,
- datagram_poll,
- irda_ioctl,
- irda_listen,
- irda_shutdown,
- irda_setsockopt,
- irda_getsockopt,
- sock_no_fcntl,
- irda_sendmsg,
- irda_recvmsg_dgram,
- sock_no_mmap,
+ release: irda_release,
+ bind: irda_bind,
+ connect: irda_connect,
+ socketpair: sock_no_socketpair,
+ accept: irda_accept,
+ getname: irda_getname,
+ poll: datagram_poll,
+ ioctl: irda_ioctl,
+ listen: irda_listen,
+ shutdown: irda_shutdown,
+ setsockopt: irda_setsockopt,
+ getsockopt: irda_getsockopt,
+ sendmsg: irda_sendmsg,
+ recvmsg: irda_recvmsg_dgram,
+ mmap: sock_no_mmap,
};
static struct proto_ops SOCKOPS_WRAPPED(irda_dgram_ops) = {
- PF_IRDA,
+ family: PF_IRDA,
- irda_release,
- irda_bind,
- irda_connect,
- sock_no_socketpair,
- irda_accept,
- irda_getname,
- datagram_poll,
- irda_ioctl,
- irda_listen,
- irda_shutdown,
- irda_setsockopt,
- irda_getsockopt,
- sock_no_fcntl,
- irda_sendmsg_dgram,
- irda_recvmsg_dgram,
- sock_no_mmap,
+ release: irda_release,
+ bind: irda_bind,
+ connect: irda_connect,
+ socketpair: sock_no_socketpair,
+ accept: irda_accept,
+ getname: irda_getname,
+ poll: datagram_poll,
+ ioctl: irda_ioctl,
+ listen: irda_listen,
+ shutdown: irda_shutdown,
+ setsockopt: irda_setsockopt,
+ getsockopt: irda_getsockopt,
+ sendmsg: irda_sendmsg_dgram,
+ recvmsg: irda_recvmsg_dgram,
+ mmap: sock_no_mmap,
};
#ifdef CONFIG_IRDA_ULTRA
static struct proto_ops SOCKOPS_WRAPPED(irda_ultra_ops) = {
- PF_IRDA,
+ family: PF_IRDA,
- irda_release,
- irda_bind,
- sock_no_connect,
- sock_no_socketpair,
- sock_no_accept,
- irda_getname,
- datagram_poll,
- irda_ioctl,
- sock_no_listen,
- irda_shutdown,
- irda_setsockopt,
- irda_getsockopt,
- sock_no_fcntl,
- irda_sendmsg_ultra,
- irda_recvmsg_dgram,
- sock_no_mmap,
+ release: irda_release,
+ bind: irda_bind,
+ connect: sock_no_connect,
+ socketpair: sock_no_socketpair,
+ accept: sock_no_accept,
+ getname: irda_getname,
+ poll: datagram_poll,
+ ioctl: irda_ioctl,
+ listen: sock_no_listen,
+ shutdown: irda_shutdown,
+ setsockopt: irda_setsockopt,
+ getsockopt: irda_getsockopt,
+ sendmsg: irda_sendmsg_ultra,
+ recvmsg: irda_recvmsg_dgram,
+ mmap: sock_no_mmap,
};
#endif /* CONFIG_IRDA_ULTRA */
diff --git a/net/irda/ircomm/ircomm_tty.c b/net/irda/ircomm/ircomm_tty.c
index ac70091af..d785983da 100644
--- a/net/irda/ircomm/ircomm_tty.c
+++ b/net/irda/ircomm/ircomm_tty.c
@@ -1346,7 +1346,7 @@ static int ircomm_tty_read_proc(char *buf, char **start, off_t offset, int len,
done:
if (offset >= count+begin)
return 0;
- *start = buf + (begin-offset);
+ *start = buf + (offset-begin);
return ((len < begin+count-offset) ? len : begin+count-offset);
}