|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T U l
Length: 1654 (0x676)
Types: TextFile
Notes: UNIX file
Names: »log.h«
└─⟦a6ab2eb36⟧ Bits:30004042/kconfig3.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦a6ab2eb36⟧ UNIX Filesystem
└─⟦this⟧ »kc/new/usr/include/sys/log.h«
└─⟦ec4aa5908⟧ Bits:30004042/swdev3.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦ec4aa5908⟧ UNIX Filesystem
└─⟦this⟧ »sd/new/usr/include/sys/log.h«
/* Copyright (c) 1984 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "@(#)log.h 1.4"
/*
* Header file for the Streams Log Driver
*/
struct log {
unsigned log_state;
queue_t *log_rdq;
int log_bcnt;
};
/*
* Driver state values.
*/
#define LOGOPEN 01
/*
* Module information structure fields
*/
#define LOG_MID 44
#define LOG_NAME "LOG"
#define LOG_MINPS 0
#define LOG_MAXPS 512
#define LOG_HIWAT 512
#define LOG_LOWAT 256
extern strlog();
extern struct log log_log[]; /* sad device state table */
extern int log_cnt; /* number of configured minor devices */
extern int log_bsz; /* size of internal buffer of log messages */
/*
* STRLOG(mid,sid,level,flags,fmt,args) should be used for those trace
* calls that are only to be made during debugging.
*/
#ifdef DEBUG
#define STRLOG strlog
#else
#define STRLOG
#endif
/*
* Utility macros for strlog.
*/
/*
* logadjust - move a character pointer up to the next int boundary
* after its current value. Assumes sizeof(int) is 2**n bytes for some integer n.
*/
#define logadjust(wp) (char *)(((unsigned)wp + sizeof(int)) & ~(sizeof(int)-1))
/*
* logstrcpy(dp, sp) copies string sp to dp.
*/
#ifdef u3b2
asm char *
logstrcpy(dp, sp)
{
% reg s1, s2;
MOVW s1,%r0
MOVW s2,%r1
STRCPY
MOVW %r0,s1
MOVW %r1,s2
}
#else
/*
* This is a catchall definition for those processors that have not had
* this coded in assembler above.
*/
#define logstrcpy(dp, sp) for (; *dp = *sp; dp++, sp++)
#endif