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

Side by Side Diff: sysdeps/nacl/dl-sysdep.c

Issue 7737022: Change make-syscalls.sh to make syscall interception possible. (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: base => name Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sysdeps/nacl/closedir.c ('k') | sysdeps/nacl/irt_syscalls.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* The COOKIE is the argument to _dl_start, which is passed through from 1 /* The COOKIE is the argument to _dl_start, which is passed through from
2 the first C function argument set up by the NaCl trusted runtime's 2 the first C function argument set up by the NaCl trusted runtime's
3 startup sequence. We extract the arguments et al from here rather 3 startup sequence. We extract the arguments et al from here rather
4 than from the traditional Unix/ELF stack setup. */ 4 than from the traditional Unix/ELF stack setup. */
5 5
6 #define DL_FIND_ARG_COMPONENTS(cookie, argc, argv, envp, auxp) \ 6 #define DL_FIND_ARG_COMPONENTS(cookie, argc, argv, envp, auxp) \
7 do { \ 7 do { \
8 uint32_t *_info = (void *) (cookie); \ 8 uint32_t *_info = (void *) (cookie); \
9 int _envc = _info[1]; \ 9 int _envc = _info[1]; \
10 (argc) = _info[2]; \ 10 (argc) = _info[2]; \
11 (argv) = (void *) &_info[3]; \ 11 (argv) = (void *) &_info[3]; \
12 (envp) = &(argv)[(argc) + 1]; \ 12 (envp) = &(argv)[(argc) + 1]; \
13 (auxp) = (void *) &(envp)[_envc + 1]; \ 13 (auxp) = (void *) &(envp)[_envc + 1]; \
14 } while (0) 14 } while (0)
15 15
16 #include <sysdeps/unix/sysv/linux/dl-sysdep.c> 16 #include <linux/dl-sysdep.c>
OLDNEW
« no previous file with comments | « sysdeps/nacl/closedir.c ('k') | sysdeps/nacl/irt_syscalls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698