/ C library -- getinfo - user information  functions

.globl	_logname, _logdir, _logtty
.globl	cerror

.getinfo = 55.

_logname:
	MCOUNT
	mov	r5,-(sp)
	mov	sp,r5
	jsr	pc,logread
	clrb	logname+8.
	mov	$logname,r0
	br	8f

_logdir:
	MCOUNT
	mov	r5,-(sp)
	mov	sp,r5
	jsr	pc,logread
	clrb	logdir+32.
	mov	$logdir,r0
	br	8f

_logtty:
	MCOUNT
	mov	r5,-(sp)
	mov	sp,r5
	jsr	pc,logread
	clrb	logtty+8.
	mov	$logtty,r0
8:
	mov	(sp)+,r5
	rts	pc

logread:
	mov	$logdata,r0
	sys	.getinfo
	bec 	1f
	jmp	cerror
1:
	rts	pc
.bss
logdata: logname: . = .+8.
logdir:	. = .+32.
logtty:	. = .+10.
