summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
Commit message (Collapse)AuthorAgeFilesLines
* [NaCl SDK] Add pepper_40 to naclsdk manifestSam Clegg2014-12-081-43/+10
| | | | | | | | | | | Remove oldest SDK version (pepper_32) to keep total number of published SDKs constant. R=binji@chromium.org, binji Review URL: https://codereview.chromium.org/761553002 Cr-Commit-Position: refs/heads/master@{#307369}
* [NaCl SDK] Messaging example (demonstrates postMessageAndAwaitResponse)binji2014-12-057-0/+269
| | | | | | | | | BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/781623002 Cr-Commit-Position: refs/heads/master@{#307048}
* [NaCl SDK] nacl_io: Fix check of nanoseconds in Utimes testbinji2014-12-041-8/+18
| | | | | | | | | | | | | | | | | | | | | | | The previous code was checking to make sure the seconds and nanoseconds values are both greater than or equal to the same values from a time in the past. This is not true when the nanoseconds value wraps around, so a more complex check is required. See a failure here: http://build.chromium.org/p/client.nacl.sdk/builders/linux-sdk-multi/builds/9092/steps/standalone%20test%3A%20nacl_io_test/logs/stdio [ RUN ] KernelProxyTest.Utimes kernel_proxy_test.cc:618: Failure Expected: (buf.st_atim.tv_nsec) >= (tm.tv_usec * 1000), actual: 6000 vs 999998000 kernel_proxy_test.cc:620: Failure Expected: (buf.st_mtim.tv_nsec) >= (tm.tv_usec * 1000), actual: 6000 vs 999998000 BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/748913004 Cr-Commit-Position: refs/heads/master@{#306915}
* Revert "[NaCl SDK] nacl_io: remove getcwd() implemenation (rely on ↵sbc2014-12-033-1/+47
| | | | | | | | | | | | | | | | | glibc/newlib versions)" This reverts commit cd49bee13b46af6a4768836b8f89707d0e15f1f6. This change should have have landed until the corresponding NaCl change made it in: https://codereview.chromium.org/759583003/ This should fix the recent failures on the naclports tree. R=bradnelson Review URL: https://codereview.chromium.org/765933003 Cr-Commit-Position: refs/heads/master@{#306633}
* Update documentation for nacl_io mount for html5fs.benwells2014-12-011-1/+5
| | | | | | | | | | | The source parameter is used, and is necessary for some filesystem types. BUG=437687 Review URL: https://codereview.chromium.org/768033002 Cr-Commit-Position: refs/heads/master@{#306265}
* [NaCl SDK] Fix bug in update_nacl_manifest.py after r304521binji2014-12-011-1/+1
| | | | | | | | | BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/772633002 Cr-Commit-Position: refs/heads/master@{#306262}
* [NaCl SDK] Update sdktools bundle to r306188binji2014-12-012-12/+12
| | | | | | | | | | | | | | | | This includes the following: 242971 - [NaCl SDK] Fix bug in nacl_sdk tool when SHA or size is incorrect. 240381 - [NaCl SDK] update cloud storage URL (commondatastorage -> storage) 233830 - Fix fancy_urllib license for downstream Android WebView tool 232541 - [NaCl SDK] Rename README to README.chromium in third_party/fancy_urllib BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/766283002 Cr-Commit-Position: refs/heads/master@{#306260}
* [NaCl SDK] Add extract_artifacts.py script.binji2014-12-012-0/+163
| | | | | | | | | | | | This is used in conjunction with build_artifacts.py to extract the binary resources needed for the Native Client SDK. BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/735833003 Cr-Commit-Position: refs/heads/master@{#306253}
* [NaCl SDK] Silence the spurious presubmit warning in verify_filelist.pybinji2014-12-011-1/+2
| | | | | | | | | BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/767313002 Cr-Commit-Position: refs/heads/master@{#306247}
* [NaCl SDK] nacl_io: remove getcwd() implemenation (rely on glibc/newlib ↵sbc2014-12-013-47/+1
| | | | | | | | | | | | | | | | | | | versions) Previsouly we didn't have a working version of getcwd() in newlib (libnacl) but we do now. Secondly the resean for intercepting getcwd() directly was due to gtest calling this in a static constructor. gtest was recently changed to handle the failure of getcwd() under NaCl so this workaround is no longer needed. BUG=437075 Review URL: https://codereview.chromium.org/756333005 Cr-Commit-Position: refs/heads/master@{#306220}
* webui: Change all url('...') and url("...") to just url(...).Dan Beam2014-11-261-2/+2
| | | | | | | | | | | | | Same meaning; less bytes. R=estade@chromium.org, jamiewalch@chromium.org, sbc@chromium.org TBR=cpu@chromium.org BUG=none TEST=smaller chrome installer Review URL: https://codereview.chromium.org/755223003 Cr-Commit-Position: refs/heads/master@{#305778}
* Honor O_NONBLOCK for tty devices.Brad Nelson2014-11-252-2/+35
| | | | | | | | | | | | Added test of non-blocking for tty. BUG=None TEST=local emacs build + tty_test R=sbc@chromium.org, petewil@chromium.org Review URL: https://codereview.chromium.org/756873002 Cr-Commit-Position: refs/heads/master@{#305682}
* Add python coverage module to third_partysbc2014-11-243-2/+11
| | | | | | | | | | | | | | Also add a top level Makefile to native_client_sdk which excersises this. Add exception to checklicenses.py since upstream does not include license information in their source files. BUG=435348,434551 Review URL: https://codereview.chromium.org/727003004 Cr-Commit-Position: refs/heads/master@{#305439}
* Use the new nacl_core_sdk mode for package_version within Chromium.dyen2014-11-201-2/+2
| | | | | | | | | | | | | | | | | A new "nacl_core_sdk" mode has been introduced for NaCl toolchain packages which allows the NaCl tree to specify what external facing users of the toolchain should download. Currently it only filters out the arm_trusted package which is not useful for Chromium. Eventually we will also use this to filter out a set of "raw" toolchains which do not contain the core_sdk. R=bradnelson@chromium.org, dschuff@chromium.org BUG=None TEST=trybots Review URL: https://codereview.chromium.org/735163002 Cr-Commit-Position: refs/heads/master@{#305102}
* Initial draft of PNaCl bitcode files.kschimpf2014-11-2013-35/+11977
| | | | | | | | | | | | | | | Focus of this CL is on the PNaCl records that can appear in bitcode files. A subsequent CL will add how the records are converted to bitcode sequences. Replaces CL: https://codereview.chromium.org/364463002 BUG=None NOTRY=True (documentation only change). Review URL: https://codereview.chromium.org/725333002 Cr-Commit-Position: refs/heads/master@{#305041}
* [NaCl SDK] Fix mysterious gtest failure in Html5FsTest::OpenForCreatesbc2014-11-201-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | The failure seems to have been triggered from the recent gtest update. The exact revision seems to be: https://code.google.com/p/googletest/source/detail?r=693 The issue only effects builds made with our older gcc 4.4 toolchain. Neither asan nor valgrind report any issues with the linux run of this test, and PNaCl build also passes just fine so I'm assuming is a compiler bug in the older toolchain. The fix I found was to use "const char*" over "char []" for local string constants. In fact just adding a const alone and leaving the [] syntax also fixes the issue. Most likely there is an underlying compiler bug that still needs to be addressed. BUG=434821 Review URL: https://codereview.chromium.org/740023002 Cr-Commit-Position: refs/heads/master@{#304959}
* Add --no_cookies to gonacl push makefile.Brad Nelson2014-11-181-1/+1
| | | | | | | | | | | | | Without this if you have other cached credentials, appcfg.py can get confused. BUG=None TEST=local R=binji@chromium.org Review URL: https://codereview.chromium.org/741513002 Cr-Commit-Position: refs/heads/master@{#304645}
* Making gonacl.com/fire link to codelabs.Brad Nelson2014-11-181-0/+2
| | | | | | | | | | BUG=None TEST=local R=binji@chromium.org, sbc@chromium.org Review URL: https://codereview.chromium.org/734073005 Cr-Commit-Position: refs/heads/master@{#304637}
* Fixing typos / grammar in cds2014.Brad Nelson2014-11-1810-30/+30
| | | | | | | | | | BUG=None TEST=None R=binji@chromium.org, jmedley@chromium.org Review URL: https://codereview.chromium.org/737703002 Cr-Commit-Position: refs/heads/master@{#304635}
* Fixing capitaliztion mismatch.Brad Nelson2014-11-183-3/+3
| | | | | | | | | | BUG=None TEST=None TBR=binji@chromium.org,jmedley@chromium.org Review URL: https://codereview.chromium.org/737483005 Cr-Commit-Position: refs/heads/master@{#304570}
* [NaCl SDK] Build tool binaries for the host rather than forcing ia32.sbc2014-11-181-3/+3
| | | | | | | | | | This means the arch of the tools will match the arch of the machine building the SDK. Previously we have forced the tools to be 32-bit for maximum portability. Review URL: https://codereview.chromium.org/706473003 Cr-Commit-Position: refs/heads/master@{#304560}
* [NaCl SDK] Consistent calling/naming of main function in python scriptsSam Clegg2014-11-1720-41/+47
| | | | | | | | R=binji@chromium.org Review URL: https://codereview.chromium.org/726183002 Cr-Commit-Position: refs/heads/master@{#304521}
* Fixing title capitalization and inconsistency for nacl cds2014 codelab.Brad Nelson2014-11-175-7/+7
| | | | | | | | | R=binji@chromium.org, jmedley@chromium.org BUG=None Review URL: https://codereview.chromium.org/716243004 Cr-Commit-Position: refs/heads/master@{#304518}
* Revising cds2014 samples based on first round of feedback.Brad Nelson2014-11-176-30/+25
| | | | | | | | | | | | | | | Adding water.cc to commit history. Sample changed to reduce the need to understand row-major, changed doc to match. Changing python codelab to run locally. Pulling in new web devenv version with better copy paste. BUG=None R=jmedley@chromium.org TBR=binji@chromium.org Review URL: https://codereview.chromium.org/731323003 Cr-Commit-Position: refs/heads/master@{#304492}
* [NaCL SDK] Require python 2.7 for all python scriptssbc2014-11-1712-26/+25
| | | | | | | | | Update docs to reflect that python 2.6 is no longer supported. Review URL: https://codereview.chromium.org/733733002 Cr-Commit-Position: refs/heads/master@{#304456}
* Adding two codelabs for cds2014.Brad Nelson2014-11-1426-178/+1407
| | | | | | | | | | | | | | Adding two codelabs: * PNaCl web devenv used to deploy a pnacl python app. * devenv chrome app used to learn ppapi graphics 2d. BUG=None TEST=local + manual R=binji@chromium.org Review URL: https://codereview.chromium.org/731453002 Cr-Commit-Position: refs/heads/master@{#304304}
* [NaCl SDK] Update naclports revision 796184d->e53078cSam Clegg2014-11-143-3/+3
| | | | | | | | | | | | | | | | | | | | | | | This brings in the following changes (the most recent of which is needed to fix the current issues on the linux builder): e53078c Fix ARM builds of various ports 066f8a5 Fix libwebp ARM build cca708d Add support for new arm gcc version (4.9.2) 5f61a48 Enable running of zlib example test 52c2855 Don't export NACL* tool variable in nacl-env.sh f0e957f When NACPORTS_QUICKBUILD is set only translate to single arch 2a431bd Update fix for detecting PNaCl install location b7308f2 Add 'depends' command that lists dependencies for a package. b66d118 Add gettext dependency to python3 ded3409 Adding jseval utility for use in open web devenv. BUG=432273 R=binji@chromium.org Review URL: https://codereview.chromium.org/721043002 Cr-Commit-Position: refs/heads/master@{#304265}
* [NaCl SDK] nacl_io: reading 0 bytes from a socket shouldn't be an error.binji2014-11-146-5/+31
| | | | | | | | | | | | | | | | | In nacl_io, we try receiving from sockets before the user requests it to improve latency. When we get a recv of 0, that represents the end of the stream. This can occur when the remote socket shuts down the sending end of its socket. Previously we treated this as an error, but that is incorrect; it is legal to continue sending and receiving from this socket until it is fully closed. BUG=423110 R=noelallen@chromium.org Review URL: https://codereview.chromium.org/659203002 Cr-Commit-Position: refs/heads/master@{#304238}
* [NaCl SDK] Update stat times for memfs.Ben Smith2014-11-145-1/+291
| | | | | | | | | BUG= https://code.google.com/p/naclports/issues/detail?id=159 R=sbc@chromium.org Review URL: https://codereview.chromium.org/690583007 Cr-Commit-Position: refs/heads/master@{#304151}
* [NaCl SDK] Silence python unit testsSam Clegg2014-11-134-16/+34
| | | | | | | | | | | | | | | All unittests are now silent by default. test_all.py is not verbose unless you pass -v/--verbose to it. Run httpd unittests on a non-default port to avoid conflict with existing running servers on the same machine. R=binji@chromium.org Review URL: https://codereview.chromium.org/724963002 Cr-Commit-Position: refs/heads/master@{#304121}
* [NaCl SDk] Update naclports revision used to build SDKSam Clegg2014-11-123-3/+3
| | | | | | | | | | | | | | | | | This brings in 98 revsions from the naclports repo between 0c21fc5..796184d. This change is needed to fix the build on chrome release branches. The critical change needed is: 796184d Check SDK major version as well as revision BUG=432273 R=binji@chromium.org Review URL: https://codereview.chromium.org/720513002 Cr-Commit-Position: refs/heads/master@{#303859}
* [NaCl SDK] Add build_artifacts.py scriptBen Smith2014-11-114-0/+898
| | | | | | | | | | | This is in preparation for moving NaCl SDK out of the Chrome repo. BUG=none R=sbc@chromium.org, noelallen@chromium.org Review URL: https://codereview.chromium.org/702603002 Cr-Commit-Position: refs/heads/master@{#303559}
* [DOCS] Edit references to Chrome 31 and earlier.jmedley2014-11-0514-93/+61
| | | | | | | | | | | | BUG=none R= TEST=none NOTRY=true (documentation only change) Review URL: https://codereview.chromium.org/637873003 Cr-Commit-Position: refs/heads/master@{#302801}
* [NaCl SDK] Add filesystem passing example.Ben Smith2014-11-037-1/+216
| | | | | | | | | BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/690403002 Cr-Commit-Position: refs/heads/master@{#302480}
* Benchmark sample for SDKnfullagar2014-10-3010-5/+207
| | | | | | | | | | | BUG=https://code.google.com/p/nativeclient/issues/detail?id=3987 TEST=NaCl SDK example and run on NaCl Perf Bots R=bradnelson@chromium.org Review URL: https://codereview.chromium.org/664543003 Cr-Commit-Position: refs/heads/master@{#302183}
* Add support for modifying TCP and UDP socket buffer size in nacl_iombajpai2014-10-304-0/+103
| | | | | | | | | | | | setsockopt() can now be called with these options: SO_RCVBUF SO_SNDBUF BUG=none Review URL: https://codereview.chromium.org/304373008 Cr-Commit-Position: refs/heads/master@{#302167}
* [NaCl SDK Docs] Fix many issues with the doc generator.Ben Smith2014-10-30904-4381/+22937
| | | | | | | | | | | | | | | | | | | | | * It was broken after the git switch (it used SVN internally) * Generate Pepper indexes to c-api-{channel} instead of pepper_{channel}/c This relies on using Doxygen 1.7.6.1, which was installed by default on Lucid. Doxygen 1.8 does not work, and maybe never will. You can set the DOXYGEN environment variable to point to a good version of doxygen. No trybots because it is a documentation generation only change. I tested locally to ensure this wouldn't break stuff. BUG=none TEST=local NOTRY=true R=sbc@chromium.org Review URL: https://codereview.chromium.org/591683002 Cr-Commit-Position: refs/heads/master@{#302127}
* Revert "Remove athena_main dependency on ash_resources.h"John Abd-El-Malek2014-10-281-0/+0
| | | | | | This reverts commit 4056c3244391cbd2103e402ceaf557924d452783. Cr-Commit-Position: refs/heads/master@{#301641}
* Remove athena_main dependency on ash_resources.hPeter Kotwicz2014-10-281-0/+0
| | | | | | | | | | BUG=426561 TEST=None R=oshima@chromium.org Review URL: https://codereview.chromium.org/678633002 Cr-Commit-Position: refs/heads/master@{#301640}
* [NaCl SDK] nacl_io: fix for html5fs chmodsbc2014-10-253-0/+14
| | | | | | | | | | | | | htmlfs does not support mode bits. In this case the expected behaviour (as seen for example when using os.chmod() on windows python) seems to be to simply return 0 from fchmod. BUG= https://code.google.com/p/naclports/issues/detail?id=157 Review URL: https://codereview.chromium.org/674953003 Cr-Commit-Position: refs/heads/master@{#301250}
* [NaCl SDK] Remove sys/signal.h from newlib-extrassbc2014-10-212-318/+0
| | | | | | | | | The toolchains now contain an up-to-date version of thie header to its not longer needed here. Review URL: https://codereview.chromium.org/666163004 Cr-Commit-Position: refs/heads/master@{#300534}
* [NaCk SDK] nacl_io: Don't assume ~S_IFMT are the mode bits.sbc2014-10-2012-33/+37
| | | | | | | | | | | | Define a new macro S_MODEBITS to represent the mode bits settable by chmod/fchmod. Add test to verify that file type cannot be changed with chmod. Review URL: https://codereview.chromium.org/671513002 Cr-Commit-Position: refs/heads/master@{#300341}
* [NaCl SDK] nacl_io: Fix utime() on directories.sbc2014-10-205-7/+25
| | | | | | | | | | | | It was previously failing with EISDIR. This is because utime() internally acquires the node as O_WRONLY in order to call the Futimens method. This was failing because the check for opening a directory for write was done in Open() rather than CanOpen(). Review URL: https://codereview.chromium.org/660353003 Cr-Commit-Position: refs/heads/master@{#300313}
* [NaCl SDK] Run PNaCl translate tests in sel_ldr.binji2014-10-174-3/+39
| | | | | | | | | | | | The offline pnacl translator was not being tested anywhere after we switched to using pnacl debug info. BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/662683003 Cr-Commit-Position: refs/heads/master@{#300119}
* Release nonsfi_loader as a part of NaCl SDKhamaji2014-10-172-0/+3
| | | | | | | | | | TEST=./build_tools/build_sdk.py --tar TEST=trybot BUG= https://code.google.com/p/nativeclient/issues/detail?id=3851 Review URL: https://codereview.chromium.org/619763005 Cr-Commit-Position: refs/heads/master@{#300065}
* [NaCl SDK] Install libpnacl_irt_shim.a into the correct location.binji2014-10-161-3/+8
| | | | | | | | | | | | | | | After we changed the PNaCl toolchain layout, this library was being installed to the wrong location. Actually, it was worse -- the directory didn't exist, so the library was being copied into a file called linux_pnacl/lib-<arch>. The correct location is now linux_pnacl/translator/<arch>/lib. BUG=423373 R=sbc@chromium.org Review URL: https://codereview.chromium.org/655353002 Cr-Commit-Position: refs/heads/master@{#299974}
* Added support for NaCl IO to use the IRT Extension API.dyen2014-10-167-8/+515
| | | | | | | | | | | | | | | | | | In order to better integrate the IRT Extension API into NaCl IO, the first implementation mirrors the other kernel_wrap_* files. All the unit tests should therefore still be valid. Eventually it may be easier to just have a separate version of kernel_intercept which utilizes the IRT extension API directly. Currently the IRT Extension interface is only supported within newlib, so I have enabled it for newlib only. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3918 TEST= trybots Review URL: https://codereview.chromium.org/608913003 Cr-Commit-Position: refs/heads/master@{#299938}
* [NaCl SDK] nacl_io: Add umaskbinji2014-10-1615-15/+75
| | | | | | | | | | | | The default umask() implemented by libnacl returns 0777, which if actually used, would create files with 0 mode. BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/643543004 Cr-Commit-Position: refs/heads/master@{#299921}
* [NaCl SDK] nacl_io: ignore mode bits when creating files.binji2014-10-162-1/+6
| | | | | | | | | | | | | | It is legal to create a file with mode bits that conflict with the open flags, e.g.: open("foo", O_WRONLY | O_CREAT, 0444); BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/659513002 Cr-Commit-Position: refs/heads/master@{#299919}
* [NaCl SDK] nacl_io: getsockname() should return non-zero port after bind.Ben Smith2014-10-152-0/+11
| | | | | | | | | BUG=https://code.google.com/p/nativeclient/issues/detail?id=3963 R=noelallen@chromium.org Review URL: https://codereview.chromium.org/657933002 Cr-Commit-Position: refs/heads/master@{#299774}