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

Side by Side Diff: sysdeps/nacl/getpid.c

Issue 23293002: Remove linker warning when getpid() is including. (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <errno.h> 1 #include <errno.h>
2 #include <unistd.h> 2 #include <unistd.h>
3 3
4 int 4 int
5 __getpid () 5 __getpid ()
6 { 6 {
7 int pid; 7 int pid;
8 int error = __nacl_irt_getpid(&pid); 8 int error = __nacl_irt_getpid(&pid);
9 if (error != 0) { 9 if (error != 0) {
10 errno = error; 10 errno = error;
11 return -1; 11 return -1;
12 } 12 }
13 return pid; 13 return pid;
14 } 14 }
15 15
16 libc_hidden_def (__getpid) 16 libc_hidden_def (__getpid)
17 stub_warning (getpid)
18 weak_alias (__getpid, getpid) 17 weak_alias (__getpid, getpid)
19 libc_hidden_weak (getpid) 18 libc_hidden_weak (getpid)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698