[if gte mso 9]>

[edk2] [PATCH] StdLib: Fix some build problems and obscure bugs.

Subject: [edk2] [PATCH] StdLib: Fix some build problems and obscure bugs.

From: "Mcdaniel, Daryl" <daryl.mcdaniel@intel.com>

To: "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>, "Bjorge, Erik C" <erik.c.bjorge@intel.com>, "Carsey, Jaben" <jaben.carsey@intel.com>

Date: 2014-09-10 07:23:55

Erik, Jaben; Could you please review the attached patches?

 

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:

 

Thanks,

Daryl McDaniel