Serial ports programming

1999-05-26 Thread Max Gotlib
Hi! Some days ago I've faced with the following problem: I need some kind of action (while coding user space program actively handling the serial port) to get sure all the bytes I've wrote to it are _transmitted_. I know about "ioctl(fd, TIOCDRAIN)", but this ioctl is accomplished with tty buffers

Re: more on the pcmcia saga.

1999-05-26 Thread Darren Reed
[...] > PC-Card Intel 82365 (5 mem & 2 I/O windows) > pcic: controller irq 3 > ^^ > Initializing PC-card drivers: sio > changing root device to wd0s2a > Card inserted, slot 1 > PC-Card Intel 82365 (5 mem & 2 I/O windows) > pcic: controller irq 5 > ^^ > Card i

Re: more on the pcmcia saga.

1999-05-26 Thread Darren Reed
In some mail from Wes Peters, sie said: [...] > PC-Card Intel 82365 (5 mem & 2 I/O windows) > pcic: controller irq 3 > ^^ > Initializing PC-card drivers: sio Why does it list "sio" here ? I don't see where sio is actually used with PCMCIA here...why doesn't it list ed0 too ?

K6-2 MTRR support testing

1999-05-26 Thread Brian Feldman
I suppose that this is nearly done. It works, it seems, but I have no idea what I can do to truly test it. I need to implement probing/matching so that it only works on the CPUs that support it, I suppose. I'd like people to check it out for now. I make no guarantees, but it seems to work here. B

Re: more on the pcmcia saga.

