History log of /openbsd/lib/libsndio/mio_rmidi.c (Results 1 – 25 of 28)
Revision Date Author Comments
# 95d14907 29-Jun-2019 ratchov <ratchov@openbsd.org>

Check if syscalls return -1 instead of any negative value.

"Looks right" deraadt


# e08793ab 19-Sep-2018 miko <miko@openbsd.org>

fix message to reflect "rmidi" is the expected string; ok ratchov@


# 58aaf78f 19-Sep-2018 miko <miko@openbsd.org>

sys/stat.h not needed here; ok ratchov@


# ad6eeec3 04-Nov-2017 ratchov <ratchov@openbsd.org>

polish debug printfs, no behaviour change.


# e8cc0bfd 09-Jan-2016 ratchov <ratchov@openbsd.org>

Make code fit in 80 columns, remove trailing spaces & tabs.


# bde5d162 20-Dec-2015 ratchov <ratchov@openbsd.org>

Expose internal functions necessary to open audio devices and midi
ports using existing file descriptors.


# 4aaa725d 30-Nov-2015 ratchov <ratchov@openbsd.org>

MIO_IN needs O_RDONLY, not O_WRONLY


# 6dcfe4ec 24-Nov-2015 ratchov <ratchov@openbsd.org>

Fix confusion between SIO_xxx and MIO_xxx options (copy & paste error).


# 163486f8 22-Nov-2015 ratchov <ratchov@openbsd.org>

Don't remove the type component from the device string before passing
it to the *_open() functions. It's more flexible this way. No behaviour
change.


# b44cb2ca 02-Oct-2015 ratchov <ratchov@openbsd.org>

Validate that midi and audio device numbers are integers.


# 28996f62 02-Oct-2015 ratchov <ratchov@openbsd.org>

As device path is known, use its size instead of PATH_MAX


# 130e1f1b 02-Oct-2015 ratchov <ratchov@openbsd.org>

Use macros for audio and midi device paths rather than hardcoded
strings. No object change.


# d41151b1 02-Oct-2015 ratchov <ratchov@openbsd.org>

fix typo in debug message


# 69461d17 16-Feb-2015 ratchov <ratchov@openbsd.org>

Drop yet another hook for ':' char in midi device names.


# 0205f8e6 15-Aug-2014 guenther <guenther@openbsd.org>

Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)
on it, simplifying error checking, reducing system calls, and improving
thread-safety for libraries.

ok miod@


# d418f94b 13-Nov-2013 ratchov <ratchov@openbsd.org>

Prefix by '_' symbols that are not part of the API.

ok deraadt, guenther


# cfb56cbf 27-Oct-2012 ratchov <ratchov@openbsd.org>

make midi code use non-blocking i/o as does audio code, in order
to make both look similar


# 7207b069 11-Apr-2012 ratchov <ratchov@openbsd.org>

Use "unsigned int" rather than "unsigned". No object change.
suggested by deraadt@


# b3956098 15-Nov-2011 ratchov <ratchov@openbsd.org>

Add a "device number" component in sndio(7) device names, allowing a
single aucat instance to handle all audio and MIDI services. Since
this partially breaks compatibility, this is a opportunitiy to

Add a "device number" component in sndio(7) device names, allowing a
single aucat instance to handle all audio and MIDI services. Since
this partially breaks compatibility, this is a opportunitiy to fix few
other design mistakes (eg ':' being used by inet6, type name vs api
name confusion, etc..). This leads to the following names:

type[@hostname][,unit]/devnum[.option]

The device number is the minor device number for direct hardware
access (ie the 'N' in /dev/audioN). For aucat, this is the occurence
number of the -f (or -M) option.

There's a compatibility hook to keep old names working if only one
aucat server is running.

show more ...


# 82bfc72b 16-Apr-2011 ratchov <ratchov@openbsd.org>

Make aucat audio and midi backends share the same code to communicate
with the server. As we're at it use the same protocol for midi and
audio. Now, both audio and midi code use the same SNDIO_DEBUG

Make aucat audio and midi backends share the same code to communicate
with the server. As we're at it use the same protocol for midi and
audio. Now, both audio and midi code use the same SNDIO_DEBUG environment
variable to turn on/off DPRINTF's.

show more ...


# dd964a88 12-Apr-2011 ratchov <ratchov@openbsd.org>

Use mio_<backend>_ prefix for private midi-related functions and put
them in files named mio_<backend>.c
No behaviour change.


# a22a545c 21-Jul-2010 ratchov <ratchov@openbsd.org>

remove unnecessary ``return 0'' statements,
from Remco <remco at d-compu.dyndns.org>, thanks!


# 7e5df7e4 24-Apr-2010 ratchov <ratchov@openbsd.org>

remove trailing spaces, from Alexandr Shadchin, thanks


# 9d75d49d 01-Aug-2009 ratchov <ratchov@openbsd.org>

honor non-blocking flag in mio_open_rmidi(), fixes programs
eating 100% CPU while trying to use blocking i/o.
ok jakemsr


# ee5ea84a 26-Jul-2009 ratchov <ratchov@openbsd.org>

Make ``static'' few functions that are prototyped as static but are not
defined as such
from Thomas Pfaff


12