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 <daryl.mcdaniel@intel.com> Reviewed-by: Jaben Carsey <jcarsey@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13735 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
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.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Platform specific values for <limits.h>.
|
||||
|
||||
Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
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.
|
||||
|
Reference in New Issue
Block a user