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

Issue 9969049: added several system call hooks for future sockets implementation (Closed)

Created:
8 years, 8 months ago by vissi
Modified:
8 years, 8 months ago
CC:
native-client-reviews_googlegroups.com, Mark Seaborn
Base URL:
http://git.chromium.org/native_client/nacl-glibc.git@master
Visibility:
Public.

Description

added several system call hooks for future sockets implementation FOA, select or poll would be implemented, of course. Should I add __nacl_irt_... call hooks for common berkeley socket calls (accept, bind, listen, connect, send, recv, gethostby[name,addr], sendto, recvfrom, [set,get]sockopt)? BUG= TEST= Committed: https://git.chromium.org/gitweb?p=native_client/nacl-glibc.git;a=commit;h=0533bbb

Patch Set 1 #

Patch Set 2 : rebased to HEAD #

Patch Set 3 : added more syscalls, getcwd and other calls got tested in my app #

Total comments: 4

Patch Set 4 : added the calls to syscalls.list (like x86_64) #

Patch Set 5 : syntax fixes #

Patch Set 6 : minor corrections #

Patch Set 7 : fixed interceptors w/ @khim's advice #

Total comments: 1

Patch Set 8 : fixed @pasko suggestions on headers and comments #

Total comments: 8

Patch Set 9 : fixed warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -35 lines) Patch
M elf/Versions View 1 2 3 2 chunks +27 lines, -1 line 0 comments Download
M make_sysd_rules.py View 1 2 3 4 5 6 7 1 chunk +0 lines, -17 lines 0 comments Download
M sysdeps/nacl/irt_syscalls.h View 1 2 3 4 5 6 7 8 5 chunks +62 lines, -1 line 0 comments Download
M sysdeps/nacl/irt_syscalls.c View 1 2 3 4 5 2 chunks +77 lines, -0 lines 0 comments Download
M sysdeps/nacl/syscalls.list View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M sysdeps/nacl/sysdep.h View 1 2 3 4 5 6 7 8 7 chunks +147 lines, -15 lines 0 comments Download
M sysdeps/unix/make-syscalls.sh View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M sysdeps/unix/sysv/linux/sys/syscall.h View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
vissi
Hi, I added several __nacl_irt hooks for future sockets implementation.
8 years, 8 months ago (2012-04-02 12:54:22 UTC) #1
vissi
On 2012/04/02 12:54:22, vissi wrote: > Hi, > I added several __nacl_irt hooks for future ...
8 years, 8 months ago (2012-04-02 12:58:48 UTC) #2
pasko-google - do not use
I would prefer if all hooks you add get tested first, then new set of ...
8 years, 8 months ago (2012-04-02 13:00:36 UTC) #3
vissi
On 2012/04/02 13:00:36, pasko wrote: > I would prefer if all hooks you add get ...
8 years, 8 months ago (2012-04-09 11:34:58 UTC) #4
Evgeniy Stepanov
https://chromiumcodereview.appspot.com/9969049/diff/5001/sysdeps/nacl/sysdep.h File sysdeps/nacl/sysdep.h (right): https://chromiumcodereview.appspot.com/9969049/diff/5001/sysdeps/nacl/sysdep.h#newcode268 sysdeps/nacl/sysdep.h:268: *err = __nacl_irt_epoll_pwait (epfd, events, maxevents, timeout, sigmask, sigsetsize); ...
8 years, 8 months ago (2012-04-09 11:45:13 UTC) #5
khim
https://chromiumcodereview.appspot.com/9969049/diff/5001/sysdeps/nacl/sysdep.h File sysdeps/nacl/sysdep.h (right): https://chromiumcodereview.appspot.com/9969049/diff/5001/sysdeps/nacl/sysdep.h#newcode1195 sysdeps/nacl/sysdep.h:1195: void *sigmask) // const sigset_t *sigmask? On 2012/04/09 11:45:13, ...
8 years, 8 months ago (2012-04-09 12:21:11 UTC) #6
Evgeniy Stepanov
Per offline discussion, we'd like to be more like linux. I.e., replace all these new ...
8 years, 8 months ago (2012-04-09 12:31:26 UTC) #7
Mark Seaborn
On 9 April 2012 05:31, <eugenis@google.com> wrote: > Per offline discussion, we'd like to be ...
8 years, 8 months ago (2012-04-09 15:20:08 UTC) #8
vissi
On 2012/04/09 12:31:26, Evgeniy Stepanov wrote: > Per offline discussion, we'd like to be more ...
8 years, 8 months ago (2012-04-11 13:28:06 UTC) #9
vissi
On 2012/04/11 13:28:06, vissi wrote: > On 2012/04/09 12:31:26, Evgeniy Stepanov wrote: > > Per ...
8 years, 8 months ago (2012-04-12 16:57:48 UTC) #10
pasko-google - do not use
I am reluctant to approving a change based on syscalls.list. Especially via extending argument parsing ...
8 years, 8 months ago (2012-04-13 08:44:13 UTC) #11
pasko-google - do not use
https://chromiumcodereview.appspot.com/9969049/diff/15001/make_sysd_rules.py File make_sysd_rules.py (right): https://chromiumcodereview.appspot.com/9969049/diff/15001/make_sysd_rules.py#newcode94 make_sysd_rules.py:94: # "socket/accept.c", commenting code is not a good way ...
8 years, 8 months ago (2012-04-13 08:44:26 UTC) #12
khim
On 2012/04/13 08:44:13, pasko wrote: > I am reluctant to approving a change based on ...
8 years, 8 months ago (2012-04-13 09:07:10 UTC) #13
pasko-google - do not use
On 2012/04/13 09:07:10, khim wrote: > > This does not make us closer to upstream, ...
8 years, 8 months ago (2012-04-13 09:30:24 UTC) #14
vissi
On 2012/04/13 09:30:24, pasko wrote: > On 2012/04/13 09:07:10, khim wrote: > > > This ...
8 years, 8 months ago (2012-04-13 10:36:09 UTC) #15
Evgeniy Stepanov
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/nacl/irt_syscalls.h File sysdeps/nacl/irt_syscalls.h (right): https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/nacl/irt_syscalls.h#newcode67 sysdeps/nacl/irt_syscalls.h:67: extern int (*__nacl_irt_recv) (int sockfd, void *buf, size_t len, ...
8 years, 8 months ago (2012-04-13 11:49:35 UTC) #16
khim
Few minor nits, o/w LGTM https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/nacl/irt_syscalls.h File sysdeps/nacl/irt_syscalls.h (right): https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/nacl/irt_syscalls.h#newcode67 sysdeps/nacl/irt_syscalls.h:67: extern int (*__nacl_irt_recv) (int ...
8 years, 8 months ago (2012-04-13 11:56:48 UTC) #17
vissi
8 years, 8 months ago (2012-04-13 12:12:36 UTC) #18
On 2012/04/13 11:56:48, khim wrote:
> Few minor nits, o/w LGTM
> 
>
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/nacl/irt_sy...
> File sysdeps/nacl/irt_syscalls.h (right):
> 
>
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/nacl/irt_sy...
> sysdeps/nacl/irt_syscalls.h:67: extern int (*__nacl_irt_recv) (int sockfd,
void
> *buf, size_t len, int flags, int* ret);
> On 2012/04/13 11:49:35, Evgeniy Stepanov wrote:
> > 80 chars here and below
> 
>
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/nacl/sysdep.h
> File sysdeps/nacl/sysdep.h (right):
> 
>
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/nacl/sysdep...
> sysdeps/nacl/sysdep.h:47: 
> Why this line is here?
> 
>
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/nacl/sysdep...
> sysdeps/nacl/sysdep.h:244: // here flags is size
> Remove this comment. It's not help future reader at all.
> 
>
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/unix/make-s...
> File sysdeps/unix/make-syscalls.sh (left):
> 
>
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/unix/make-s...
> sysdeps/unix/make-syscalls.sh:2: 
> Please return these lines back, no need to create spurious changes between
> nacl-glibc and upstream glibc.
> 
>
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/unix/make-s...
> sysdeps/unix/make-syscalls.sh:5: 
> Ditto.
> 
>
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/unix/sysv/l...
> File sysdeps/unix/sysv/linux/sys/syscall.h (right):
> 
>
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/unix/sysv/l...
> sysdeps/unix/sysv/linux/sys/syscall.h:26: # ifdef __i386__
> #ifdef (without space before ifdef to line up with #endif)
> 
>
https://chromiumcodereview.appspot.com/9969049/diff/19001/sysdeps/unix/sysv/l...
> sysdeps/unix/sysv/linux/sys/syscall.h:27: #define __NR_accept		325
> Here it'll be better to use
> #  define
> but this is minor issue.

thx. fixed

Powered by Google App Engine
This is Rietveld 408576698