Home
last modified time | relevance | path

Searched refs:x_fd (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
Dlinuxaudiodev.c46 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()
[all …]
Dsunaudiodev.c27 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()
[all …]