1999-05-26 Thread Wes Peters
Darren Reed wrote: > > It appears that having "pccardd" enabled in /etc/defaults/rc.conf > causes it to be started very early with the end result of the > "pcic controller" also allocating irq9 (in a separate pair of > messages). i.e. this appears early on: > > PC-Card Cirrus Logic PD672X (5 mem

Re: Multiproc kernel 3.1-Release & Cyclades Cyclom 8Yep PCI

1999-05-26 Thread Bruce Evans
>I have multiprocessor machine: > >matherboard SOYO 5TX2/X5 with 2 intel 166 proceccors >multiport card Cyclades Cyclom 8Yep > >Kernel config: > >options SMP # Symmetric MultiProcessor Kernel >options APIC_IO # Symmetric (APIC) I/O >options NCPU=2

Re: Darren Reed memorial ?

1999-05-26 Thread Eivind Eklund
On Wed, May 26, 1999 at 03:13:28AM +1000, Darren Reed wrote: > In some mail from Mike Smith, sie said: > > > > > I tried to build a kernel with it in, although I don't know if I got > > > the config correct, but I got a panic when it booted, toward the end > > > of the configuration process: > > >

Re: File system gets too fragmented ???

1999-05-26 Thread Julian Elischer
I missed the original post, so may be mislead (The extract below doesn't give all the symptoms) David Scheidt wrote: > > On Wed, 26 May 1999, Graeme Tait wrote: > > > It contains about 900,000 files, most of which are small, occupying > > around 2-5 fragments. The small files are updated mon

Re: File system gets too fragmented ???

1999-05-26 Thread David Scheidt
On Wed, 26 May 1999, Graeme Tait wrote: > It contains about 900,000 files, most of which are small, occupying > around 2-5 fragments. The small files are updated monthly from a tar > > However, I don't understand how the FFS works, so I'm just probing and > guessing as to what's going on here. >

Re: getopt.c in gnu/*/*

1999-05-26 Thread Peter Jeremy
"David O'Brien" wrote: >It would be better to create src/gnu/lib/libgnugetopt/Makefile and point >".PATH:" to the newest src file we have in the tree. ... >(I am considering something simular with libiberty and libbfd) This approach sounds nice, but there may be some gotchas: I have previously t

Re: UID Limits

1999-05-26 Thread Steve Ames
Dunno. The IPC code uses ushrt as the type for uid... couldn't find anything else that does. Is this vestigial? I'm CC-ing this to 'freebsd-hackers' since I think we're outside the pervue of 'freebsd-isp' at this point... The question is "What is the maximum UID?". Its either a 2 or 4 byte unsig

Re: serial ports

1999-05-26 Thread Wes Peters
Keith Anderson wrote: > > Dear Wes, > > Thanks for your help I was unable to find the book on-line in .au but my local > Dymocks Books Store was able to order it 'on overnight delivery'. > > Keith Anderson Both are very good books, and a good introduction to "the UNIX way." Best of luck. --

RE: RS232 status read ioctl (RI,DSR,CTS etc..)

1999-05-26 Thread Daniel O'Connor
On 26-May-99 Peter Brevik wrote: > it seems the bits in the resulting code does not correspond to what actually > are physicaly on the rs232 connector anyway. > I would not like to use brute force, like inb()/outb() commands.. > Any suggestions on how to get TIOCMGET ioctl() to work as intend

Re: Token-ring and 3.x-stable

1999-05-26 Thread Jordan K. Hubbard
This sounds fine to me. We're between releases. :) > If you have a set of patches and files that can be applied to a 3.2++ > tree cleanly, (and work), I can apply them for you. > I can test the compile, but I'll need you to re CVSUP asap and test it. > > julian > > > On Wed, 26 May 1999, Larr

Re: serial ports

1999-05-26 Thread Keith Anderson
Dear Wes, Thanks for your help I was unable to find the book on-line in .au but my local Dymocks Books Store was able to order it 'on overnight delivery'. Keith Anderson On 26-May-99 Wes Peters wrote: > Keith Anderson wrote: > > Congratulations, and welcome to the real world. > > Here are

File system gets too fragmented ???

1999-05-26 Thread Graeme Tait
I previously posted to 'questions' about a filesystem that was reported full when df -ik showed plenty of space remaining, but got no useful answers, so I'm hoping this list can offer some assistance. [Please respond to me directly, as I'm not subscribed here.] The filesystem is built with 40

MAXUSERS

1999-05-26 Thread Gregory Sutter
What is the maximum number that MAXUSERS can currently be set to, in the following environments: 3.2-STABLE 4.0-CURRENT Also, what is the limiting factor for this setting? MAXFILES? maxproc? Regards, Greg -- Gregory S. Sutter"Very funny, Scotty. mailto:gsut...@pobox.com

Re: getopt.c in gnu/*/*

1999-05-26 Thread Doug Rabson
On Wed, 26 May 1999, W Gerald Hicks wrote: > > It would be better to create src/gnu/lib/libgnugetopt/Makefile and point > > ".PATH:" to the newest src file we have in the tree. If some package > > gets updated and there is a newer GNUgetopt(), then we change the > > ".PATH:". JDP suggested this

Re: A question about errors.

1999-05-26 Thread Chris Costello
On Wed, May 26, 1999, Jeroen Ruigrok/Asmodai wrote: > Is EAUTH a basic uid<>password authentication failure, or is it broader > or..? EAUTH and ENEEDAUTH are NFS errors, as far as I know. > > ECANCELED? Is this our basic CTRL-C? ECANCELED is what aio_read() sets errno to when the call was

NFS problems in 2.x -- fixed in 3.x?

1999-05-26 Thread Sean Eric Fagan
While doing some development, I found out that read-only files are not treated as read-only on a 2.x NFS server. Nate did some poking around (he has a Solaris box he can use as a server, which makes a good control), and found: >Yes, I was able to reproduce it. > >Client - FreeBSD 2.2.8-stable (PI

A question about errors.

1999-05-26 Thread Jeroen Ruigrok/Asmodai
Hi, I am updating the description of intro(3) and have stumbled upon some challenges: #define EAUTH 80 /* Authentication error */ #define ENEEDAUTH 81 /* Need authenticator */ #define EOVERFLOW 84 /* Value too large to be stored in data

Re: lpd woes ... missing feature that different printer share same spool

1999-05-26 Thread Andreas Klemm
Hi David ! Great, thanks for looking at it / for the patch. I'll put it into the apsfilter FAQ and the INSTALL file. Andreas /// -- Andreas Klemm http://www.FreeBSD.ORG/~andreas http://www.freebsd.org/~fsmp/SMP/SMP.html

Re: PCI Bus and bt848 driver...

1999-05-26 Thread Amancio Hasty Jr
When I get the information that I requested I will be more than happy to help. Right now I am very busy and the information that I requested is not hard to generate nor unreasonable. Take Care, Amancio To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebs

Re: PCI Bus and bt848 driver...

1999-05-26 Thread Luigi Rizzo
> I want to see if any PCI bus has a high PCI clock and the actual > setting of the PCI clock for the bt848. is it supposed to change with the OS release given the same hardware ? I have had this very same problem with a P5-90, PPro-200, Pentium2-300, in all cases switching back to 2.2.6 cured the

Re: how to configure sound on laptop ?

1999-05-26 Thread Luigi Rizzo
> (they're described as Cirrus Logic PD6832's or pci1013,1110) and > that chip doesn't get its own IRQ. > > And finally, I'm attempting to configure the sound chips. > > Win98 reports them as: > OPL3-SAx WDM > DMA 0,1 > IRQ 11 > IO 220-22f, 530-537, 388-38f, 310-31f, 370-371 > > Anyone want to h

more on the pcmcia saga.

1999-05-26 Thread Darren Reed
It appears that having "pccardd" enabled in /etc/defaults/rc.conf causes it to be started very early with the end result of the "pcic controller" also allocating irq9 (in a separate pair of messages). i.e. this appears early on: PC-Card Cirrus Logic PD672X (5 mem & 2 I/O windows) pcic: controlle

how to configure sound on laptop ?

1999-05-26 Thread Darren Reed
well, I've nutted out how rc.conf is meant to work and try to avoid freezing 3.1 by popping out the 3c589d at the wrong time but when it gets configured, the performance sucks (UTP so -link0, -link1). It feels like a misconfiguration as I can see packets coming out of it but none are being receive

Re: serial ports

1999-05-26 Thread Wes Peters
Keith Anderson wrote: > > Dear All > > Could someone point me in the correct direction for help with 'c' > > Some examples for opening a serial port for comms. > Opening tcp connections for use with mysql. > > I'm a programer from the 70's (DOS) and learning FBSD. Congratulations, and welcome

Re: Token-ring and 3.x-stable

1999-05-26 Thread Julian Elischer
If you have a set of patches and files that can be applied to a 3.2++ tree cleanly, (and work), I can apply them for you. I can test the compile, but I'll need you to re CVSUP asap and test it. julian On Wed, 26 May 1999, Larry Lile wrote: > > On Wed, 28 Apr 1999, Larry Lile wrote: > > > On

Re: PCI Bus and bt848 driver...

1999-05-26 Thread Amancio Hasty Jr
I want to see if any PCI bus has a high PCI clock and the actual setting of the PCI clock for the bt848. The output of the debug printfs will give us a clue as to what is upsetting the bt848 also it is the way that I have managed to debug many of the problems with the folks over at the freebsd

Re: Jane-Ellen Long: summarizers for FREENIX

1999-05-26 Thread Julian Elischer
how about doug white :-) He mentionned being a bit short on cash to go to USEnix On Tue, 25 May 1999, Jordan K. Hubbard wrote: > Anyone here going to USENIX who'd also like to trade a free > registration in exchange for playing "scribe" for the FREENIX track at > the USENIX technical conference

Re: Token-ring and 3.x-stable

1999-05-26 Thread Larry Lile
On Wed, 28 Apr 1999, Larry Lile wrote: > On Wed, 28 Apr 1999, Jordan K. Hubbard wrote: > > > > I don't mind waiting until after the freeze/release, I just wanted to > > > get feedback and get a place in the queue, if acceptable. > > > > I have absolutely zero objections to this coming into -sta

Re: PCI Bus and bt848 driver...

1999-05-26 Thread Luigi Rizzo
> Try booting -v and post the output. amancio, what do you expect to see from this, considering that on the same hardware things work ? also note that the amount of output generated by the printf is likely to cause even more problems... cheers luigi > also uncomment

PCI Bus and bt848 driver...

1999-05-26 Thread Amancio Hasty Jr
Try booting -v and post the output. also uncomment the following printf : #if defined( STATUS_SUM ) /* add any new device status or INTerrupt status bits */ status_sum |= (bktr_status & ~(BT848_INT_RSV0|BT848_INT_RSV1)); status_sum |= ((dstatus & (BT848_DSTA

Re: lpd woes ... missing feature that different printer share same spool

1999-05-26 Thread David G. Andersen
Thankfully, the problem isn't in lpd, it's in chkprintcap. Index: chkprintcap.c === RCS file: /n/marker/usr/lsrc/FreeBSD/CVS/src/usr.sbin/lpr/chkprintcap/chkprintcap.c,v retrieving revision 1.2 diff -c -r1.2 chkprintcap.c *** chkprin

adding pcmcia cards

1999-05-26 Thread Darren Reed
Having finally got pccardd to configure the card, it doesn't seem to get the correct IRQ, nor does it deal well with the card being ejected whilst in use (freezes the box). Neither is pccardd started by default, which seems strange if you have a /etc/pccardd.conf file. Anyway, I've also got a 3C

Multiproc kernel 3.1-Release & Cyclades Cyclom 8Yep PCI

1999-05-26 Thread Vladimir A. Pokatilov
Help !!! Anybody know . where is bug in kernel configuration , in cy0 driver or in my hands I have multiprocessor machine: matherboard SOYO 5TX2/X5 with 2 intel 166 proceccors multiport card Cyclades Cyclom 8Yep Kernel config: options SMP # Symmetric MultiProcessor Kernel op

RS232 status read ioctl (RI,DSR,CTS etc..)

1999-05-26 Thread Peter Brevik
Hi, I am programming a rs232 device (driver) which is using the status line's rather than the tx/rx lines to control the device. I have succedded without any problem to send signals by using the ioctl's described in "man 4 tty" man page. There is a ioctl called "TIOCMGET" which is intended as

RE: serial ports

1999-05-26 Thread Alton, Matthew
Well, the serial devices are not typically used for TCP traffic, but you should look at ioctl(3), read(3), write(3), socket(3), bind(3), listen(3), send(3), recv(3) for starters. The tty devices are treated as files. Remember, in UNIX everything is a file unless it isn't. The ethernet cards, which

Re: Interface UP & RUNNING flags

1999-05-26 Thread Chuck Youse
IFF_RUNNING indicates that "resources are allocated for this device", i.e., everything's ready to go. IFF_UP provides an administrative control over the operational status of the device. Chuck Youse Director of Systems cyo...@cybersites.com -Original Message- From: Brian Somers To: freeb

Re: Darren Reed memorial ?

1999-05-26 Thread Nick Hibma
> > Darren, I don't know what you've done to your machine, but you get the > > weirdest and most unhappy-sounding problems I've ever seen. I think we > > need a "Darren Reed memorial " to commemorate this, as well > > as your perseverence for not simply giving up and going home. > > The Dar

Re: Darren Reed memorial ?

1999-05-26 Thread Wes Peters
Mike Smith wrote: > > > I tried to build a kernel with it in, although I don't know if I got > > the config correct, but I got a panic when it booted, toward the end > > of the configuration process: > > > > panic: biodone: zero vnode ref count > > Darren, I don't know what you've done to your ma

Re: kernel debugging assistance

1999-05-26 Thread Dmitrij Tejblum
> I am trying to trace down the cause of the recursive lock and I stumbled upon > this: > > (kgdb) bt > #0 boot (howto=256) at ../../kern/kern_shutdown.c:285 > #1 0xc014b3f4 in at_shutdown ( > function=0xc0234aca > <__set_sysuninit_set_sym_M_KTRACE_uninit_sys_uninit+154>, arg=0x10002, > qu

tsleep returns -1?

1999-05-26 Thread Brian Handy
Hey folks, I saw this in my syslogs yesterday: May 25 11:25:08 lambic /kernel: tsleep returns -1 May 25 11:25:18 lambic /kernel: timeout flushing dbuf_out, chan 1 cnt 0x222 flags 0x0241 [...] May 25 15:16:01 lambic /kernel: tsleep returns -1 May 25 15:16:11 lambic /kernel: timeout flushing d

serial ports

1999-05-26 Thread Keith Anderson
Dear All Could someone point me in the correct direction for help with 'c' Some examples for opening a serial port for comms. Opening tcp connections for use with mysql. I'm a programer from the 70's (DOS) and learning FBSD. Thanks Keith "The box said 'Requires Windows 95, NT, or better,'

Re: getopt.c in gnu/*/*

1999-05-26 Thread W Gerald Hicks
> It would be better to create src/gnu/lib/libgnugetopt/Makefile and point > ".PATH:" to the newest src file we have in the tree. If some package > gets updated and there is a newer GNUgetopt(), then we change the > ".PATH:". JDP suggested this is a cleaner way than extracting part of a > GNU pac

Re: PCI bus chanages from 2.2.x to 3.x/4.x and data corruption.

1999-05-26 Thread Luigi Rizzo
> Please read this. It affects our commercial users. > > I'm trying to find out if/how we initialise the PCI bus and any > memory controllers differently in 3.x compared to 2.2.x > > Since upgrading from 2.2.x to 3.x or 4.x, many many users have > noticed garbage on the video grabbed by the bt848

Re: New one - mp3 "clicks" during playback

1999-05-26 Thread Karl Denninger
On Tue, May 25, 1999 at 01:24:45PM +0200, Luigi Rizzo wrote: > > Uh, the Ensoniq board is an ISA card, everything else in the system > > (except the Digiboard) is a PCI card. > > not only that. Am i mistaken or you started having such problems after > an upgrade to a recent version of FreeBSD ?

BIND and IPv6

1999-05-26 Thread Florent Parent
Sebastien, IPv6 records are supported since BIND 4.9.5 ( records). If you are looking for a named server that listens on an IPv6 socket, look at the bind patch on http://www.kame.net Florent. Sebastien Maraux writes: > has anybody heard of an IPv6 option in BIND 8.2 configuration file.

Interface UP & RUNNING flags

1999-05-26 Thread Brian Somers
Hi, Can someone tell me the difference between the IFF_UP and IFF_RUNNING flags ? Currently, the tun pseudo-device never bothers removing the RUNNING flag. This can easily be fixed with Index: if_tun.c === RCS file: /home/ncvs/sr

BIND and IPv6

1999-05-26 Thread Sebastien Maraux
has anybody heard of an IPv6 option in BIND 8.2 configuration file. It's not documented in the configuration guide, but I would need it if it exists. Thanks to forward it on another mailng list if hackers is not the good one for it. Byee Sebastien MARAUX To Unsubscribe: send

Re: New one - mp3 "clicks" during playback

1999-05-26 Thread Luigi Rizzo
> Uh, the Ensoniq board is an ISA card, everything else in the system > (except the Digiboard) is a PCI card. not only that. Am i mistaken or you started having such problems after an upgrade to a recent version of FreeBSD ? luigi ---+

Re: getopt.c in gnu/*/*

1999-05-26 Thread David O'Brien
> All of the programs listed, except cvs, were not under contrib. They will be on the next upgrade. :-) > I was thinking of factoring out gnugetopt into a libgnugetopt under > contrib It would be better to create src/gnu/lib/libgnugetopt/Makefile and point ".PATH:" to the newest src file we h

Re: getopt.c in gnu/*/*

1999-05-26 Thread Warner Losh
In message <19990525224157.d4...@nuxi.com> "David O'Brien" writes: : for src/contrib/ we try not to dink too much with the code. Otherwise : the maintance can get heavy. Right, however in the past things like libreadline have been "culled" from the various places that have it into its own place.

Re: [ALERT] a.out support is broken in 3.2-STABLE and 4.0-CURRENT

1999-05-26 Thread David O'Brien
> > Jordan just slid the "RELENG_3_2_0_RELEASE" forward to include my changes > > to compat22 that match the hand-hacked versions on the CDROM/FTP site. > > > > One should now be able to build a duplicate 3.2-RELEASE. > > Did I see a commit to 3.2's ERRATA.TXT that needs to be backed out now? No

Re: [ALERT] a.out support is broken in 3.2-STABLE and 4.0-CURRENT

1999-05-26 Thread Brian Somers
> > > Why? The compat22 distribution on the FTP site has ld.so in it, as wil > > > the CDROM. Did you install 3.2 on the very first day? > > > > Just about. Did a make release for local internal use. Is there a > > slightly newer CVS tag other than RELENG_3_2_0_RELEASE that gets us all we