Utilities: Fix an issue that the formatted text is output with wrong width.prec specifications.

It is reported that the version output is wrong under the EFI shell
environment. For example, the correct acpihelp output should be:
  ACPI Help Utility version YYMMDD-64 [MM DD YY]
  Copyright (c) 2000 - 2014 Intel Corporation
While under the EFI shell environment, it is:
  ACPI Help Utility version YYMMDD-64 [MM DD Y
  Copyrigh

The bug can be reproduced by using a format that do not have the width.prec
specified after a format that have the width.prec specified. The second
formatted output will be wrong. The root cause is AcpiUtVsnprintf() doesn't
reset the specifiers to the default values.

This patch fixes this issue. BZ 1094. Reported by Yizhe Wang, fixed by Lv
Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Applications: Enable USE_NATIVE_ALLOCATE_ZEROED environment for all applications.

We now safe to enable USE_NATIVE_ALLOCATE_ZEROED for all applications as
there are implementations in oswinxf.c, osunixxf.c and osefixf.c. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Yizhe Wang <yizhe.wang@intel.com>
acpihelp: Replace libc invocations with OSL APIs to improve portability

This patch improves portability of acpihelp by:
1. replacing printf() invocations with AcpiOsPrintf() invocations and
2. replacing the standard <string.h> invocations with string API wrapper's
   invocations
so that these invocations can be linked under various OSPM environments.
Yizhe Wang.

Signed-off-by: Yizhe Wang <yizhe.wang@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Utilities: Add generic AcpiUtStrpbrk() and AcpiUtStrtok() to improve portability

This patch implements the following native string APIs:
1. AcpiUtStrpbrk() as a native replacement of strpbrk();
2. AcpiUtStrtok() as a native replacement of strtok().

Unit tests have been done to these two functions in unix environment and no
bugs have been found. Yizhe Wang.

Signed-off-by: Yizhe Wang <yizhe.wang@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
EFI: Add EFI support for acpihelp.

This patch enables acpihelp for EFI. Yizhe Wang.

Signed-off-by: Yizhe Wang <yizhe.wang@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>