Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A transistor protected by a fast-acting fuse will protect the fuse by blowing first.


devel / comp.os.msdos.djgpp / Re: compilation of sqlite3 on dos using djgpp

SubjectAuthor
* Re: compilation of sqlite3 on dos using djgppgnufan42 (gnufan42@protonmail.com) [via djgpp@delorie.com]
`- Re: compilation of sqlite3 on dos using djgppRayeR

1
Re: compilation of sqlite3 on dos using djgpp

<HLMPpSIC9AG_-6AOOqQ-0_FrhFiQcrE2UST2yRRJnG6-AGqU1_1i1PRnRj0x0TSV406lf8iy3Kj1vM6X8cww834BagchZkotRuv4K5o1fQM=@protonmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=384&group=comp.os.msdos.djgpp#384

  copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 05 Aug 2023 11:58:28 +0000
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
Date: Sat, 05 Aug 2023 11:58:02 +0000
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
s=protonmail3; t=1691236698; x=1691495898;
bh=k4KgHyFcwjBHD8iS0CgZOkrXET13WphDTfzb63529PY=;
h=Date:To:From:Subject:Message-ID:In-Reply-To:References:
Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
Message-ID:BIMI-Selector;
b=xC+4dwRFenrbn083orJzDw+pezClD5YNf6/T5IACDokYIq1jkA3phkZLpzYttHDIv
tyt/deYcEnQfuNvN9Xonu2nIY+mThv1qAxD4/l5CtHbyhiiEimk9McaA+5NQj0NyES
jJIalanPliUxuV/JvXD0V3pMl+4hDPzeg4GTeHb9gsQhFqs+07xbAfUaXwsJ+N+Xfd
WjLHuQY4/ZL5DUxQ/t6CjY9vAS05LWhtoN8hMUzSJ/wJ2kq/1alDfSCgThQKPoo8Tu
AAIHEzJQ7ijV2ONTaFn/LWh6ifrtF3xfjf65rPyLbjvIny9eNcxqRj9yZ62jAdX7Pd
UP++qAVlY3MyA==
To: djgpp@delorie.com
From: djgpp@delorie.com (gnufan42 (gnufan42@protonmail.com) [via djgpp@delorie.com])
Subject: Re: compilation of sqlite3 on dos using djgpp
Message-ID: <HLMPpSIC9AG_-6AOOqQ-0_FrhFiQcrE2UST2yRRJnG6-AGqU1_1i1PRnRj0x0TSV406lf8iy3Kj1vM6X8cww834BagchZkotRuv4K5o1fQM=@protonmail.com>
In-Reply-To: <e2405853-1614-4aae-b290-9f094171af07n@googlegroups.com>
References: <43bcdb29-6ac3-4cdf-a0ca-e73adb60bf91@googlegroups.com> <e968bcf9-dc60-48cf-b071-51186badd430@googlegroups.com> <e2405853-1614-4aae-b290-9f094171af07n@googlegroups.com>
Feedback-ID: 32728074:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 375BwKkw004205
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 58
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-aIOo8ZoHv5mxgcdtUkBWtZHxBL7Y2HbciQyFqyHODUKp0FPerbT6GYq+soaoZeLKZRb7nADEiFsNg3A!gQrtYfoAh/CxPkKpdh+bQRUs9V3RpqPe+qYoJuhPF1K5paNuwz9wfzou8/Czg33ySuYZ/IqujfWk!QjDWlUF1AFzWyJqvGl3wU/6YaIl3INnY369U5NGqIPJxx5xI1LAlgONjpgITgUuOI673eQfEPVvC!V2EZB8AQHb+KcEsBaA6KmQ4rE1s=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: gnufan42 (gnufan42@p - Sat, 5 Aug 2023 11:58 UTC

------- Original Message -------
On Wednesday, February 22nd, 2023 at PM 10:57, HILMAN AHWAS A. (hilmanahwaa@gmail.com) [via djgpp@delorie.com] <djgpp@delorie.com> wrote:

> On Monday, February 18, 2013 at 2:02:33 AM UTC+7, <@email omitted> wrote:
>
> > Well, on a lazy Sunday afternoon I tried to compile SQLite too.
> >
> > The following steps allowed to compile it:
> >
> > 1. run "configure --disable-threadsafe"
> >
> > 2. modify this in sqlite3.c:
> >
> > #ifdef DJGPP
> > { "fstat", 0, 0 },
> > //#define osFstat(a,b,c) 0
> > #define osFstat(a,b) 0 //djgpp - replacing above
> > #define MAP_SHARED 0
> > #define MAP_FAILED 0
> > #define ETIMEDOUT 9000 //unused number
> > #define ENOTCONN 9001 //unused number
> >
> > #else
> >
> > 3. take out munmap:
> >
> > for(i=0; i<p->nRegion; i++){
> > if( p->h>=0 ){
> > //djgpp munmap(p->apRegion[i], p->szRegion);
> > }else{
> > sqlite3_free(p->apRegion[i]);
> > }
> > }
> >
> > 4. take out mmap:
> >
> > if( pShmNode->h>=0 ){
> > /* djgpp
> > pMem = mmap(0, szRegion,
> > pShmNode->isReadonly ? PROT_READ : PROT_READ|PROT_WRITE,
> > MAP_SHARED, pShmNode->h, szRegion*(i64)pShmNode->nRegion
> > );
> > */
> > if( pMem==MAP_FAILED ){
> > rc = unixLogError(SQLITE_IOERR_SHMMAP, "mmap", pShmNode->zFilename);
> > goto shmpage_out;
> > }
> >
> > Then it did compile and seemed to work so far. The library does not use mmap, only the shell program sqlite3.exe does and I guess that will work so far without mmap in DOS.
> >
> > Georg
>
>
> Where do I place those lines of code?

Why wasn't mmap implemented in the first place?

Re: compilation of sqlite3 on dos using djgpp

<dad86d0e-4406-4451-b495-9a2d0543e6fdn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=397&group=comp.os.msdos.djgpp#397

  copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:620a:838d:b0:774:b2e:15a8 with SMTP id pb13-20020a05620a838d00b007740b2e15a8mr181103qkn.12.1696297135452;
Mon, 02 Oct 2023 18:38:55 -0700 (PDT)
X-Received: by 2002:a05:6808:d47:b0:3a8:8470:fe6a with SMTP id
w7-20020a0568080d4700b003a88470fe6amr6301758oik.6.1696297135204; Mon, 02 Oct
2023 18:38:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 2 Oct 2023 18:38:54 -0700 (PDT)
In-Reply-To: <83jzu9sn2t.fsf@gnu.org>
Injection-Info: google-groups.googlegroups.com; posting-host=89.176.63.76; posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp
NNTP-Posting-Host: 89.176.63.76
References: <43bcdb29-6ac3-4cdf-a0ca-e73adb60bf91@googlegroups.com>
<e968bcf9-dc60-48cf-b071-51186badd430@googlegroups.com> <e2405853-1614-4aae-b290-9f094171af07n@googlegroups.com>
<HLMPpSIC9AG_-6AOOqQ-0_FrhFiQcrE2UST2yRRJnG6-AGqU1_1i1PRnRj0x0TSV406lf8iy3Kj1vM6X8cww834BagchZkotRuv4K5o1fQM=@protonmail.com>
<83jzu9sn2t.fsf@gnu.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dad86d0e-4406-4451-b495-9a2d0543e6fdn@googlegroups.com>
Subject: Re: compilation of sqlite3 on dos using djgpp
From: rayer314@gmail.com (RayeR)
Injection-Date: Tue, 03 Oct 2023 01:38:55 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1635
 by: RayeR - Tue, 3 Oct 2023 01:38 UTC

> > Why wasn't mmap implemented in the first place?
> Because DPMI 0.9 doesn't support the required functionality, AFAIR.

CWSDPMI supports some DPMI 1.0 functions. I implemented a subset of mmap for DOS port of NVclock utility via the __djgpp_map_physical_memory()

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor