aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpppp <pppp@yandex-team.ru>2022-02-10 16:51:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:52 +0300
commitfcb328858da947c52819d89cea4a4357cc207ae4 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb
parent2717b42639e035e1da0e7963a61d9fb71a3abcee (diff)
downloadydb-fcb328858da947c52819d89cea4a4357cc207ae4.tar.gz
Restoring authorship annotation for <pppp@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--util/network/socket.cpp16
-rw-r--r--util/network/socket.h2
-rw-r--r--util/system/context_i686.asm42
3 files changed, 30 insertions, 30 deletions
diff --git a/util/network/socket.cpp b/util/network/socket.cpp
index aee4f67fba..4f6e804346 100644
--- a/util/network/socket.cpp
+++ b/util/network/socket.cpp
@@ -360,14 +360,14 @@ size_t GetMaximumSegmentSize(SOCKET s) {
return 8192;
}
-size_t GetMaximumTransferUnit(SOCKET /*s*/) {
- // for someone who'll dare to write it
- // Linux: there rummored to be IP_MTU getsockopt() request
- // FreeBSD: request to a socket of type PF_ROUTE
- // with peer address as a destination argument
- return 8192;
-}
-
+size_t GetMaximumTransferUnit(SOCKET /*s*/) {
+ // for someone who'll dare to write it
+ // Linux: there rummored to be IP_MTU getsockopt() request
+ // FreeBSD: request to a socket of type PF_ROUTE
+ // with peer address as a destination argument
+ return 8192;
+}
+
int GetSocketToS(SOCKET s) {
TOpaqueAddr addr;
diff --git a/util/network/socket.h b/util/network/socket.h
index c6ae7580b9..40c8648b40 100644
--- a/util/network/socket.h
+++ b/util/network/socket.h
@@ -366,7 +366,7 @@ public:
inline void ShutDown(int mode) const {
::ShutDown(Fd(), mode);
}
-
+
void Close();
ssize_t Send(const void* data, size_t len);
diff --git a/util/system/context_i686.asm b/util/system/context_i686.asm
index dc864bc31e..11f8cecc8e 100644
--- a/util/system/context_i686.asm
+++ b/util/system/context_i686.asm
@@ -1,23 +1,23 @@
- [bits 32]
-
- %define MJB_BX 0
- %define MJB_SI 1
- %define MJB_DI 2
- %define MJB_BP 3
- %define MJB_SP 4
- %define MJB_PC 5
- %define MJB_RSP MJB_SP
- %define MJB_SIZE 24
-
- %define LINKAGE 4
- %define PCOFF 0
- %define PTR_SIZE 4
+ [bits 32]
+
+ %define MJB_BX 0
+ %define MJB_SI 1
+ %define MJB_DI 2
+ %define MJB_BP 3
+ %define MJB_SP 4
+ %define MJB_PC 5
+ %define MJB_RSP MJB_SP
+ %define MJB_SIZE 24
+
+ %define LINKAGE 4
+ %define PCOFF 0
+ %define PTR_SIZE 4
+
+ %define PARMS LINKAGE
+ %define JMPBUF PARMS
+ %define JBUF PARMS
+ %define VAL JBUF + PTR_SIZE
- %define PARMS LINKAGE
- %define JMPBUF PARMS
- %define JBUF PARMS
- %define VAL JBUF + PTR_SIZE
-
EXPORT __mylongjmp
mov ecx, [esp + JBUF]
mov eax, [esp + VAL]
@@ -27,8 +27,8 @@ EXPORT __mylongjmp
mov edi, [ecx + MJB_DI*4]
mov ebp, [ecx + MJB_BP*4]
mov esp, [ecx + MJB_SP*4]
- jmp edx
-
+ jmp edx
+
EXPORT __mysetjmp
mov eax, [esp + JMPBUF]
mov [eax + MJB_BX*4], ebx