Lines Matching refs:port
35 #include <port.h>
43 int port = port_create();
44 if (port == -1) {
47 return (jint)port;
52 (JNIEnv* env, jclass clazz, jint port)
55 RESTARTABLE(close(port), res);
60 (JNIEnv* env, jclass clazz, jint port, jint source, jlong objectAddress, jint events)
63 if (port_associate((int)port, (int)source, object, (int)events, NULL) == 0) {
74 (JNIEnv* env, jclass clazz, jint port, jint source, jlong objectAddress)
78 if (port_dissociate((int)port, (int)source, object) == 0) {
89 jint port, jint events)
91 if (port_send((int)port, (int)events, NULL) == -1) {
98 jint port, jlong eventAddress)
103 RESTARTABLE(port_get((int)port, ev, NULL), res);
111 jint port, jlong arrayAddress, jint max, jlong timeout)
127 res = port_getn((int)port, list, (uint_t)max, &n, tsp);