VirtualBox

Ignore:
Timestamp:
Mar 12, 2019 12:40:12 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129295
Message:

EFI: First step in UDK2018 merge. Does not build yet.

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/StdLib/BsdSocketLib/setsockopt.c

    r58466 r77662  
    22  Implement the setsockopt API.
    33
    4   Copyright (c) 2011, Intel Corporation
    5   All rights reserved. This program and the accompanying materials
    6   are licensed and made available under the terms and conditions of the BSD License
    7   which accompanies this distribution.  The full text of the license may be found at
    8   http://opensource.org/licenses/bsd-license.php
     4  Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
     5  This program and the accompanying materials are licensed and made available under
     6  the terms and conditions of the BSD License that accompanies this distribution.
     7  The full text of the license may be found at
     8  http://opensource.org/licenses/bsd-license.php.
    99
    1010  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    1111  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    12 
    1312**/
    14 
    1513#include <SocketInternals.h>
    1614
    1715
    18 /**
    19   Set the socket options
     16/** Set the socket options
    2017
    2118  The
     
    3128  @return   This routine returns zero (0) upon success and -1 when an error occurs.
    3229            In the case of an error, ::errno contains more details.
    33 
    3430**/
    3531int
     
    4440  int OptionStatus;
    4541  EFI_SOCKET_PROTOCOL * pSocketProtocol;
    46   EFI_STATUS Status;
    4742
    48   //
    4943  //  Locate the context for this socket
    50   //
    5144  pSocketProtocol = BslFdToSocketProtocol ( s, NULL, &errno );
    5245  if ( NULL != pSocketProtocol ) {
    53     //
    5446    //  Set the socket option
    55     //
    56     Status = pSocketProtocol->pfnOptionSet ( pSocketProtocol,
    57                                              level,
    58                                              option_name,
    59                                              option_value,
    60                                              option_len,
    61                                              &errno );
     47    (void) pSocketProtocol->pfnOptionSet (pSocketProtocol,
     48                                          level,
     49                                          option_name,
     50                                          option_value,
     51                                          option_len,
     52                                          &errno );
    6253  }
    63 
    64   //
    6554  //  Return the operation stauts
    66   //
    6755  OptionStatus = ( 0 == errno ) ? 0 : -1;
    6856  return OptionStatus;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette