Lines Matching refs:printf
101 printf("%d: socket()\n", gettid()); in _socket()
103 printf("%d: socket() = %d\n", gettid(), ret); in _socket()
104 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); in _socket()
112 printf("%d: close(%d)\n", gettid(), fd); in _close()
114 printf("%d: close(%d) = %d\n", gettid(), fd, ret); in _close()
115 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); in _close()
149 printf("%d: bind(%d)\n", gettid(), fd); in _bind()
151 printf("%d: bind(%d) = %d\n", gettid(), fd, ret); in _bind()
152 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); in _bind()
160 printf("%d: listen(%d)\n", gettid(), fd); in _listen()
162 printf("%d: listen(%d) = %d\n", gettid(), fd, ret); in _listen()
163 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); in _listen()
196 printf("%d: accept(%d)\n", gettid(), fd); in _accept()
198 printf("%d: accept(%d) = %d\n", gettid(), fd, ret); in _accept()
199 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); in _accept()
201 printf("\tlen = %d\n", len); in _accept()
210 printf("%d: shutdown(%d)\n", gettid(), fd); in _shutdown()
212 printf("%d: shutdown(%d) = %d\n", gettid(), fd, ret); in _shutdown()
213 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); in _shutdown()
219 printf("%d: START\n", gettid()); in thread_accept()
222 printf("%d: END\n", gettid()); in thread_accept()
276 printf("sock_shutdown_test TYPE ACTION\n"); in usage()
277 printf("\nTYPE:\n"); in usage()
279 printf("\t%s\n", type_table[i].name); in usage()
281 printf("\nACTION:\n"); in usage()
283 printf("\t%s\n", action_table[i].name); in usage()
307 printf("TYPE = %s ACTION = %s\n", type_table[type].name, in main()