summaryrefslogtreecommitdiff
path: root/Userland
AgeCommit message (Collapse)Author
2020-11-14LibCrypto: Implement GCM modeAnotherTest
2020-11-14test-crypto: Silence the "creating bytebuffer..." debugAnotherTest
2020-11-14Userland: Add test-gfx-font for Gfx::Font testsBrendan Coles
2020-11-12Lagom: Add ntpquery to lagom buildNico Weber
2020-11-12Userland: env: Add `-i` / `--ignore-environment` arg to clear envBrendan Coles
2020-11-12test-js: Add canParseSource() native functionLinus Groh
This allows us to check code for syntax errors without relying on Function(), which can lead to false negatives as certain things are valid in a function context, but not outside one.
2020-11-11Userland: Add test for file SUID+SGID bits stripped when modifiedBrendan Coles
2020-11-11ls: Only append file type indicators when -F or --classify is specifiedAndreas Kling
2020-11-11ls: Add newline after "ls -d" outputAndreas Kling
Fixes #4030.
2020-11-10ntpquery: Add a '-a' flag that makes it use adjtimeNico Weber
With this, `ntpquery` can adjust the system time without making it jump. A fun activity with this in: 0. Boot 1. Run `su` 2. Run `ntpquery -a` to adjust the time offset after boot (usually around a second) 3. Keep running `ntpquery ; adjtime` to see how the offset behind NTP and the remaining adjtime both shrink. adjtime adjustment is large enough to make the time offset go down by a bit, but we currently lose time quickly enough that by the time adjtime is done, we've only corrected the clock about halfway, and not all the way to zero. Goto 2. So this isn't all that great yet, but I think it's good enough to think about turning this into a permanently running service next.
2020-11-10Userland: Add an "adjtime" utilityNico Weber
It's a thin userland wrapper around adjtime(2). It can be used to view current pending time adjustments, and root can use it to smoothly adjust the system time. As far as I can tell, other systems don't have a userland utility for this, but it seems useful. Useful enough that I'm adding it to the lagom build so I can use it on my linux box too :)
2020-11-10Userland: ls: Add `-d` / `--directory` flagBrendan Coles
2020-11-10js: Use new string formatting functionsLinus Groh
2020-11-10Tests: Add Kernel tests for unveil system callBrendan Coles
2020-11-10Userland: ls: Add `-o` and `-B` / `--ignore-backups` flagsBrendan Coles
* `-B`, --ignore-backups`: Do not list implied entries ending with ~ * `-o`, In long format, do not show group information
2020-11-10Userland: Basic statistics for pingmarprok
After ping is terminated, the min/avg/max time as well as information about the number of successful packets received are printed on the screen.
2020-11-10ls: Add -A flag to show dot files excluding implied . and .. directoriesBrendan Coles
2020-11-09AK: Rename new_out to out and new_warn to warn.asynts
2020-11-09ls: print inodes in short output format when -i arg is suppliedBrendan Coles
2020-11-08seq: Check start, step, end for NaNNico Weber
2020-11-08js: Limit number of consecutive error trace entries being printedLinus Groh
> function f(){f()}f() Uncaught exception: [RuntimeError]: Call stack size limit exceeded -> f 1234 more calls -> (global execution context) > function a(x){if(x>0){a(x-1)}else{throw Error()}}function b(x){if(x>0){b(x-1)}else{a(5)}}function c(){b(2)}c() Uncaught exception: [Error] -> a 5 more calls -> b -> b -> b -> c -> (global execution context)
2020-11-08su: Refuse to run if stdin is not a TTYAndreas Kling
2020-11-02ls: Add colored output for set-gid filesBrendan Coles
2020-10-31ping: Account for raw sockets now receiving IPv4 headersAndreas Kling
2020-10-30LibTLS: (Almost) verify certificate chain against root CA certificatesAnotherTest
Also adds a very primitive systemwide ca_certs.ini file.
2020-10-29Userland+LibC: Add "kill -l" to show all known signal names/numbersAndreas Kling
2020-10-29Userland: Do not put a trailing space after the resulting pids in pidofAnotherTest
2020-10-29Userland: Add an implementation of 'expr'AnotherTest
This implements all expressions except 'match', which errors out when executed. Closes #1124?
2020-10-29CMake: Use CONFIGURE_DEPENDS in existing globs.asynts
2020-10-29Userland: Make killall accept signal names as wellAndreas Kling
Use getsignalbyname() to support killall -HUP foo, and such things.
2020-10-29LibC: Move getsignalbyname() helper from Userland/kill into LibCAndreas Kling
2020-10-29Userland: Teach "kill" to understand signal names (not just numbers)Andreas Kling
You can now do things like "kill -STOP pid" :^) The getsignalbyname() helper function should probably move to LibC or somewhere where it can be used by other signal related programs.
2020-10-26js: Load and save history from/to ~/.js-historyLinus Groh
This is super useful when hacking on LibJS and in general :^)
2020-10-25AK: Eradicate calls to warn().asynts
2020-10-25LibC+Tests: Fix broken snprintf test.asynts
`snprintf` returns the number of characters that would have been written had the buffer been large enough. It's a common trick to call `snprintf(nullptr, 0, ...)` to measure how large a buffer has to be. Thus the return value is not zero but fourteen.
2020-10-25Userland/sort: Convert sort to use getlineMatthew L. Curry
Sort uses a statically sized buffer. This commit changes that to use getline, so lines of any size will be handled properly.
2020-10-25Userland/uniq: Add uniq utilityMatthew L. Curry
Add an implementation for uniq. While it will be nice in the future to make more hardened versions of sort and uniq in the future, this implementation of uniq is compatible with the current version of sort and its buffer sizes. This version supports optional input and output files along with stdin and stdout.
2020-10-25LibCore: Rename File::ShouldCloseFile{Description => Descriptor}Linus Groh
From https://youtu.be/YNSAZIW3EM0?t=1474: "Hmm... I don't think that name is right! From the perspective of userspace, this is a file descriptor. File description is what the kernel internally keeps track of, but as far as userspace is concerned, he just has a file descriptor. [...] Maybe that name should be changed." Core::File even has a member of this enum type... called m_should_close_file_descriptor - so let's just rename it :^)
2020-10-25Userland: Add missing license header to hexdumpAndreas Kling
2020-10-25Userland: Add a very simple hexdump program :^)Andreas Kling
This can definitely be improved, but it does the basic job!
2020-10-24AK: Eradicate the uses of out().asynts
2020-10-23rm: Exit with status 0 if stat fails and force is setWesley Moore
2020-10-23LibWeb: Fix Document construction mishap in <template> elementAndreas Kling
Ref-counted objects must not be stack allocated. Make DOM::Document's constructor private to avoid this issue. (I wish we could mark classes as heap-only..)
2020-10-22Userland: Make `man` provide a `view_width` to `render_for_terminal()'AnotherTest
This makes tables actually show up when rendered through `man'
2020-10-22AK: Make Utf8View and Utf32View more consistentTom
This enables use of these classes in templated code.
2020-10-20Userland: Run clang-format on tree.cppAndreas Kling
2020-10-20Userland: Use new format functions in some programsAndreas Kling
2020-10-20Everywhere: Redundant inline specifier on constexpr functions (#3807)Lenny Maiorani
Problem: - `constexpr` functions are decorated with the `inline` specifier keyword. This is redundant because `constexpr` functions are implicitly `inline`. - [dcl.constexpr], ยง7.1.5/2 in the C++11 standard): "constexpr functions and constexpr constructors are implicitly inline (7.1.2)". Solution: - Remove the redundant `inline` keyword.
2020-10-19test-js: Support test262 parser testsLinus Groh
test-js now has a --test262-parser-tests option. Modules are skipped for now, current results: Test Suites: 1309 failed, 4314 passed, 5623 total Tests: 1309 failed, 262 skipped, 4052 passed, 5623 total Files: 5361 total Time: ~100ms (Lagom) / 600-800ms (Serenity) For more info, see: https://github.com/tc39/test262-parser-tests
2020-10-19test-js: Exit with 1 if any test failedLinus Groh