[9fans] AC97 Driver Bug (w/FIX)

2009-03-02 Thread James Tomaschke

More info here:
http://jtomaschke.blogspot.com/2009/02/plan9-ac97-driver-bug.html

This is based on mason's contrib ac97.tgz.  I placed my code above the 
if/elseif to provide it with an initial state in case both tests fail.


After this, kvm -soundhw ac97 gave me audio in my virtual environment.

/james
begin:vcard
fn:James Tomaschke
n:Tomaschke;James
org:Orca Systems, Inc.
adr:;;13025 Danielson Street, Suite 106;Poway;CA;92064;USA
email;internet:ja...@orcasystems.com
title:Snr. Software Engr.
tel;work:858.679.9335
tel;fax:858.679.9452
x-mozilla-html:FALSE
url:http://www.orcasystems.com
version:2.1
end:vcard



Re: [9fans] type signatures

2009-03-02 Thread Charles Forsyth
that seems correct. if you want an incomplete type, you can specify that
(with pragma incomplete).--- Begin Message ---
Hi,

I get a different type sygnature depending on weather the arg to a function
contains members which are in scope or not - is this expected or a bug?

for example:

/* junk.c */
typedef struct unknown unknown;
#ifdef DEF
struct unknown {
int a;
};
#endif

typedef struct arg arg;
struct arg {
unknown *u; // Note pointer, not instance
};

void
func(arg a)
{
USED(a);
}

larch% 8c -T t.c && nm -T junk.8
b0b8ed37  T func
larch% 8c -T -DDEF t.c && nm -T junk.8
763b103c  T func

-Steve--- End Message ---


Re: [9fans] hyphen.tex

2009-03-02 Thread Steve Simon
> you are missing /sys/lib/texmf/tex/generic/hyphen.tex [sic].

on the nose,

Thanks Russ.

-Steve



Re: [9fans] type signatures

2009-03-02 Thread Steve Simon
> Isn't this what
> #pragma incomplete
> is for?

yep, I completely forgot about it.

Thanks,

-Steve



Re: [9fans] my /dev/time for Linux

2009-03-02 Thread J.R. Mauro
Two things. First, I had to include  to get this to
build on my machine with 2.6.28 and second, do you have any plans to
get this accepted upstream?

Thanks for putting the time into this!

On Sat, Feb 28, 2009 at 11:57 PM, Chris Brannon  wrote:
> I wrote a module that emulates Plan 9's /dev/time under Linux.
> Reading /dev/time yields 4 decimal numbers: seconds since start of epoch,
> nanoseconds since start of epoch, jiffies since boot, and jiffies per second.
> As with Plan 9, one can set the clock by writing a decimal number to the
> device.  The value represents the number of seconds
> since the start of the epoch.
> The interesting aspect is that users other than root can set the clock
> if they have write access to /dev/time.
>
> The code is here: http://members.cox.net/cmbrannon/devtime.tgz
> It may have issues.  Read it before using.  Comments are welcome.
>
> -- Chris
>
>



[9fans] type signatures

2009-03-02 Thread Fco. J. Ballesteros
Isn't this what
#pragma incomplete
is for?

>  From: st...@quintile.net
>  To: 9fans@9fans.net
>  Reply-To: 9fans@9fans.net
>  Date: Mon Mar  2 16:24:23 CET 2009
>  Subject: [9fans] type signatures
>  
>  Hi,
>  
>  I get a different type sygnature depending on weather the arg to a function
>  contains members which are in scope or not - is this expected or a bug?
>  
>  for example:
>  
>  /* junk.c */
>  typedef struct unknown unknown;
>  #ifdef DEF
>  struct unknown {
>   int a;
>  };
>  #endif
>  
>  typedef struct arg arg;
>  struct arg {
>   unknown *u; // Note pointer, not instance
>  };
>  
>  void
>  func(arg a)
>  {
>   USED(a);
>  }
>  
>  larch% 8c -T t.c && nm -T junk.8
>  b0b8ed37 T func
>  larch% 8c -T -DDEF t.c && nm -T junk.8
>  763b103c T func
>  
>  -Steve



Re: [9fans] netbook ( no cd ) install help

2009-03-02 Thread Latchesar Ionkov
The image that I have is equivalent to the Plan9 floppy disk. You need
to have the content of the distribution copied somewhere on the hard
disk, or install from the network.

Thanks,
   Lucho


On Sun, Mar 1, 2009 at 4:14 PM, Federico G. Benavento
 wrote:
