Files
mars-nwe/include/core/library/xStdio.h

138 lines
3.2 KiB
C

/****************************************************************************
|
| (C) Copyright 1985, 1991, 1993, 1996 Novell, Inc.
| All Rights Reserved.
|
| This program is free software; you can redistribute it and/or
| modify it under the terms of version 2 of the GNU General Public
| License as published by the Free Software Foundation.
|
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
|
| You should have received a copy of the GNU General Public License
| along with this program; if not, contact Novell, Inc.
|
| To contact Novell about this file by physical or electronic mail,
| you may find current contact information at www.novell.com
|
|***************************************************************************
|
| NetWare Advance File Services (NSS) module
|
|---------------------------------------------------------------------------
|
| $Author: taysom $
| $Date: 2004-12-31 01:10:58 +0530 (Fri, 31 Dec 2004) $
|
| $RCSfile$
| $Revision: 465 $
|
|---------------------------------------------------------------------------
| This module is used to:
| NSS Library file
|
| WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
|
| This header file should ONLY be used for NSS internal development.
| This includes Semantic Agents (SA) and Loadable Storage Services (LSS).
| Any other use may cause conflicts which NSS will NOT fix.
+-------------------------------------------------------------------------*/
#ifndef _XSTDIO_H_
#define _XSTDIO_H_
#ifndef _STDARG_H_
# include <stdarg.h>
#endif
#ifndef _SIZE_T
# include <library/size_t.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
/*-------------------------------------------------------------------------
* SCREEN color definitions
*-------------------------------------------------------------------------*/
#define BLACK 0
#define BLUE 1
#define GREEN 2
#define CYAN 3
#define RED 4
#define MAGENTA 5
#define BROWN 6
#define LGRAY 7
#define DARKGRAY 8
#define LBLUE 9
#define LGREEN 10
#define LCYAN 11
#define LRED 12
#define LMAGENTA 13
#define YELLOW 14
#define WHITE 15
extern int LB_getchar(void);
extern char *LB_gets(
char *buf);
extern void LB_printf(
const char *__format,
...);
extern int LB_snprintf(
char *destBuf,
size_t destBufSize,
const char *format,
...);
extern void LB_sprintf(
char *__s,
const char *__format,
...);
extern void LB_vaprintf(
int attr,
const char *format,
va_list args);
extern void LB_vprintf(
const char *__format,
va_list __arg);
extern void LB_vsprintf(
char *__s,
const char *__format,
va_list __arg);
extern int LB_vsnprintf(
char *destBuf,
size_t destBufSize,
const char *format,
va_list args );
/*------------------------------ PSS Routines -----------------------------*/
extern void LB_aprintf(
int attribute,
const char *__format,
...);
extern void LB_errPrintf(
const char *where,
const char *moduleName,
int errnum,
const char *formatStr,
...);
#ifdef __cplusplus
}
#endif
#endif