struct smbd_server_connection *sconn;
int write_fd;
int read_fd;
- struct fd_event *read_fde;
+ struct tevent_fd *read_fde;
bool pending;
};
tmpname = talloc_asprintf(ctx,
"%s/koplock.%d",
- lp_lockdir(),
+ lp_lock_directory(),
(int)getpid());
if (!tmpname) {
TALLOC_FREE(ctx);
return False;
}
- if((fd = sys_open(tmpname, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600)) < 0) {
+ if((fd = open(tmpname, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600)) < 0) {
DEBUG(0,("check_kernel_oplocks: Unable to open temp test file "
"%s. Error was %s\n",
tmpname, strerror(errno) ));
}
}
-static void irix_oplocks_read_fde_handler(struct event_context *ev,
- struct fd_event *fde,
+static void irix_oplocks_read_fde_handler(struct tevent_context *ev,
+ struct tevent_fd *fde,
uint16_t flags,
void *private_data)
{
ctx->read_fd = pfd[0];
ctx->write_fd = pfd[1];
- ctx->read_fde = event_add_fd(sconn->ev_ctx,
+ ctx->read_fde = tevent_add_fd(sconn->ev_ctx,
ctx,
ctx->read_fd,
- EVENT_FD_READ,
+ TEVENT_FD_READ,
irix_oplocks_read_fde_handler,
ctx);
return _ctx;