Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Issue 10556007: changes in memory mount and socket subsystem to port thttpd (Closed)

Created:
8 years, 6 months ago by vissi
Modified:
8 years, 6 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

changes in memory mount and socket subsystem to port thttpd Committed: https://code.google.com/p/naclports/source/detail?r=599

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Total comments: 15

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Total comments: 8

Patch Set 8 : #

Total comments: 6

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -27 lines) Patch
M libraries/nacl-mounts/base/KernelProxy.cc View 1 2 3 4 5 6 7 8 9 chunks +20 lines, -15 lines 0 comments Download
M libraries/nacl-mounts/memory/MemNode.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M libraries/nacl-mounts/net/BaseSocketSubSystem.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M libraries/nacl-mounts/net/Socket.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M libraries/nacl-mounts/net/SocketSubSystem.h View 2 chunks +3 lines, -1 line 0 comments Download
M libraries/nacl-mounts/net/SocketSubSystem.cc View 1 3 chunks +8 lines, -4 lines 0 comments Download
M libraries/nacl-mounts/net/TcpServerSocket.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M libraries/nacl-mounts/net/TcpSocket.h View 1 2 3 4 5 8 1 chunk +1 line, -0 lines 0 comments Download
M libraries/nacl-mounts/net/TcpSocket.cc View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -0 lines 0 comments Download
M libraries/nacl-mounts/net/newlib_compat.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M libraries/nacl-mounts/pepper/PepperMount.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M libraries/nacl-mounts/test.nacl/DevTest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M libraries/nacl-mounts/test.nacl/SimpleTest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M libraries/nacl-mounts/test.nacl/test_main.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M libraries/nacl-mounts/util/DebugPrint.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
vissi
Please take a look. https://chromiumcodereview.appspot.com/10556007/diff/11001/libraries/nacl-mounts/memory/MemNode.cc File libraries/nacl-mounts/memory/MemNode.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/11001/libraries/nacl-mounts/memory/MemNode.cc#newcode33 libraries/nacl-mounts/memory/MemNode.cc:33: | S_IWOTH; The reason for ...
8 years, 6 months ago (2012-06-15 12:09:13 UTC) #1
Evgeniy Stepanov
https://chromiumcodereview.appspot.com/10556007/diff/11001/libraries/nacl-mounts/memory/MemNode.cc File libraries/nacl-mounts/memory/MemNode.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/11001/libraries/nacl-mounts/memory/MemNode.cc#newcode10 libraries/nacl-mounts/memory/MemNode.cc:10: #include <nacl-mounts/util/DebugPrint.h> unused? https://chromiumcodereview.appspot.com/10556007/diff/11001/libraries/nacl-mounts/memory/MemNode.cc#newcode26 libraries/nacl-mounts/memory/MemNode.cc:26: if (!buf) return 0; ...
8 years, 6 months ago (2012-06-15 12:31:47 UTC) #2
vissi
https://chromiumcodereview.appspot.com/10556007/diff/11001/libraries/nacl-mounts/memory/MemNode.cc File libraries/nacl-mounts/memory/MemNode.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/11001/libraries/nacl-mounts/memory/MemNode.cc#newcode10 libraries/nacl-mounts/memory/MemNode.cc:10: #include <nacl-mounts/util/DebugPrint.h> On 2012/06/15 12:31:47, Evgeniy Stepanov wrote: > ...
8 years, 6 months ago (2012-06-15 13:03:20 UTC) #3
Evgeniy Stepanov
https://chromiumcodereview.appspot.com/10556007/diff/12003/libraries/nacl-mounts/base/KernelProxy.cc File libraries/nacl-mounts/base/KernelProxy.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/12003/libraries/nacl-mounts/base/KernelProxy.cc#newcode858 libraries/nacl-mounts/base/KernelProxy.cc:858: iaddr->sin_port = 9000; On 2012/06/15 13:03:20, vissi wrote: > ...
8 years, 6 months ago (2012-06-15 13:13:53 UTC) #4
vissi
https://chromiumcodereview.appspot.com/10556007/diff/12003/libraries/nacl-mounts/base/KernelProxy.cc File libraries/nacl-mounts/base/KernelProxy.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/12003/libraries/nacl-mounts/base/KernelProxy.cc#newcode976 libraries/nacl-mounts/base/KernelProxy.cc:976: dbgprintf("select: timedwait problem %m\n"); On 2012/06/15 13:13:53, Evgeniy Stepanov ...
8 years, 6 months ago (2012-06-18 08:35:09 UTC) #5
vissi
updated https://chromiumcodereview.appspot.com/10556007/diff/12003/libraries/nacl-mounts/base/KernelProxy.cc File libraries/nacl-mounts/base/KernelProxy.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/12003/libraries/nacl-mounts/base/KernelProxy.cc#newcode858 libraries/nacl-mounts/base/KernelProxy.cc:858: iaddr->sin_port = 9000; On 2012/06/15 13:13:53, Evgeniy Stepanov ...
8 years, 6 months ago (2012-06-18 09:54:48 UTC) #6
Evgeniy Stepanov
This change fixes some pretty serious bugs, so it probably makes sense to commit it ...
8 years, 6 months ago (2012-06-18 09:56:39 UTC) #7
vissi
included a missing patch now. https://chromiumcodereview.appspot.com/10556007/diff/3006/libraries/nacl-mounts/base/KernelProxy.cc File libraries/nacl-mounts/base/KernelProxy.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/3006/libraries/nacl-mounts/base/KernelProxy.cc#newcode975 libraries/nacl-mounts/base/KernelProxy.cc:975: dbgprintf("select: timedwait error %m\n"); ...
8 years, 6 months ago (2012-06-18 10:26:59 UTC) #8
Evgeniy Stepanov
https://chromiumcodereview.appspot.com/10556007/diff/8009/libraries/nacl-mounts/pepper/PepperMount.cc File libraries/nacl-mounts/pepper/PepperMount.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/8009/libraries/nacl-mounts/pepper/PepperMount.cc#newcode157 libraries/nacl-mounts/pepper/PepperMount.cc:157: buf->st_mode = S_IFDIR | S_IRUSR | S_IWUSR | S_IRGRP ...
8 years, 6 months ago (2012-06-18 10:46:06 UTC) #9
Evgeniy Stepanov
https://chromiumcodereview.appspot.com/10556007/diff/8009/libraries/nacl-mounts/net/TcpSocket.cc File libraries/nacl-mounts/net/TcpSocket.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/8009/libraries/nacl-mounts/net/TcpSocket.cc#newcode175 libraries/nacl-mounts/net/TcpSocket.cc:175: else if (family == PP_NETADDRESSFAMILY_IPV6) Please make it fail ...
8 years, 6 months ago (2012-06-18 10:46:45 UTC) #10
vissi
https://chromiumcodereview.appspot.com/10556007/diff/8009/libraries/nacl-mounts/net/TcpSocket.cc File libraries/nacl-mounts/net/TcpSocket.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/8009/libraries/nacl-mounts/net/TcpSocket.cc#newcode175 libraries/nacl-mounts/net/TcpSocket.cc:175: else if (family == PP_NETADDRESSFAMILY_IPV6) On 2012/06/18 10:46:45, Evgeniy ...
8 years, 6 months ago (2012-06-18 10:56:44 UTC) #11
Evgeniy Stepanov
https://chromiumcodereview.appspot.com/10556007/diff/12020/libraries/nacl-mounts/base/KernelProxy.cc File libraries/nacl-mounts/base/KernelProxy.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/12020/libraries/nacl-mounts/base/KernelProxy.cc#newcode22 libraries/nacl-mounts/base/KernelProxy.cc:22: #include "net/TcpSocket.h" not needed https://chromiumcodereview.appspot.com/10556007/diff/12020/libraries/nacl-mounts/base/KernelProxy.cc#newcode858 libraries/nacl-mounts/base/KernelProxy.cc:858: ret->GetAddress(addr); Did you ...
8 years, 6 months ago (2012-06-18 11:23:21 UTC) #12
vissi
https://chromiumcodereview.appspot.com/10556007/diff/12020/libraries/nacl-mounts/base/KernelProxy.cc File libraries/nacl-mounts/base/KernelProxy.cc (right): https://chromiumcodereview.appspot.com/10556007/diff/12020/libraries/nacl-mounts/base/KernelProxy.cc#newcode22 libraries/nacl-mounts/base/KernelProxy.cc:22: #include "net/TcpSocket.h" On 2012/06/18 11:23:21, Evgeniy Stepanov wrote: > ...
8 years, 6 months ago (2012-06-18 11:29:14 UTC) #13
Evgeniy Stepanov
8 years, 6 months ago (2012-06-18 11:37:11 UTC) #14
LGTM

