Date : Thu, 11 Nov 2010 22:53:54 +0000 (GMT)
From : info@... (Sprow)
Subject: RFC: Need two error numbers
In article <20101111224604.krj3i30m8kso8gcg@...>,
J.G.Harston <jgh@...> wrote:
> Refering to http://beebwiki.jonripley.com/System_error_messages
> and http://beebwiki.jonripley.com/Talk:Error_messages
> I need a couple of error numbers for two errors the interface between
> PDP BASIC and Unix may generate, Read error and Write error.
>
> load:
> fd=fopen(file,in)
> if fd=0 error(214,"Not found")
> repeat
> ok=read(fd,addr,size)
> if not ok error(????,"Read error")
> until end
> close(fd)
>
> save:
> fd=fopen(file,out)
> if fd=0 error(192,"Can't save")
> repeat
> ok=read(fd,addr,size)
> if not ok error(????,"Write error")
> until end
> close(fd)
Error 202 "Data lost"
Error 216 "Data?" (CFS)
Error 219 "Data?" (CFS also)
all seem suitable,
Sprow.