̾??
shutdown
—
????????³?ΰ??????åȥ?????
Standard C Library (libc, -lc)
shutdown
()
?????ƥॳ?????ˤ??ꡢ?ե????뵭?һ?
s
?˴?Ϣ???륽???åȤ?????????³???????????????????åȥ??????ޤ???
???? how
?ǥ????åȥ??????Υ????פ????ꤷ?ޤ???
??ǽ???ͤϰʲ??ΤȤ????Ǥ?:
SHUT_RD
- ?????ʹߤμ??????Ǥ??ʤ??ʤ??ޤ???
SHUT_WR
- ?????ʹߤ????????Ǥ??ʤ??ʤ??ޤ???
SHUT_RDWR
- ?????ʹߤ??????????Ǥ??ʤ??ʤ??ޤ???
The shutdown
() function returns the
value 0 if successful; otherwise the value -1 is returned and
the global variable errno is set to indicate the
error.
shutdown
()
?????ƥॳ?????ϡ????ξ????˼??Ԥ??ޤ?:
- [
EBADF
]
- ???? s
??ͭ???ʵ??һҤǤϤ????ޤ?????
- [
EINVAL
]
- ???? how
??ͭ?????ͤǤϤ????ޤ?????
- [
ENOTCONN
]
- ?????åȤ???³?????Ƥ??ޤ?????
- [
ENOTSOCK
]
- ???? s
?ϥ????åȤȤ??Ƥ??ޤ?????
shutdown
()
?????ƥॳ?????ϡ????????ˤ? IEEE
Std 1003.1g-2000 (“POSIX.1g”)
??Ŭ?礷?Ƥ??ޤ???
shutdown
()
?????ƥॳ?????ϡ? 4.2BSD
???о줷?ޤ????? ???? SHUT_RD
,
SHUT_WR
, SHUT_RDWR
?ϡ? IEEE Std 1003.1g-2000
(“POSIX.1g”) ???ɲä????ޤ?????