Using mkfifo and C to emulate the /dev file system on OSX

A forum about the Hatari ST/STE emulator - the current version is v2.0.0

Moderators: simonsunnyboy, thothy, Moderator Team

Hippy Dave
Atari Super Hero
Atari Super Hero
Posts: 515
Joined: Sat Jan 10, 2009 5:40 am

Using mkfifo and C to emulate the /dev file system on OSX

Postby Hippy Dave » Tue Dec 10, 2013 8:27 pm

I believe it is possible to write a C program that opens a named pipe for other programs to communicate with it, while this 'program' forwards the raw midi data to the macintosh midi subsystem. The objective is to emulate /dev/midiCxDx in the directory from where this 'program' was launched. This would allow UNIX-style programs like Hatari to communicate with OSX MIDI without modification... putting the UNIX testosterone back into OSX.

I don't have an Apple computer so I can only make suggestions. However, I'm certain this could be a fun challenge, simple enough to whip up in a few days when you get bored.

Here are some hints:
http://stackoverflow.com/questions/1057 ... idi-output
http://stackoverflow.com/questions/2784 ... sing-pipes

Social Media

     

Return to “Hatari”

Who is online

Users browsing this forum: No registered users and 1 guest