StdLib: Fix some build problems and obscure bugs.
StdLib\ BsdSocketLib\ ns_print.c Use "%lu" format instead of "%Lu". A capital 'L' specifies (long double) in print formats. Add a cast from char to (unsigned int) to match its sprintf format. res_debug.c Use "%lu" format instead of "%Lu". A capital 'L' specifies (long double) in print formats. EfiSocketLib\ Socket.c Update copyright & correct formatting Include\ sys\ EfiCdefs.h Update copyright date Change type of LONGN and ULONGN to INTN and UINTN, respectively. errno.h Update copyright date Add enum member '__ESUCCESS = 0' fcntl.h Update copyright date Improve comment for O_EXCL stat.h Update copyright date Reorder the S_* flags Put the S_* predicate macros in the same order as their flag definitions Add a function header comment to the stat() function declaration. errno.h Update copyright date Define new ESUCCESS error code wchar.h Update copyright date Correct the description of the Nptr parameter to the wcstol, wcstoll, wcstoul, and wcstoull functions. x86\float.h Update copyright date Define 'long double' limits for non-Microsoft compilers LibC\ Containers\Queues\Fifo.c Rewrite to make more robust and secure (zeros out old data) StdLib\realpath.c Update copyright date Reformat descriptive comment for realpath() Add terminating CRLF Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: daryl.mcdaniel@intel.com Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com> Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16096 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
committed by
darylm503
parent
9fc9f4d8b4
commit
0164fc8e76
@@ -2,7 +2,7 @@
|
||||
This file includes the definitions for open and fcntl described by POSIX
|
||||
for <fcntl.h>; it also includes related kernel definitions.
|
||||
|
||||
Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2010 - 2014, 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 which
|
||||
accompanies this distribution. The full text of the license may be found
|
||||
@@ -70,7 +70,7 @@
|
||||
#define O_APPEND 0x00000008 ///< set append mode
|
||||
#define O_CREAT 0x00000200 ///< create if nonexistent
|
||||
#define O_TRUNC 0x00000400 ///< truncate to zero length
|
||||
#define O_EXCL 0x00000800 ///< error if already exists
|
||||
#define O_EXCL 0x00000800 ///< Grant EXCLusive access, or error if already exists and O_CREAT
|
||||
|
||||
#define O_DIRECTORY 0x00001000 ///< error if path is not a directory
|
||||
#define O_NOCTTY 0x00002000 ///< Don't make this the controlling TTY
|
||||
|
Reference in New Issue
Block a user