From a9c12422ff2b4d8c4aec3d940302fc61b4ee39f7 Mon Sep 17 00:00:00 2001 From: darylm503 Date: Thu, 20 Sep 2012 21:01:21 +0000 Subject: StdLib, StdLibPrivateInternalFiles: Clean up comments, Remove debugging code, Define MAX_OUTPUT, the Maximum number of bytes in a single terminal output operation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13735 6f19259b-4bc3-4df7-8a09-765794883524 --- StdLib/Include/sys/stat.h | 10 ++++++---- StdLib/Include/sys/syslimits.h | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'StdLib/Include/sys') diff --git a/StdLib/Include/sys/stat.h b/StdLib/Include/sys/stat.h index 6c5d5a8078..12520be83a 100644 --- a/StdLib/Include/sys/stat.h +++ b/StdLib/Include/sys/stat.h @@ -1,6 +1,6 @@ /** @file - Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at @@ -90,16 +90,18 @@ struct stat { /* The Octal access modes, above, fall into the Hex mask 0x00000FFF. Traditionally, the remainder of the flags are specified in Octal but they are expressed in Hex here for modern clarity. + + The basic file types, specified within 0x0000F000, are mutually exclusive. */ #define _S_IFMT 0x000FF000 ///< type-of-file mask #define _S_IFIFO 0x00001000 ///< named pipe (fifo) -#define _S_IFCHR 0x00002000 ///< character special +#define _S_IFCHR 0x00002000 ///< character special device #define _S_IFDIR 0x00004000 ///< directory -#define _S_IFBLK 0x00006000 ///< block special +#define _S_IFBLK 0x00006000 ///< block special device #define _S_IFREG 0x00008000 ///< regular #define _S_IFSOCK 0x0000C000 ///< socket #define _S_ITTY 0x00010000 ///< File connects to a TTY device -#define _S_IWTTY 0x00020000 ///< TTY receives Wide characters +#define _S_IWTTY 0x00020000 ///< TTY sends and receives Wide characters #define _S_ICONSOLE 0x00030000 ///< UEFI Console Device /* UEFI specific (FAT file system) File attributes. diff --git a/StdLib/Include/sys/syslimits.h b/StdLib/Include/sys/syslimits.h index bee810cc12..9515e8f570 100644 --- a/StdLib/Include/sys/syslimits.h +++ b/StdLib/Include/sys/syslimits.h @@ -1,7 +1,7 @@ /** @file Platform specific values for . - Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at @@ -50,6 +50,7 @@ #define ARGC_MAX (64) ///< Maximum value for argc. #define MAX_INPUT 255 ///< Maximum bytes in terminal input. +#define MAX_OUTPUT 255 ///< Maximum bytes in terminal output. #define NAME_MAX 255 ///< Maximum bytes in a file name. #ifndef OPEN_MAX #define OPEN_MAX 20 ///< Maximum open files per process. -- cgit v1.2.3