From: Andreas Kostyrka <andreas@ag.or.at>
Subject: Re: Compiling 2.1.13
Date: Mon, 25 Nov 1996 09:30:33 +0100 (MET) [thread overview]
Message-ID: <a8266ea7658dec5836d5600ad880288e.axp-list@archive.invalid> (raw)
In-Reply-To: <9611232216.AA00959@feral.com>
On Sat, 23 Nov 1996, Matthew Jacob wrote:
> >
> >This isn't my experience. I also have just downloaded 2.1.13, set the
> >ARCH to alpha, and the compile failed (missing various headers,
> >timespecbits.h, etc.).
>
> I haven't seen that.
Funny thing: I've upgraded my RH 3.0.3 AXP to RH 4.0, and I'm getting
exactly the same behaviour out of the small test program below
>
> > I'm using a newly upgraded RedHat 4.0,
>
> However, header files for the kernel are supposed to be self-contained.
> If you have RH 4.0, you may have paid for it, so I suppose you should
> ask EWT or someone at RedHAT*.
That doesn't work here :(, as I've burnt my own CD :)
Andreas
P.S.: My small test program: (It's nice to map for 1 Terabyte file areas
:) )
P.P.S.: I could get it to compile under AXP, by doing a manual gcc -E, and
then just compiling the code from main(...) on.
#include <unistd.h>
#include <sys/mman.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifndef MAP_FAILED
#define MAP_FAILED ((void *)-1)
#endif
main(int argc,char **argv) {
int blocksize;
int numfiles;
int handle=-1;
char filename[256];
int i;
char *p;
blocksize=atoi(argv[1])*1024;
numfiles=atoi(argv[2]);
for(i=0;i<numfiles;i++) {
#if defined(ONE_FILE)||defined(ONE_OPEN)
strcpy(filename,"file-one");
#else
sprintf(filename,"file.%04d",i);
#endif
#if defined(ONE_OPEN)
if(handle==-1) {
#endif
handle=open(filename,O_RDWR|O_CREAT,0666);
lseek(handle,blocksize-1,SEEK_SET);
write(handle,"X",1);
#if defined(ONE_OPEN)
}
#endif
p=mmap(NULL,blocksize-1,PROT_READ|PROT_WRITE,MAP_SHARED,handle,0);
if(p==MAP_FAILED) {
perror("mmap()");
return 1;
}
/* printf("%03d: %p\n",i,p); */
#if !defined(ONE_OPEN)
close(handle);
#endif
}
}
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next prev parent reply other threads:[~1996-11-25 8:30 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-23 22:16 Compiling 2.1.13 Matthew Jacob
1996-11-25 8:30 ` Andreas Kostyrka [this message]
[not found] <Pine.GSO.3.95.961124014837.24214A-100000@nks.oulu.fi>
1996-11-25 8:32 ` Andreas Kostyrka
[not found] <199611232231.PAA01836@panda.mosberger>
1996-11-23 22:41 ` Vik Bajaj
1996-11-23 22:43 ` Terran Lane
1996-11-24 16:56 ` Richard Henderson
[not found] <Pine.LNX.3.95.961124000248.3056B-100000@rebekka.tu-graz.ac.at>
1996-11-24 16:52 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1996-11-24 0:04 Philip Blundell
[not found] <Pine.LNX.3.91.961123175146.1841B-100000@localhost>
1996-11-23 23:02 ` Terran Lane
1996-11-23 23:52 ` Philip Blundell
1996-11-23 23:29 David Mosberger-Tang
1996-11-23 23:50 ` Topi Kanerva
1996-11-24 1:49 ` Terran Lane
1996-11-23 23:21 Matthew Jacob
1996-11-23 23:07 Matthew Jacob
1996-11-23 23:03 Matthew Jacob
1996-11-23 22:49 Matthew Jacob
1996-11-23 22:54 ` Paul D. Robertson
1996-11-23 22:59 ` Vik Bajaj
1996-11-23 22:31 David Mosberger-Tang
1996-11-23 22:26 Matthew Jacob
1996-11-23 23:06 ` Fritz Ganter
1996-11-23 22:04 Scott Laird
1996-11-23 21:59 Terran Lane
1996-11-23 22:21 ` Vik Bajaj
1996-11-23 21:34 Matthew Jacob
1996-11-23 21:16 Vik Bajaj
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox