mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-25 04:54:59 +00:00
73 lines
1.7 KiB
C
73 lines
1.7 KiB
C
/*
|
|
* PSP Software Development Kit - http://www.pspdev.org
|
|
* -----------------------------------------------------------------------
|
|
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
|
|
*
|
|
* pspstdio_kernel.h - Interface to the kernel mode library for Stdio.
|
|
*
|
|
* Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
|
|
* Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
|
|
* Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
|
|
*
|
|
* $Id: pspstdio_kernel.h 1095 2005-09-27 21:02:16Z jim $
|
|
*/
|
|
|
|
#ifndef PSPSTDIO_KERNEL_H
|
|
#define PSPSTDIO_KERNEL_H
|
|
|
|
#include <psptypes.h>
|
|
#include <pspkerneltypes.h>
|
|
#include <pspiofilemgr.h>
|
|
|
|
/** @defgroup Stdio_Kernel Driver interface to Stdio
|
|
* This module contains the imports for the kernel's stdio routines.
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** @addtogroup Stdio_Kernel Driver interface to Stdio */
|
|
/*@{*/
|
|
|
|
/**
|
|
* Function reopen the stdout file handle to a new file
|
|
*
|
|
* @param file - The file to open.
|
|
* @param flags - The open flags
|
|
* @param mode - The file mode
|
|
*
|
|
* @return < 0 on error.
|
|
*/
|
|
int sceKernelStdoutReopen(const char *file, int flags, SceMode mode);
|
|
|
|
/**
|
|
* Function reopen the stderr file handle to a new file
|
|
*
|
|
* @param file - The file to open.
|
|
* @param flags - The open flags
|
|
* @param mode - The file mode
|
|
*
|
|
* @return < 0 on error.
|
|
*/
|
|
int sceKernelStderrReopen(const char *file, int flags, SceMode mode);
|
|
|
|
|
|
/**
|
|
* fprintf but for file descriptors
|
|
*
|
|
* @param fd - file descriptor from sceIoOpen
|
|
* @param format - format string
|
|
* @param ... - variables
|
|
*
|
|
* @return number of characters printed, <0 on error
|
|
*/
|
|
int fdprintf(int fd, const char *format, ...);
|
|
/*@}*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* PSPSTDIO_KERNEL_H */
|