예제 #1
0
asmlinkage int sunos_recv(int fd, u32 ubuf, int size, unsigned flags)
{
	int ret;

	ret = check_nonblock(sys_recv(fd, (void *)A(ubuf), size, flags), fd);
	return ret;
}
예제 #2
0
asmlinkage int sunos_send(int fd, u32 buff, int len, unsigned flags)
{
	int ret;

	ret = check_nonblock(sys_send(fd, (void *)A(buff), len, flags), fd);
	return ret;
}
예제 #3
0
asmlinkage int sunos_write(unsigned int fd, u32 buf, u32 count)
{
	int ret;

	ret = check_nonblock(sys_write(fd, (char *)A(buf), count), fd);
	return ret;
}
예제 #4
0
asmlinkage int sunos_writev(u32 fd, u32 vector, s32 count)
{
	int ret;

	ret = check_nonblock(sys32_writev(fd, vector, count), fd);
	return ret;
}
예제 #5
0
asmlinkage int sunos_recv(int fd, void __user *ubuf, int size, unsigned flags)
{
    int ret;

    ret = check_nonblock(sys_recv(fd,ubuf,size,flags),fd);
    return ret;
}
예제 #6
0
asmlinkage int sunos_send(int fd, void __user *buff, int len, unsigned flags)
{
    int ret;

    ret = check_nonblock(sys_send(fd,buff,len,flags),fd);
    return ret;
}
예제 #7
0
asmlinkage int sunos_write(unsigned int fd, char __user *buf, int count)
{
    int ret;

    ret = check_nonblock(sys_write(fd,buf,count),fd);
    return ret;
}
예제 #8
0
asmlinkage int sunos_writev(u32 fd, void __user *vector, s32 count)
{
	int ret;

	ret = check_nonblock(compat_sys_writev(fd, vector, count), fd);
	return ret;
}
예제 #9
0
asmlinkage int sunos_read(unsigned int fd, char __user *buf, u32 count)
{
	int ret;

	ret = check_nonblock(sys_read(fd, buf, count), fd);
	return ret;
}
예제 #10
0
asmlinkage int sunos_writev(unsigned long fd,
                            const struct iovec __user *vector, long count)
{
    int ret;

    ret = check_nonblock(sys_writev(fd,vector,count),fd);
    return ret;
}
예제 #11
0
asmlinkage int sunos_accept(u32 __fd, struct sockaddr __user *sa, int __user *addrlen)
{
	int ret, fd = (int) __fd;

	while (1) {
		ret = check_nonblock(sys_accept(fd, sa, addrlen), fd);
		if (ret != -ENETUNREACH && ret != -EHOSTUNREACH)
			break;
	}
	return ret;
}
예제 #12
0
asmlinkage int sunos_accept(int fd, u32 sa, u32 addrlen)
{
	int ret;

	while (1) {
		ret = check_nonblock(sys_accept(fd, (struct sockaddr *)A(sa),
						(int *)A(addrlen)), fd);
		if (ret != -ENETUNREACH && ret != -EHOSTUNREACH)
			break;
	}
	return ret;
}