Lines Matching refs:new
71 evStream *new; in evWrite() local
74 OKNEW(new); in evWrite()
75 new->func = func; in evWrite()
76 new->uap = uap; in evWrite()
77 new->fd = fd; in evWrite()
78 new->flags = 0; in evWrite()
79 if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0) in evWrite()
81 if (copyvec(new, iov, iocnt) < 0) in evWrite()
83 new->prevDone = NULL; in evWrite()
84 new->nextDone = NULL; in evWrite()
86 ctx->streams->prev = new; in evWrite()
87 new->prev = NULL; in evWrite()
88 new->next = ctx->streams; in evWrite()
89 ctx->streams = new; in evWrite()
91 id->opaque = new; in evWrite()
95 FREE(new); in evWrite()
105 evStream *new; in evRead() local
108 OKNEW(new); in evRead()
109 new->func = func; in evRead()
110 new->uap = uap; in evRead()
111 new->fd = fd; in evRead()
112 new->flags = 0; in evRead()
113 if (evSelectFD(opaqueCtx, fd, EV_READ, readable, new, &new->file) < 0) in evRead()
115 if (copyvec(new, iov, iocnt) < 0) in evRead()
117 new->prevDone = NULL; in evRead()
118 new->nextDone = NULL; in evRead()
120 ctx->streams->prev = new; in evRead()
121 new->prev = NULL; in evRead()
122 new->next = ctx->streams; in evRead()
123 ctx->streams = new; in evRead()
125 id->opaque = new; in evRead()
129 FREE(new); in evRead()