|
|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 749 (0x2ed)
Types: TextFile
Notes: UNIX file
Names: »jl12.c«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
└─⟦2d53db1df⟧ UNIX Filesystem
└─⟦this⟧ »hr/src/jlib/jl12.c«
#include <jlib.h>
extern int myfd;
extern struct jqueue sendq,
runq,
s_replyq;
int S_SetMPat(wid, pattern)
int wid;
char *pattern;
{
MsgReceiver = SMGR;
MsgCmd = SM_SETMPAT;
MsgWid = wid;
MsgPtr = pattern;
sendmess( );
jdoze(&s_replyq);
Msg = runq.jq_head->j_m;
if(MsgWid != wid)
warn("S_SetMPat: bad wid");
return(0);
}
int S_GetMPat(wid, pattern)
int wid;
char *pattern;
{
struct xfer xfer;
MsgReceiver = SMGR;
MsgCmd = SM_GETMPAT;
MsgWid = wid;
sendmess( );
jdoze(&s_replyq);
Msg = runq.jq_head->j_m;
if(MsgWid != wid)
warn("S_GetMPat: bad wid");
xfer.x_count = sizeof( PAT );
xfer.x_src = SMGR;
xfer.x_srcp = (char *) MsgPtr;
xfer.x_dstp = pattern;
ioctl(myfd, CIOGETD, &xfer);
return (0);
}