On 2012/06/18 11:29:14, vissi wrote:
>
https://chromiumcodereview.appspot.com/10556007/diff/12020/libraries/nacl-mou...
> File libraries/nacl-mounts/base/KernelProxy.cc (right):
> 
>
https://chromiumcodereview.appspot.com/10556007/diff/12020/libraries/nacl-mou...
> libraries/nacl-mounts/base/KernelProxy.cc:22: #include "net/TcpSocket.h"
> On 2012/06/18 11:23:21, Evgeniy Stepanov wrote:
> > not needed
> 
> Done.
> 
>
https://chromiumcodereview.appspot.com/10556007/diff/12020/libraries/nacl-mou...
> libraries/nacl-mounts/base/KernelProxy.cc:858: ret->GetAddress(addr);
> On 2012/06/18 11:23:21, Evgeniy Stepanov wrote:
> > Did you forget to include Socket.h in the CL?
> 
> Sure
> 
>
https://chromiumcodereview.appspot.com/10556007/diff/12020/libraries/nacl-mou...
> File libraries/nacl-mounts/net/TcpSocket.cc (right):
> 
>
https://chromiumcodereview.appspot.com/10556007/diff/12020/libraries/nacl-mou...
> libraries/nacl-mounts/net/TcpSocket.cc:177: else return -1;
> On 2012/06/18 11:23:21, Evgeniy Stepanov wrote:
> > This is not checked at the caller side.
> > Just set the field to AF_UNSPEC and be done with it.
> > Should not really happen.
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698