/* * PSP Software Development Kit - https://github.com/pspdev * ----------------------------------------------------------------------- * 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 * Copyright (c) 2005 James Forshaw * Copyright (c) 2005 John Kelley * */ #ifndef PSPSTDIO_KERNEL_H #define PSPSTDIO_KERNEL_H #include #include #include /** @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 */