> On Sun, Mar 1, 2009 at 7:45 PM, Latchesar Ionkov  wrote:
>> Booting from a USB flash drive is possible (if the BIOS supports
>> booting from USB), but a bit tricky. I had to make few small changes
>> in 9load. I have an image somewhere, if anybody is interested in
>> trying it I can try to find it.
>>
> what do you do when you have to point where fossil is to the kernel?
>
> --
> Federico G. Benavento
>
>



[9fans] type signatures

2009-03-02 Thread Steve Simon
Hi,

I get a different type sygnature depending on weather the arg to a function
contains members which are in scope or not - is this expected or a bug?

for example:

/* junk.c */
typedef struct unknown unknown;
#ifdef DEF
struct unknown {
int a;
};
#endif

typedef struct arg arg;
struct arg {
unknown *u; // Note pointer, not instance
};

void
func(arg a)
{
USED(a);
}

larch% 8c -T t.c && nm -T junk.8
b0b8ed37  T func
larch% 8c -T -DDEF t.c && nm -T junk.8
763b103c  T func

-Steve



Re: [9fans] Visual font viewer

2009-03-02 Thread roger peppe
i think it was me. a quick
check of dump gives july 2003 for the creation date.
it was only an hour or so's work - the UI
could be better!

2009/3/1 Steve Simon :
>> Is there a program that will render some subset of a font file so that
>> you get a quick feel for what it looks like?
>
> I have somthing I picked off the net years ago - I didn't
> write it. If the author reads this I am happy to credit them
> with their work, but in the meantime:
>
> /n/sources/contrib/steve/fontshow.c
>
> -Seve
>
>



Re: [9fans] Mail configuration

2009-03-02 Thread Mathieu Lonjaret
factotum -g 'key=mykey proto=pass service=imap server=yourserverurl 
user=yourimapusername !password?'

then 

mailfs yourserverurl

or, if you want tls: 

mailfs -t yourserverurl 

Once it has returned, you can use as a ui the Mail command in acme
for example.

Cheers,
Mathieu
--- Begin Message ---
On Fri, 2009-02-20 at 03:06 -0800, Russ Cox rsc-at-swtch.com |9fans|
wrote:
> I didn't bring over upas/fs.
> There is a separate program, not installed
> by default, in src/cmd/upas/nfs (n=new)
> that speaks only imap.  When installed, its
> name is mailfs.  It works with the nedmail
> and acme Mail that are in the plan9port
> distribution; the file tree is slightly different
> than the standard upas/fs (more faithful to imap).
> It downloads pieces of the message as it
> needs them, so if you have big attachments,
> they don't get downloaded until you ask for them.
> Messages saved with the Save command
> go into imap folders, not local files.
> I used this setup for a few years against a dovecot
> imap server.  It does not work against the
> gmail imap server, because gmail imap
> will not serve the full mime tree of the message;
> it only gives you the raw message bytes.
> 
> Russ
> 

I must be getting dumber, but while I think I successfully built and
installed src/cmd/upas/nfs as mailfs (P9P on debian/testing linux), I
have failed to figure out how to get it to talk to my dovecot server.
Can someone post an example of the command-line they use to run it
(perhaps with a short explanation of the arguments)?

thanks,
Peter Canning


--- End Message ---


Re: [9fans] Mail configuration

2009-03-02 Thread sqweek
2009/3/2  <6o205z...@sneakemail.com>:
> I must be getting dumber, but while I think I successfully built and
> installed src/cmd/upas/nfs as mailfs (P9P on debian/testing linux), I
> have failed to figure out how to get it to talk to my dovecot server.
> Can someone post an example of the command-line they use to run it
> (perhaps with a short explanation of the arguments)?

9 mailfs -t mail1.dugeo.com

 mail1.dugeo.com being the imap server, can't remember what the -t
represents. Maybe TLS - I did have to patch imap.c so it could find
stunnel (not being root I installed it in my home dir). Also note that
it wants stunnel-3. stunnel-4, in a remarkable demonstration of
software progress, only accepts one command-line argument: the name of
a config file. There's a third party perl script floating around that
wraps stunnel-4 and accepts stunnel-3 arguments.
-sqweek



[9fans] Boot from USB

2009-03-02 Thread Nino on NetBSD 4.0
Dear All,

I am reading in your discussions, and also on some places on the net, that it 
is, in fact, possible to boot plan 9 off a USB key, but that it is not very 
straightforward. Is there any particular tutorial/guide/... which you could 
recommend me? For me, it would be nice (and convenient) to work with plan 9 
from a usb key.

Any suggestions?

Thank you in advance for your kind help.

Regards,

Nino
-- 
Computer Bild Tarifsieger! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 ¿/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a