Lines Matching refs:x_fd
27 int x_fd; /* The open file */ member
113 xp->x_fd = fd; in newsadobject()
125 close(xp->x_fd); in sad_dealloc()
145 count = read(self->x_fd, cp, size); in sad_read()
175 count = write(self->x_fd, cp, size); in sad_write()
198 if (ioctl(self->x_fd, AUDIO_GETINFO, &rv->ai) < 0) { in sad_getinfo()
214 if (ioctl(self->x_fd, AUDIO_SETINFO, &arg->ai) < 0) { in sad_setinfo()
227 if (ioctl(self->x_fd, AUDIO_GETINFO, &ai) < 0) { in sad_ibufcount()
239 if (ioctl(self->x_fd, AUDIO_GETINFO, &ai) < 0) { in sad_obufcount()
253 if (ioctl(self->x_fd, AUDIO_DRAIN, 0) < 0) { in sad_drain()
267 if (ioctl(self->x_fd, AUDIO_GETDEV, &ad) < 0) { in sad_getdev()
278 if (ioctl(self->x_fd, I_FLUSH, FLUSHW) < 0) { in sad_flush()
290 if (self->x_fd >= 0) { in sad_close()
291 close(self->x_fd); in sad_close()
292 self->x_fd = -1; in sad_close()
301 return PyInt_FromLong(self->x_fd); in sad_fileno()