lkml.org 
[lkml]   [1998]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjecta ld_preload to get rvplayer working
An easy fix to get RealPlayer working with the development kernels is to
compile this program as a shared library and LD_PRELOAD it before running
rvplayer. What it does is turnes off the nonblocking bit for all open()s.
Works for me using glibc 2.1

#define O_NONBLOCK 04000
extern int libc_open(const char *, int);
int open(const char *pathname, int flags)
{
if (flags & O_NONBLOCK)
flags &= ~O_NONBLOCK;
return(__open(pathname, flags));
}

Compile it with "gcc -c open.c -o open.o ; ld -shared open.o -o open.so"
Then run run rvplayer with "LD_PRELOAD=/path/open.so /path/rvplayer"
Works for me anyway, and I don't have to reboot to listen to broadcasts.

Paul Laufer

BTW, that code isn't mine, I saw it on slashdot a while back . . .

> > > because real would never have fixed the bug until we changed the kernel,
> > > they;ve had about 3 months notice.
> >
> > This reminds me of Microsoft's behavior. Just look at the
> > programs that no longer works with winblows 98.
>
> This is a documented change, they've been told about it and it fixes a real
> bug that hits other programs. So its a collection of correct programs versus
> a buggy realaudio client - no contest


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.096 / U:0.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site