| version 1.206, 2011/12/20 23:56:28 |
version 1.207, 2012/01/25 00:28:36 |
| Line 589 fsocreate(int domain, struct socket **so |
|
| Line 589 fsocreate(int domain, struct socket **so |
|
| if ((error = fd_allocfile(&fp, &fd)) != 0) |
if ((error = fd_allocfile(&fp, &fd)) != 0) |
| return error; |
return error; |
| fd_set_exclose(l, fd, (flags & SOCK_CLOEXEC) != 0); |
fd_set_exclose(l, fd, (flags & SOCK_CLOEXEC) != 0); |
| fp->f_flag = FREAD|FWRITE|((flags & SOCK_NONBLOCK) ? FNONBLOCK : 0); |
fp->f_flag = FREAD|FWRITE|((flags & SOCK_NONBLOCK) ? FNONBLOCK : 0)| |
| |
((flags & SOCK_NOSIGPIPE) ? FNOSIGPIPE : 0); |
| fp->f_type = DTYPE_SOCKET; |
fp->f_type = DTYPE_SOCKET; |
| fp->f_ops = &socketops; |
fp->f_ops = &socketops; |
| error = socreate(domain, &so, type, protocol, l, NULL); |
error = socreate(domain, &so, type, protocol, l, NULL); |
| Line 1719 sosetopt1(struct socket *so, const struc |
|
| Line 1720 sosetopt1(struct socket *so, const struc |
|
| case SO_REUSEPORT: |
case SO_REUSEPORT: |
| case SO_OOBINLINE: |
case SO_OOBINLINE: |
| case SO_TIMESTAMP: |
case SO_TIMESTAMP: |
| |
case SO_NOSIGPIPE: |
| #ifdef SO_OTIMESTAMP |
#ifdef SO_OTIMESTAMP |
| case SO_OTIMESTAMP: |
case SO_OTIMESTAMP: |
| #endif |
#endif |
| Line 1919 sogetopt1(struct socket *so, struct sock |
|
| Line 1921 sogetopt1(struct socket *so, struct sock |
|
| case SO_BROADCAST: |
case SO_BROADCAST: |
| case SO_OOBINLINE: |
case SO_OOBINLINE: |
| case SO_TIMESTAMP: |
case SO_TIMESTAMP: |
| |
case SO_NOSIGPIPE: |
| #ifdef SO_OTIMESTAMP |
#ifdef SO_OTIMESTAMP |
| case SO_OTIMESTAMP: |
case SO_OTIMESTAMP: |
| #endif |
#endif |