Commit Graph

40 Commits

Author SHA1 Message Date
Alexandre Ratchov 37ee5aa871 sndiod: replace the gloal opt list with per-device lists. 2018-06-10 22:50:35 +02:00
Tobias Kortkamp 31cfb9b6dc Support rsnd/default for opening the default device 2018-03-02 07:21:41 +01:00
Alexandre Ratchov 044421aad7 Include sys/socket.h to minimize differences with pledged code 2017-01-03 08:50:48 +01:00
Alexandre Ratchov 017e60c967 use setgid() and setuid() 2016-10-24 17:05:47 +02:00
Alexandre Ratchov 33bbca5999 drop privs after daemonizing, reorder clean-up 2016-10-20 07:27:36 +02:00
Alexandre Ratchov 8070eb6272 Remove unused arguments of dev_adjpar(), getbasepath() and all
slotops->onvol() implementations.

From David CARLIER <devnexen at gmail.com>. Thanks.
2016-03-23 07:40:46 +01:00
Alexandre Ratchov f745d41032 revert back to single device by default 2016-01-10 12:05:17 +01:00
Alexandre Ratchov 12dccf8463 check that socket path is a directory 2016-01-09 11:08:18 +01:00
Alexandre Ratchov e20bb8997d remove trailing \n from string passed to err() 2016-01-09 09:56:28 +01:00
Alexandre Ratchov e22e6a1b26 fix trailing spaces 2016-01-08 17:24:48 +01:00
Alexandre Ratchov 400600af2e free tcpaddr structures 2016-01-08 14:39:55 +01:00
Alexandre Ratchov 67bf8b7786 sys/queue.h isn't used 2015-12-30 12:55:18 +01:00
Alexandre Ratchov 18105ebb4c allow listen_new_xxx() to return error, use log_xxx() 2015-12-17 15:50:37 +01:00
Alexandre Ratchov 44eae7129c use log_xxx() in opt.c, use simple list 2015-12-17 12:56:25 +01:00
Alexandre Ratchov 2009e44d9d don't require -U to precede -L 2015-12-15 12:49:31 +01:00
Alexandre Ratchov c77ea93344 Make sndio buildable on NetBSD, from Kamil Rytarowski <n54 at gmx.com> 2015-12-15 06:28:05 +01:00
Alexandre Ratchov fc179fb0c0 inline privdrop() 2015-12-09 11:23:55 +01:00
Alexandre Ratchov 91166d3abf remove -M from getopt() string 2015-12-09 11:16:35 +01:00
Alexandre Ratchov 276b44ece4 save & restore umask when creating socket dir 2015-11-25 20:50:17 +01:00
Alexandre Ratchov a17c9dfc55 missing prototype 2015-11-25 20:47:52 +01:00
Alexandre Ratchov 8bb88f248f if no -f or -q are used, attach rsnd/[0-3] and rmidi/[0-7] 2015-10-20 15:25:54 +02:00
Alexandre Ratchov 0a39548f4d use SOCKPATH_xxx macros 2015-10-02 14:26:46 +02:00
Alexandre Ratchov 8620da44d1 make default bufsz 7680 (was 7860) 2015-04-24 19:44:06 +02:00
Alexandre Ratchov debf3b302c stop using param.h, from deraadt@ 2015-01-18 00:09:04 +01:00
Alexandre Ratchov aa1877d6ef remove unused "autostart" feature 2014-03-05 21:22:05 +01:00
Alexandre Ratchov b1c417ab04 add prototypes 2013-11-18 17:50:04 +01:00
Alexandre Ratchov b3f82753f8 parse mode strings strictly 2012-12-01 13:07:01 +01:00
Alexandre Ratchov 0057424c2b use the hold flag for midi ports as well 2012-11-30 22:02:48 +01:00
Alexandre Ratchov 1081d7208a add a dummy -M for compatibility with aucat 2012-11-23 08:25:58 +01:00
Alexandre Ratchov 40cf11d689 simplify xmalloc & friends 2012-11-11 00:47:00 +01:00
Alexandre Ratchov ca6e1699f3 set default volume to -3dB 2012-11-11 00:26:33 +01:00
Alexandre Ratchov 6b88502d9a fix copyright years 2012-11-10 14:58:53 +01:00
Alexandre Ratchov cd8a3a6075 mem_alloc -> xmalloc 2012-11-03 18:09:50 +01:00
Alexandre Ratchov ab4a96fb39 fix signedness warnings 2012-10-24 14:53:37 +02:00
Alexandre Ratchov 3edbce0c18 fix memory leaks 2012-10-15 18:43:34 +02:00
Alexandre Ratchov 857707b227 allow sndio anonymouse uid to be changed; dont check its home directory 2012-10-07 15:55:52 +02:00
Alexandre Ratchov 832cb8bbe7 Fix midi output "ownership". Check if clockticks are out of bounds to
detect bogus libsndio backends. Use a midithru for device control.
2012-09-26 00:07:28 +02:00
Alexandre Ratchov b77718fd0b simplify manual, remove -x option 2012-09-03 19:59:35 +02:00
Alexandre Ratchov 0a0b1c0b20 move aparams.c contents in dsp.c 2012-09-03 13:20:41 +02:00
Alexandre Ratchov 6ce349176e add new sndiod 2012-09-03 00:13:30 +02:00