Lines Matching defs:err
287 int err;
289 err = snd_pcm_open(&pcm, client->name, client->stream, SND_PCM_NONBLOCK);
290 if (err < 0)
291 return err;
324 int err;
330 err = snd_pcm_close(client->device.pcm.handle);
331 ctrl->result = err;
332 if (err < 0)
335 err = shmdt((void *)client->transport.shm.ctrl);
336 if (err < 0)
338 err = shmctl(client->transport.shm.ctrl_id, IPC_RMID, 0);
339 if (err < 0)
350 int err;
356 err = write(client->ctrl_fd, buf, 1);
357 if (err != 1)
365 int err;
371 err = snd_send_fd(client->ctrl_fd, buf, 1, fd);
372 if (err != 1)
395 int err;
398 err = read(client->ctrl_fd, buf, 1);
399 if (err != 1)
552 int err;
554 err = snd_ctl_open(&ctl, client->name, SND_CTL_NONBLOCK);
555 if (err < 0)
556 return err;
587 int err;
593 err = snd_ctl_close(client->device.ctl.handle);
594 ctrl->result = err;
595 if (err < 0)
598 err = shmdt((void *)client->transport.shm.ctrl);
599 if (err < 0)
601 err = shmctl(client->transport.shm.ctrl_id, IPC_RMID, 0);
602 if (err < 0)
614 int err;
617 err = read(client->ctrl_fd, buf, 1);
618 if (err != 1)
727 int err;
732 err = read(client->ctrl_fd, &req, sizeof(req));
733 if (err < 0) {
737 if (err != sizeof(req)) {
742 err = read(client->ctrl_fd, name, req.namelen);
743 if (err < 0) {
747 if (err != req.namelen) {
786 err = client->ops->open(client, &ans.cookie);
787 if (err < 0) {
788 ans.result = err;
795 err = write(client->ctrl_fd, &ans, sizeof(ans));
796 if (err != sizeof(ans)) {
846 int err = read(waiter->fd, &cookie, sizeof(cookie));
847 if (err != sizeof(cookie))
850 err = write(waiter->fd, &cookie, sizeof(cookie));
851 if (err != sizeof(cookie))
926 int err, result, sockn = -1, socki = -1;
978 err = poll(pollfds, pollfds_count, -1);
979 } while (err == 0);
980 if (err < 0) {
993 err = w->handler(w, pfd->revents);
994 if (err < 0)
1029 int err;
1047 err = snd_config_update();
1048 if (err < 0) {
1053 err = snd_config_search_definition(snd_config, "server", srvname, &conf);
1054 if (err < 0) {
1072 err = snd_config_get_string(n, &sockname);
1073 if (err < 0) {
1080 err = snd_config_get_integer(n, &port);
1081 if (err < 0) {