GetServByPort.c revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
1N/A Translate the port number into a service name 1N/A Copyright (c) 2011, Intel Corporation 1N/A All rights reserved. This program and the accompanying materials 1N/A are licensed and made available under the terms and conditions of the BSD License 1N/A which accompanies this distribution. The full text of the license may be found at 1N/A THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 1N/A WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 1N/A Translate the port number into a service name 1N/A @param [in] Argc The number of arguments 1N/A @param [in] Argv The argument value array 1N/A @retval 0 The application exited normally. 1N/A @retval Other An error occurred. 1N/A // Determine if the service name is specified 1N/A // Translate the port number Print ( L
"ERROR - service not found, errno: %d\r\n",
errno );
Print ( L
"%a: %d, %a\r\n",