Lines Matching refs:x_fd
46 int x_fd; /* The open file */ member
140 xp->x_fd = fd; in newladobject()
151 if (xp->x_fd != -1) in lad_dealloc()
152 close(xp->x_fd); in lad_dealloc()
169 if ((count = read(self->x_fd, cp, size)) < 0) { in lad_read()
193 FD_SET(self->x_fd, &write_set_fds); in lad_write()
198 select_retval = select(self->x_fd+1, NULL, &write_set_fds, NULL, &tv); in lad_write()
201 if ((rv = write(self->x_fd, cp, size)) == -1) { in lad_write()
226 if (self->x_fd >= 0) { in lad_close()
227 close(self->x_fd); in lad_close()
228 self->x_fd = -1; in lad_close()
236 return PyInt_FromLong(self->x_fd); in lad_fileno()
286 if (ioctl(self->x_fd, SNDCTL_DSP_SETFMT, in lad_setparameters()
291 if (ioctl(self->x_fd, SNDCTL_DSP_CHANNELS, &nchannels) == -1) { in lad_setparameters()
295 if (ioctl(self->x_fd, SNDCTL_DSP_SPEED, &rate) == -1) { in lad_setparameters()
310 if (ioctl(self->x_fd, SNDCTL_DSP_SETFMT, &fmt) < 0) in _ssize()
331 if (ioctl(self->x_fd, SNDCTL_DSP_CHANNELS, nchannels) < 0) in _ssize()
349 if (ioctl(self->x_fd, SNDCTL_DSP_GETOSPACE, &ai) < 0) { in lad_bufsize()
368 if (ioctl(self->x_fd, SNDCTL_DSP_GETOSPACE, &ai) < 0) { in lad_obufcount()
388 if (ioctl(self->x_fd, SNDCTL_DSP_GETOSPACE, &ai) < 0) { in lad_obuffree()
399 if (ioctl(self->x_fd, SNDCTL_DSP_SYNC, NULL) == -1) { in lad_flush()
416 if (ioctl(self->x_fd, req, &info) == -1) { in lad_getptr()