Changeset 77662 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/StdLib/BsdSocketLib/setsockopt.c
- Timestamp:
- Mar 12, 2019 12:40:12 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 129295
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776 /vendor/edk2/current 103735-103757,103769-103776,129194-129237
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/StdLib/BsdSocketLib/setsockopt.c
r58466 r77662 2 2 Implement the setsockopt API. 3 3 4 Copyright (c) 2011 , Intel Corporation5 All rights reserved. This program and the accompanying materials6 are licensed and made available under the terms and conditions of the BSD License7 which accompanies this distribution.The full text of the license may be found at8 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. 9 9 10 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 12 13 12 **/ 14 15 13 #include <SocketInternals.h> 16 14 17 15 18 /** 19 Set the socket options 16 /** Set the socket options 20 17 21 18 The … … 31 28 @return This routine returns zero (0) upon success and -1 when an error occurs. 32 29 In the case of an error, ::errno contains more details. 33 34 30 **/ 35 31 int … … 44 40 int OptionStatus; 45 41 EFI_SOCKET_PROTOCOL * pSocketProtocol; 46 EFI_STATUS Status;47 42 48 //49 43 // Locate the context for this socket 50 //51 44 pSocketProtocol = BslFdToSocketProtocol ( s, NULL, &errno ); 52 45 if ( NULL != pSocketProtocol ) { 53 //54 46 // 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 ); 62 53 } 63 64 //65 54 // Return the operation stauts 66 //67 55 OptionStatus = ( 0 == errno ) ? 0 : -1; 68 56 return OptionStatus;
Note:
See TracChangeset
for help on using the changeset viewer.