Re: How to visit physical memory above 4G?

2001-08-01 Thread Mike Smith
You should format your messages in ascii to send to this list. > I know PIII can support 64G physical memory. In FreeBSD how can I visit > such range memory(4G-64G) ? You can't. Those memory ranges are strictly off-limits to non-US citizens. -- ... every activity meets with opposition, ever

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Terry Lambert
Chirag Kantharia wrote: > > On Wed, Aug 01, 2001 at 11:25:40PM -0700, Terry Lambert wrote: > | Uh, st_size is an off_t, which is a signed 64 bit value, > | not an unsigned 32 bit vale... > > why should it be `signed' 64 bit and not unsigned? Return value for lseek is off_t. -1 indicates error

A long way down the road - 3.1 vs 4.3

2001-08-01 Thread Geoff Rehmet
What may be interesting as a comparison - We are starting the process of upgrading our nameservers, which were installed approximately 2 years ago. Their OS has not been touched, except for a few security patches since then, and they are still running 3.1-STABLE. We have recently brought a thir

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Greg Black
Chirag Kantharia wrote: | On Wed, Aug 01, 2001 at 11:25:40PM -0700, Terry Lambert wrote: | | Uh, st_size is an off_t, which is a signed 64 bit value, | | not an unsigned 32 bit vale... | | why should it be `signed' 64 bit and not unsigned? So that things like lseek(2) can return -1 as an error

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Chirag Kantharia
On Wed, Aug 01, 2001 at 11:25:40PM -0700, Terry Lambert wrote: | Uh, st_size is an off_t, which is a signed 64 bit value, | not an unsigned 32 bit vale... why should it be `signed' 64 bit and not unsigned? chyrag. -- Chirag Kantharia, slashetc.net/chyrag/ To Unsubscribe: send mail to [EMAIL

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Terry Lambert
Joseph Gleason wrote: > Alright, I made a mistake. But I did read the man page. Where does it say > off_t is 64bits? The same place it says char is 8 bits, short is 16 bits, and int and long are 32 bits: in your assumptions. It might be useful (for some definitions of "useful") to have a man p

Re: crash report

2001-08-01 Thread Eugene L. Vorokov
> In message <[EMAIL PROTECTED]>, "Eugene L. Vorokov" wr > ites: > >fault virtual address = 0x60c0ff00 > > I missed the beginning of this thread, but this looks like a problem > that was fixed just before 4.3-RELEASE. What version of FreeBSD > are you running? It's 4.2-RELEASE. But I had simil

Re: How to visit physical memory above 4G?

2001-08-01 Thread Terry Lambert
> craig wrote: > > > I know PIII can support 64G physical memory. In FreeBSD how can I visit such > range memory(4G-64G) ? The short answer is "you can't". The longer answer is that you end up having to window it using segmentation; if you are familiar with the 4k window on video memory in the

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Terry Lambert
Joseph Gleason wrote: > > In FreeBSD, how can I determine the size of a file in C++ when the file is > greater than 4gb? > > Currently, I use stat() and use st_size. That is limited to 4gb (32bit > unsigned int) Uh, st_size is an off_t, which is a signed 64 bit value, not an unsigned 32 bit va

Re: How to visit physical memory above 4G?

2001-08-01 Thread Kris Kennaway
On Thu, Aug 02, 2001 at 08:53:38AM +0800, craig wrote: > > I know PIII can support 64G physical memory. In FreeBSD how can I > visit such range memory(4G-64G) ? You can't, right now. Kris PGP signature

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Alex Zepeda
On Wed, Aug 01, 2001 at 10:31:22PM -0400, Joseph Gleason wrote: > Alright, I made a mistake. But I did read the man page. Where does it say > off_t is 64bits? > > My mistake was not digging through the include files enough to see what was > going on. off_t st_size; /

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Jim Bryant
Kent Stewart wrote: > > Jim Bryant wrote: > > > > Joseph Gleason wrote: > > > > > > - Original Message - > > > From: "Alex Zepeda" <[EMAIL PROTECTED]> > > > To: "Joseph Gleason" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > > Sent: Wednesday, August 01, 2001 21:45 > > > Subject: Re: Findin

Re: connecting a FujiFinePix1400 (USB) ?

2001-08-01 Thread Bill Fumerola
On Wed, Aug 01, 2001 at 05:18:40PM +, Paul Halliday wrote: > heh.. freebsd usb sucks. > I have a handspring and a fujifilm finepix40i that are just sitting here > collecting dust. > > > From 3.4 - 4.3 S I have tried every available means, packages, patches > to get either of them working

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Kent Stewart
Jim Bryant wrote: > > Joseph Gleason wrote: > > > > - Original Message - > > From: "Alex Zepeda" <[EMAIL PROTECTED]> > > To: "Joseph Gleason" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > Sent: Wednesday, August 01, 2001 21:45 > > Subject: Re: Finding filesizes in C++ for files greater t

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Jim Bryant
Joseph Gleason wrote: > > - Original Message - > From: "Alex Zepeda" <[EMAIL PROTECTED]> > To: "Joseph Gleason" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Wednesday, August 01, 2001 21:45 > Subject: Re: Finding filesizes in C++ for files greater than 4gb > > > On Wed, Aug 01, 2001

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Joseph Gleason
> :Alright, I made a mistake. But I did read the man page. Where does it say > :off_t is 64bits? > : > :My mistake was not digging through the include files enough to see what was > :going on. > : > > The types(5) manpage will tell you this. > Ahh, thank you. I was not aware that existed.

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread David Scheidt
On Wed, 1 Aug 2001, Joseph Gleason wrote: : :- Original Message - :From: "Alex Zepeda" <[EMAIL PROTECTED]> :> On Wed, Aug 01, 2001 at 09:34:43PM -0400, Joseph Gleason wrote: :> :> > In FreeBSD, how can I determine the size of a file in C++ when the file :is :> > greater than 4gb? :> > :>

somebody implement ppp nat punch-fw ?

2001-08-01 Thread Dennis Berger
Hi, A function available from libalias, the PKT_ALIAS_PUNCH_FW one is currently not implemented in ppp. Maybe somebody could implement it in ppp. It's definitly not much work, so I request if somebody could do it. greets Dennis

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Joseph Gleason
- Original Message - From: "Alex Zepeda" <[EMAIL PROTECTED]> To: "Joseph Gleason" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, August 01, 2001 21:45 Subject: Re: Finding filesizes in C++ for files greater than 4gb > On Wed, Aug 01, 2001 at 09:34:43PM -0400, Joseph Gleason w

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Alex Zepeda
On Wed, Aug 01, 2001 at 09:34:43PM -0400, Joseph Gleason wrote: > In FreeBSD, how can I determine the size of a file in C++ when the file is > greater than 4gb? > > Currently, I use stat() and use st_size. That is limited to 4gb (32bit > unsigned int) You're wrong. Read the man page. No soup

RE: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Daniel O'Connor
On 02-Aug-2001 Joseph Gleason wrote: > Currently, I use stat() and use st_size. That is limited to 4gb (32bit > unsigned int) > > I could use st_blocks, but that wouldn't give me the exact size. > > (st_blocks -1) * 512 + (st_size % 512) > > This would make sense, but in tests st_bloc

RE: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread John Baldwin
On 02-Aug-01 Joseph Gleason wrote: > In FreeBSD, how can I determine the size of a file in C++ when the file is > greater than 4gb? > > Currently, I use stat() and use st_size. That is limited to 4gb (32bit > unsigned int) struct stat { ... off_t st_size; /* fi

Re: Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Alfred Perlstein
* Joseph Gleason <[EMAIL PROTECTED]> [010801 20:35] wrote: > In FreeBSD, how can I determine the size of a file in C++ when the file is > greater than 4gb? > > Currently, I use stat() and use st_size. That is limited to 4gb (32bit > unsigned int) No it's not: struct stat { dev_t

Finding filesizes in C++ for files greater than 4gb

2001-08-01 Thread Joseph Gleason
In FreeBSD, how can I determine the size of a file in C++ when the file is greater than 4gb? Currently, I use stat() and use st_size. That is limited to 4gb (32bit unsigned int) I could use st_blocks, but that wouldn't give me the exact size. (st_blocks -1) * 512 + (st_size % 512) This would

How to visit physical memory above 4G?

2001-08-01 Thread craig
  I know PIII can support 64G physical memory. In FreeBSD how can I visit such range memory(4G-64G) ?     [EMAIL PROTECTED]

Re: connecting a FujiFinePix1400 (USB) ?

2001-08-01 Thread Paul Halliday
Frederique Rijsdijk wrote: > Is it possible to connect a digital camera with a USB interface > (FujiFinePix1400 in this case) to a FreeBSD (3.4-S) host to download > the images? > > Thanks, > heh.. freebsd usb sucks. I have a handspring and a fujifilm finepix40i that are just sitting here c

Re: crash dump output

2001-08-01 Thread John Baldwin
On 01-Aug-01 Eugene L. Vorokov wrote: >> Can you compile a debug kernel please and repeat this? That way you will >> have >> debug symbols so that you can get more useful information out of gdb. >> You'll >> have to get a new crashdump with the debug kernel running however. > > Maybe it's offt

Re: Accessing /dev/klog and similar

2001-08-01 Thread Dima Dorfman
Peter Pentchev <[EMAIL PROTECTED]> writes: > Or rather, do not try this while syslogd is running. > > src/sys/kern/subr_log.c defines the operation of the /dev/klog > device, and there is an upper limit on the number of processes > that can simultaneously open the log device - the limit is one. >

Re: FreeBSD 4.3 and windows 98 don't play well together

2001-08-01 Thread Mike Smith
> I was wondering whether someone could shed some light on this for me: I've i > nstalled FreeBSD 4.3, Debian Linux 2.2r2 and windows 98 on my laptop. Everyt > hing is fine except that after using FreeBSD if I try to go into windows, the > system locks up. If I turn the power off and back on a

Re: crash dump output

2001-08-01 Thread Julian Elischer
no, as long as your swap device is big enough to hold all of RAM it will work.. you are supposed to use your normal swap device. it reads it off and saves it elsewhere as teh first thing it does after booting, before you've had a chance to start swapping.. On Wed, 1 Aug 2001, Eugene L. Vorokov

Re: Accessing /dev/klog and similar

2001-08-01 Thread Peter Pentchev
On Mon, Jul 30, 2001 at 02:35:21PM -0700, Kris Kennaway wrote: > On Mon, Jul 30, 2001 at 11:50:18AM -0700, Hans Zaunere wrote: > > Hello, > > > > I'm looking to access kernel messages directly from > > the kernel, and not through syslog if I can help it. > > Look at how syslogd does it. Or rath

Re: address resolution question

2001-08-01 Thread Weiguang SHI
... > > According to my calculation, pte=0xbfcc0001 and *pte will yield > > 0x2FF,0xC0,0x1 as indexes to the page directory table, page table and > > an offset. My page directory table is like this (starting at physical > > address 0x2C2000): > > > > indexpage_table_base_address; p

Allocate a page at interrupt time

2001-08-01 Thread Zhihui Zhang
FreeBSD can not allocate from the PQ_CACHE queue in an interrupt context. Can anyone explain it to me why this is the case? Thanks, -Zhihui To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: FreeBSD 4.3 and windows 98 don't play well together

2001-08-01 Thread Carlo Dapor
My laptop, a Toshiba Tecra 8100 with a 12 GB, evenly divided in two partitions runs with none of the problems described. I run Windows 98 on the first partition (dev/ad0s) and FreeBSD on the second (dev/ad0s2*). Could it be a version problem ? XFree 4.0.1 and FreeBSD 5.0 (current) is what I hav

Re: FreeBSD 4.3 and windows 98 don't play well together

2001-08-01 Thread Aled Morris
>I was wondering whether someone could shed some light on this for me: I've installed >FreeBSD 4.3, Debian Linux 2.2r2 and windows 98 on my laptop. Everything is fine >except >that after using FreeBSD if I try to go into windows, the system locks up. If I turn >the power off and back on after

FreeBSD 4.3 and windows 98 don't play well together

2001-08-01 Thread oldcpgmr
I was wondering whether someone could shed some light on this for me: I've installed FreeBSD 4.3, Debian Linux 2.2r2 and windows 98 on my laptop. Everything is fine except that after using FreeBSD if I try to go into windows, the system locks up. If I turn the power off and back on after att

connecting a FujiFinePix1400 (USB) ?

2001-08-01 Thread Frederique Rijsdijk
Is it possible to connect a digital camera with a USB interface (FujiFinePix1400 in this case) to a FreeBSD (3.4-S) host to download the images? Thanks, -- Frederique To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

crash report

2001-08-01 Thread Eugene L. Vorokov
Hello, here's my crash dump, something related to mbufs. If more information is needed, tell me what to do, I'll provide it. This usually happens (but not always) when someone is downloading something huge from ftp server on this machine. Regards, Eugene vel@bugz:/home/vel # uname -r 4.2-RELE

Re: crash dump output

2001-08-01 Thread Erik Trulsson
On Wed, Aug 01, 2001 at 12:31:12PM +0400, Eugene L. Vorokov wrote: > > you just call config with '-g' option. and compile the kernel in normal > > way. The freebsd handbook discusses this in more detail. > > Yet another issue, I have run config -g, then make depend, make and > make install.debu

Re: Finding MAC address of interface - programming question

2001-08-01 Thread Hal Snyder
Michael VanLoon <[EMAIL PROTECTED]> writes: > Thanks that's just exactly the information I was looking for. :-) > > I'm slow grunging through the code and man pages that take this apart. > > As far as UNPv1 I assume you're referring to Stevens' "Unix Network > Programming"? If I'm not mistaken

Re: crash dump output

2001-08-01 Thread Mohana Krishna Penumetcha
On Wed, 1 Aug 2001, Eugene L. Vorokov wrote: > Yet another issue, I have run config -g, then make depend, make and > make install.debug. But my /kernel is still about 2mb long, which probably > means it's not really debug kernel. However I see kernel.debug in the > compile directory which is abo

patch review request: lchflags

2001-08-01 Thread Joshua Goodall
As previously discussed. This is the conservative route, of course. I did not want to get into creating new VOP_SETATTR interfaces. PR kern/29355 http://www.freebsd.org/cgi/query-pr.cgi?pr=29355 J To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body o

Re: crash dump output

2001-08-01 Thread Eugene L. Vorokov
> you just call config with '-g' option. and compile the kernel in normal > way. The freebsd handbook discusses this in more detail. Yet another issue, I have run config -g, then make depend, make and make install.debug. But my /kernel is still about 2mb long, which probably means it's not real

Re: Finding MAC address of interface - programming question

2001-08-01 Thread Dmitry Diky
the code as follows (at least it works in my case) : #include #include #include #include #include #include #include #include #include #include /* IP */ #include #include #include #include /* OSI */ #include #include #include #include #include #include #include #include

FW: ioctl and fxp/tl drivers

2001-08-01 Thread Andy
Originally posted to -net but no replies, maybe some here could help me out? tia, Andy -Original Message- To: [EMAIL PROTECTED] Subject: ioctl and fxp/tl drivers Hi all This maybe a dumb question but a bit stumped at the mo. When I make an ioctl call to the fxp or tl drivers thus: if

Re: Finding MAC address of interface - programming question

2001-08-01 Thread Andrzej Bialecki
Michael VanLoon wrote: > > > From: Chris Faulhaber [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 31, 2001 3:56 PM > > > > On Tue, Jul 31, 2001 at 03:56:40PM -0700, Michael VanLoon wrote: > > > Please point me to a more appropriate forum if there is > > one. I'm kinda out > > > of my depth o

Re: crash dump output

2001-08-01 Thread Julian Elischer
"Eugene L. Vorokov" wrote: > > > Can you compile a debug kernel please and repeat this? That way you will have > > debug symbols so that you can get more useful information out of gdb. You'll > > have to get a new crashdump with the debug kernel running however. > > Maybe it's offtopic a bit,

Re: crash dump output

2001-08-01 Thread David Scheidt
On Wed, 1 Aug 2001, Eugene L. Vorokov wrote: :> > Maybe it's offtopic a bit, but can you please give exact instructions of how :> > to compile debug kernel ? My machine crashes sometimes too, I tried to compile :> > debug kernel, but it seemed not so easy and I gave up due to lack of time. Or :>

Re: address resolution question

2001-08-01 Thread Terry Lambert
Weiguang SHI wrote: > I need your help to understand this. > In machdep.c, > >1451 /* >1452 * map page 1 R/W into the kernel page table so we can use > it >1453 * as a buffer. The kernel will unmap this page later. >1454 */ >1455 pte

Re: crash dump output

2001-08-01 Thread Eugene L. Vorokov
> > Maybe it's offtopic a bit, but can you please give exact instructions of how > > to compile debug kernel ? My machine crashes sometimes too, I tried to compile > > debug kernel, but it seemed not so easy and I gave up due to lack of time. Or > > is there any URL with a good explanation ? > >