Lines Matching refs:new
65 evStream *new; in evWrite() local
68 OKNEW(new); in evWrite()
69 new->func = func; in evWrite()
70 new->uap = uap; in evWrite()
71 new->fd = fd; in evWrite()
72 new->flags = 0; in evWrite()
73 if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0) in evWrite()
75 if (copyvec(new, iov, iocnt) < 0) in evWrite()
77 new->prevDone = NULL; in evWrite()
78 new->nextDone = NULL; in evWrite()
80 ctx->streams->prev = new; in evWrite()
81 new->prev = NULL; in evWrite()
82 new->next = ctx->streams; in evWrite()
83 ctx->streams = new; in evWrite()
85 id->opaque = new; in evWrite()
89 FREE(new); in evWrite()
99 evStream *new; in evRead() local
102 OKNEW(new); in evRead()
103 new->func = func; in evRead()
104 new->uap = uap; in evRead()
105 new->fd = fd; in evRead()
106 new->flags = 0; in evRead()
107 if (evSelectFD(opaqueCtx, fd, EV_READ, readable, new, &new->file) < 0) in evRead()
109 if (copyvec(new, iov, iocnt) < 0) in evRead()
111 new->prevDone = NULL; in evRead()
112 new->nextDone = NULL; in evRead()
114 ctx->streams->prev = new; in evRead()
115 new->prev = NULL; in evRead()
116 new->next = ctx->streams; in evRead()
117 ctx->streams = new; in evRead()
119 id->opaque = new; in evRead()
123 FREE(new); in evRead()