wth. they are the same plus an offset, which you can set to -1LL to replicate the behavior of read(2) (/sys/src/libc/9sys/read.c)


-rodri

On Sat, Sep 21, 2019, 10:45 PM Phil Kulin <schors@gmail.com> wrote:
Ok. 9front doesn't have write and read syscalls. I patched
sys/src/alef/lib/sys/mkfile I translated _write to write and _read to
read. Yes, dirty hack. But I don't understand pwrite and pread
syscalls internals.

ItT'S WORK!!!

I'm worried I can't fix sys/src/alef/lib/rt/mkfile
I patch libA.a manually every time

On Sat, Sep 21, 2019 at 8:58 PM Phil Kulin <schors@gmail.com> wrote:
>
> Problem probably in sys/src/alef/lib/rt/ near librt.8.a
> Build process passes with warning about file existing
>
> Manual command:
> ar vu /386/lib/alef/libA.a sys/src/alef/lib/386/*.8
> reduces number of error messages when test builds
>
> There are only:
> ALEFassert: undefined: write
> ALEFassert: undefined: read
>
>
> On Sat, Sep 21, 2019 at 5:05 PM Phil Kulin <schors@gmail.com> wrote:
> >
> > Thank you. I used this snapshot and I built alef. But I couldn't build
> > tests. And can't build any alef program.
> >
> > I think, than linker can't find /$object/lib/alef path (386 in my case)
> >
> > On Sat, Sep 21, 2019 at 5:41 AM Sean Hinchee <henesy.dev@gmail.com> wrote:
> > >
> > > As rodri states BurnZeZ has a copy of Alef he got building and kind of
> > > running under 9front/386. I kind of got the same thing at one point, but
> > > his is way better :)
> > >
> > > I know a snapshot of it is on mycroftiv's public grid around
> > > /n/griddisk/burnzez
> > >
> > > I don't know if he has a public version-controlled copy.
> > >
> > > Cheers,
> > > Sean
> > >
> > > On 9/20/19 2:05 PM, Rodrigo G. López wrote:
> > > > somebody please summon The BurnZeZ.
> > > >
> > > >
> > > > -rodri
> > > >
> > > > On Fri, Sep 20, 2019, 10:46 PM Phil Kulin <schors@gmail.com
> > > > <mailto:schors@gmail.com>> wrote:
> > > >
> > > >     I try to build Alef language
> > > >     latest 9front iso
> > > >
> > > >     %9fs 9pio
> > > >     # I don't know why, but "tar x alef.tgz" command do nothing...
> > > >     %tarfs /n/sources/extra/alef.tgz
> > > >     %dircp /n/tapefs/sys /sys
> > > >     % cd /sys/src/alef
> > > >     % mk all
> > > >     mk $objtype.all
> > > >     @{cd v; mk all }
> > > >     @{cd k; mk all }
> > > >     @{cd 8; mk all }
> > > >     @{cd lib; mk all }
> > > >     yacc -d ../port/parl.y
> > > >
> > > >     conflicts: 2 shift/reduce
> > > >     mv y.tab.h ../port/y.tab.h
> > > >     8c -w -I../port cinit.c
> > > >     8c -w -I../port code.c
> > > >     machdep.h:329 ../port/parl.h:332 cinit.c:6 syntax error, last name:
> > > >     Fconv
> > > >     mk: 8c -w -I../port cinit.c  : exit status=rc 40921: 8c 40925: error
> > > >     machdep.h:329 ../port/parl.h:332 code.c:6 syntax error, last name: Fconv
> > > >     mk: @{cd v; mk ...  : exit status=rc 40909: rc 40911: mk 40912: error
> > > >     mk: mk $objtype.all  : exit status=rc 40906: mk 40908: error
> > > >     %
> > > >
> > > >     I think that problem in "Fconv" definition...
> > > >
> > > >     --
> > > >     Non nobis Domine non nobis sed Nomini Tuo da gloriam
> > > >     Phil Kulin
> > > >
> > >
> >
> >
> > --
> > Non nobis Domine non nobis sed Nomini Tuo da gloriam
> > Phil Kulin
>
>
>
> --
> Non nobis Domine non nobis sed Nomini Tuo da gloriam
> Phil Kulin



--
Non nobis Domine non nobis sed Nomini Tuo da gloriam
Phil Kulin