Lines Matching refs:port
73 waitForMessage(port_id port,const char *string,int32 op,char *name)
79 ssize_t bytes = read_port_etc(port,&msg,buffer,sizeof(buffer),B_TIMEOUT,1000000);
111 port_id port = create_port(100, "query port");
112 printf("port id = %ld\n", port);
116 DIR *query = fs_open_live_query(device, "name=_query_test_*", B_LIVE_QUERY, port, 12345);
119 waitForMessage(port, "File 1 created:", B_ENTRY_CREATED, "_query_test_1");
122 waitForMessage(port, "File 2 created:", B_ENTRY_CREATED, "_query_test_2");
131 waitForMessage(port,"File 2 renamed (should fall out of query):", B_ENTRY_REMOVED, NULL);
134 waitForMessage(port,"File 2 renamed again (should time out):", B_TIMED_OUT, NULL);
137 waitForMessage(port,"File 2 renamed back (should be added to query):",
141 status_t status = waitForMessage(port,"File 2 renamed (should stay in query, time out):",
144 waitForMessage(port,"Received B_ENTRY_REMOVED, now expecting file 2 to be added again:",
150 waitForMessage(port,"File 2 removed:", B_ENTRY_REMOVED, NULL);
160 waitForMessage(port, "File 1 renamed (should fall out of query):", B_ENTRY_REMOVED, NULL);
164 waitForMessage(port, "File 1 removed (should time out):", B_TIMED_OUT, NULL);