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

Side by Side Diff: src/d8-posix.cc

Issue 9071004: Add netbsd support to gyp build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove strict-aliasing warning Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/d8.gyp ('k') | src/platform-openbsd.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Modern Linux has the waitid call, which is like waitpid, but more useful 359 // Modern Linux has the waitid call, which is like waitpid, but more useful
360 // if you want a timeout. If we don't have waitid we can't limit the time 360 // if you want a timeout. If we don't have waitid we can't limit the time
361 // waiting for the process to exit without losing the information about 361 // waiting for the process to exit without losing the information about
362 // whether it exited normally. In the common case this doesn't matter because 362 // whether it exited normally. In the common case this doesn't matter because
363 // we don't get here before the child has closed stdout and most programs don't 363 // we don't get here before the child has closed stdout and most programs don't
364 // do that before they exit. 364 // do that before they exit.
365 // 365 //
366 // We're disabling usage of waitid in Mac OS X because it doens't work for us: 366 // We're disabling usage of waitid in Mac OS X because it doens't work for us:
367 // a parent process hangs on waiting while a child process is already a zombie. 367 // a parent process hangs on waiting while a child process is already a zombie.
368 // See http://code.google.com/p/v8/issues/detail?id=401. 368 // See http://code.google.com/p/v8/issues/detail?id=401.
369 #if defined(WNOWAIT) && !defined(ANDROID) && !defined(__APPLE__) 369 #if defined(WNOWAIT) && !defined(ANDROID) && !defined(__APPLE__) \
370 && !defined(__NetBSD__)
370 #if !defined(__FreeBSD__) 371 #if !defined(__FreeBSD__)
371 #define HAS_WAITID 1 372 #define HAS_WAITID 1
372 #endif 373 #endif
373 #endif 374 #endif
374 375
375 376
376 // Get exit status of child. 377 // Get exit status of child.
377 static bool WaitForChild(int pid, 378 static bool WaitForChild(int pid,
378 ZombieProtector& child_waiter, 379 ZombieProtector& child_waiter,
379 struct timeval& start_time, 380 struct timeval& start_time,
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory)); 679 os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory));
679 os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment)); 680 os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment));
680 os_templ->Set(String::New("unsetenv"), 681 os_templ->Set(String::New("unsetenv"),
681 FunctionTemplate::New(UnsetEnvironment)); 682 FunctionTemplate::New(UnsetEnvironment));
682 os_templ->Set(String::New("umask"), FunctionTemplate::New(SetUMask)); 683 os_templ->Set(String::New("umask"), FunctionTemplate::New(SetUMask));
683 os_templ->Set(String::New("mkdirp"), FunctionTemplate::New(MakeDirectory)); 684 os_templ->Set(String::New("mkdirp"), FunctionTemplate::New(MakeDirectory));
684 os_templ->Set(String::New("rmdir"), FunctionTemplate::New(RemoveDirectory)); 685 os_templ->Set(String::New("rmdir"), FunctionTemplate::New(RemoveDirectory));
685 } 686 }
686 687
687 } // namespace v8 688 } // namespace v8
OLDNEW
« no previous file with comments | « src/d8.gyp ('k') | src/platform-openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698