[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] floppy & syslogd



On Wed, 2011-08-17 at 19:16 +0000, Peter Slegg wrote:

> > #include <tos.h>
> > #include <stdio.h>
> >
> > void maint(void)
> > {
> >     printf("Dlock() returns: %d\n", Dlock(3, 0));
> > }
> >
> > This is from memory, so I can't guarantee that it compiles ;) But the idea
> > is that Dlock() returns the PID of the process that locks drive 0 (A) if
> > it's already locked.
> >
> > Jo Even
> >
> >
> 
> I need to find tos.h from somewhere.

No, you need to find out where Dlock() is declared in your gcc/mintlib
setup. Maybe it's in mint.h? I don't know, I normally use PureC and
AHCC.

Jo Even