diff options
-rw-r--r-- | lisplib.c | 1 | ||||
-rw-r--r-- | socket.c | 3 | ||||
-rw-r--r-- | txr.1 | 2 |
3 files changed, 5 insertions, 1 deletions
@@ -344,6 +344,7 @@ static val sock_set_entries(val dlt, val fun) lit("ai-numericserv"), lit("str-inaddr"), lit("str-in6addr"), lit("str-inaddr-net"), lit("str-in6addr-net"), + lit("shut-rd"), lit("shut-wr"), lit("shut-rdwr"), lit("open-socket"), lit("open-socket-pair"), lit("sock-bind"), lit("sock-connect"), lit("sock-listen"), lit("sock-accept"), lit("sock-shutdown"), lit("open-socket"), @@ -1114,6 +1114,9 @@ void sock_load_init(void) reg_varl(intern(lit("ai-addrconfig"), user_package), num_fast(AI_ADDRCONFIG)); reg_varl(intern(lit("ai-numericserv"), user_package), num_fast(AI_NUMERICSERV)); #endif + reg_varl(intern(lit("shut-rd"), user_package), num_fast(SHUT_RD)); + reg_varl(intern(lit("shut-wr"), user_package), num_fast(SHUT_WR)); + reg_varl(intern(lit("shut-rdwr"), user_package), num_fast(SHUT_RDWR)); reg_fun(intern(lit("sock-bind"), user_package), func_n2(sock_bind)); reg_fun(intern(lit("sock-connect"), user_package), func_n3o(sock_connect, 2)); @@ -62096,7 +62096,7 @@ The .code direction parameter is one of the values given by the variables .codn shut-rd , -.code shut-rw +.code shut-wr or .codn shut-rdwr . These values shut down communication in the read direction, write direction, |