zztkm
|
3e4cfc7343
|
os: add os.to_slash and os.from_slash functions (#16055)
|
2022-10-14 10:22:36 +03:00 |
|
Delyan Angelov
|
6fcab013eb
|
os.notify: fix sizeof(C.epoll_event) == 12 with tcc (was 16, while with gcc/clang it is 12)
|
2022-09-29 13:27:07 +03:00 |
|
Dominik Pytlewski
|
721328ef58
|
os: fix os.read_file and os.read_bytes for 0 sized /proc/ files on Linux (fix #15852) (#15853)
|
2022-09-25 22:54:46 +03:00 |
|
yuyi
|
c3548c9413
|
tests: omit testsuite_begin/end() optional (#15871)
|
2022-09-25 10:29:25 +03:00 |
|
Delyan Angelov
|
f338dec5c6
|
ci: fix compilation on FreeBSD (C.feof is a macro there, that expands to direct field access)
|
2022-09-24 10:17:32 +00:00 |
|
yuyi
|
d624ad50a7
|
os: fix file.read() (#15861)
|
2022-09-24 08:58:55 +03:00 |
|
yuyi
|
41dbd12bc4
|
tests: make error handling the same as the main function (#15825)
|
2022-09-21 19:45:43 +03:00 |
|
Delyan Angelov
|
69c9d47a40
|
pref,os,sokol,cgen: ease compilation of 2048 with -os wasm32_emscripten (#15820)
|
2022-09-20 00:17:13 +03:00 |
|
Delyan Angelov
|
f922ed0941
|
tests: unify all temporary files/folders under $VTMP/v , that can be cleaned by v wipe-cache (#15774)
|
2022-09-16 04:56:19 +03:00 |
|
shove
|
8b962f8446
|
checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752)
|
2022-09-15 07:59:31 +03:00 |
|
jrfondren
|
45e21bc311
|
os: remove private unix_environ() helper function, it is not needed anymore (#15654)
|
2022-09-04 13:22:38 +03:00 |
|
Delyan Angelov
|
728b198384
|
os: extract dir_expansions_test.v from os_test.v
|
2022-09-01 13:07:29 +03:00 |
|
tr00
|
3eb6ad7b8c
|
os: fix type in error message (#15533)
|
2022-08-26 06:59:52 +03:00 |
|
Subhomoy Haldar
|
3b42f18dee
|
os: add input_password(prompt) and unit tests (#15507)
|
2022-08-23 18:17:38 +03:00 |
|
Delyan Angelov
|
a689641c1b
|
os: rewrite os.walk and os.walk_with_context to use iteration, instead of recursion
|
2022-08-22 17:27:14 +03:00 |
|
Delyan Angelov
|
21917f5b00
|
os: small cleanup of needless r'\' usage
|
2022-08-22 16:32:42 +03:00 |
|
Delyan Angelov
|
e156e6a44a
|
os: remove commented code in os_windows.c.v
|
2022-08-22 14:54:38 +03:00 |
|
Delyan Angelov
|
5cba5920d5
|
os: make find_abs_path_of_executable_test.v more robust (fix #15459)
|
2022-08-20 10:06:58 +03:00 |
|
Delyan Angelov
|
7ed3389fa8
|
ci: fix -cstrict checks after 7585e86
|
2022-08-17 18:40:15 +03:00 |
|
Delyan Angelov
|
7585e86868
|
os: reduce heap allocations done by os.real_path, os.executable, os.getwd
|
2022-08-17 17:06:38 +03:00 |
|
Delyan Angelov
|
18cccb6caf
|
builtin: show non zero codes on bubbled error_with_code(msg,code) errors
|
2022-08-16 18:59:38 +03:00 |
|
Delyan Angelov
|
8f98f1db9e
|
os: fix os.open_file('text.txt', 'wb', 0o666) , add test (#15420)
|
2022-08-14 09:50:05 +03:00 |
|
Vincenzo Palazzo
|
b01f71d9da
|
io: migrate the Reader API to Result instead of Option (#15229)
|
2022-08-08 02:33:25 +03:00 |
|
Delyan Angelov
|
242ade8938
|
os: fix File.eof on FreeBSD (feof is a C macro there)
|
2022-07-28 17:26:55 +03:00 |
|
Reuben Thomas
|
ed56c3957e
|
os: add File.reopen and File.eof methods (#15184)
|
2022-07-28 16:21:23 +03:00 |
|
Bastian Buck
|
4ab72ccb69
|
os: add a security advisory for potential TOCTOU risks when using os.is_writable , os.is_executable etc (#15222)
|
2022-07-26 12:02:48 +03:00 |
|
Andrew Compton
|
f9385f6300
|
os: make get_raw_line() should not break lines on \r on windows (fix #5900) (#15205)
|
2022-07-25 08:03:07 +03:00 |
|
Reuben Thomas
|
2ffad85f06
|
doc: remove misleading comment about stdin() (#15154)
|
2022-07-23 00:22:50 +03:00 |
|
Alexander Medvednikov
|
9099594a49
|
all: wrap up unsafe { nil } (p. 3)
|
2022-07-21 21:01:30 +03:00 |
|
Delyan Angelov
|
02d675ab67
|
os: restore the env TERMUX_VERSION based final resort for runtime auto detection of Termux
|
2022-07-08 11:16:53 +03:00 |
|
Larpon
|
9f3b6e3e3a
|
android: provide more predictable logging, add comptime termux support (#14984)
|
2022-07-07 18:28:29 +03:00 |
|
Delyan Angelov
|
3308313167
|
os: remove the closing of stream handles at the end of Process.win_slurp/1
|
2022-07-06 15:43:13 +03:00 |
|
Alexander Medvednikov
|
819b6f475a
|
os: remove unnecessary unsafe s
|
2022-07-06 07:07:48 +03:00 |
|
Alexander Medvednikov
|
163c7ba2bb
|
checker: stricter []&Type{len:x} check
|
2022-07-05 23:51:29 +03:00 |
|
Larpon
|
0dd5050b29
|
os: clean up usage of ANativeActivity, allow access to fields (#14948)
|
2022-07-05 16:30:10 +03:00 |
|
Delyan Angelov
|
69d292e8d1
|
os: detect termux more reliably
|
2022-07-01 13:52:57 +03:00 |
|
Delyan Angelov
|
b6b611aa82
|
v: support better separation of general Android vs Termux specific code (part 2)
|
2022-07-01 13:18:31 +03:00 |
|
Delyan Angelov
|
30401e003f
|
v: support better separation of general Android vs Termux specific code (part 1)
|
2022-07-01 12:48:35 +03:00 |
|
Markus F.X.J. Oberhumer
|
74bb5ae17a
|
os: add an optional "mode" parameter to os.mkdir and os.mkdir_all (#14887)
|
2022-06-30 13:49:47 +03:00 |
|
ghosttk
|
fae26197b9
|
os: add exo-open to the list of tried launchers in os.open_uri/1 (#14884)
Add 'exo-open' for xfce4 desktop environment.
|
2022-06-29 11:59:25 +03:00 |
|
Wertzui123
|
c10ba6d81a
|
os: add .cmd to the list of Windows executable suffixes (#14839)
|
2022-06-23 20:12:29 +03:00 |
|
Larpon
|
298dc77c38
|
ci: add pure -os android checks (#14837)
|
2022-06-23 11:22:55 +03:00 |
|
Wertzui123
|
587101a1ea
|
os: fix find_abs_path_of_executable function (on Windows) (#14835)
|
2022-06-23 03:36:15 +03:00 |
|
Larpon
|
3fb88500a2
|
os: improve Android interop (#14827)
|
2022-06-22 21:38:27 +03:00 |
|
yuyi
|
de136f6baf
|
checker: improve pub struct check (fix #14446) (#14777)
|
2022-06-19 17:42:22 +03:00 |
|
Ben
|
39e54a508b
|
os: correct description of windows_volume function (#14726)
|
2022-06-09 10:56:58 +03:00 |
|
Ben
|
c6b1c8d07a
|
os: add windows_volume function (#14721)
|
2022-06-08 21:26:24 +03:00 |
|
Ben
|
e201665e92
|
os: fix file_ext function (#14566)
|
2022-06-02 07:09:46 +03:00 |
|
Ben
|
4ffdcf8058
|
os: add existing_path function (#14536)
|
2022-05-31 06:32:12 +03:00 |
|
Ben
|
f431020764
|
os: minor clean ups on filepath.v (#14506)
|
2022-05-24 11:29:32 +03:00 |
|
Ben
|
971c55cf30
|
os: add norm_path and abs_path function (#14435)
|
2022-05-21 01:16:29 +03:00 |
|
Vincenzo Palazzo
|
17bba712bd
|
checker: ban unsafe pointer/fn comparison (#14462)
|
2022-05-20 18:30:16 +03:00 |
|
Adam Oates
|
a786c58d0a
|
os: add fn user_names() (#14424)
|
2022-05-18 13:37:34 +03:00 |
|
Ben
|
cbb24d34c9
|
os: fix is_abs_path function for Windows systems (#14397)
|
2022-05-16 09:59:37 +03:00 |
|
Daniel Däschle
|
d679146a80
|
fmt: remove space in front of ? and ! (#14366)
|
2022-05-13 06:56:21 +03:00 |
|
Larpon
|
34a252ef84
|
os: add raw_execute on Windows (#14363)
|
2022-05-11 16:56:03 +03:00 |
|
Larpon
|
0ec1c8d9f0
|
szip: expose zip_folder (#14356)
|
2022-05-11 16:48:41 +03:00 |
|
Delyan Angelov
|
5277ce7dce
|
tests: support for marking _test.v files with // vtest flaky: true , to reduce false positives from the CI
|
2022-04-30 13:30:02 +03:00 |
|
Nick Treleaven
|
d8a5df9044
|
checker: error if smaller signed == unsigned (#14078)
|
2022-04-25 12:09:25 +03:00 |
|
Larpon
|
506259adb6
|
os: add behavior info to is_dir_empty documentation (#14110)
|
2022-04-21 18:21:00 +03:00 |
|
Hunam
|
0374f021c5
|
os: small cleanup of function description (#14112)
|
2022-04-20 20:58:41 +03:00 |
|
Larpon
|
a1342e85c3
|
os: add info about overwritten content to write_file (#14109)
|
2022-04-20 15:29:58 +03:00 |
|
Alexander Medvednikov
|
fbb9e65c0f
|
all: ~500 more byte=>u8
|
2022-04-15 18:25:45 +03:00 |
|
Alexander Medvednikov
|
fb192d949b
|
all: replace []byte with []u8
|
2022-04-15 15:35:35 +03:00 |
|
Alexander Medvednikov
|
dbcf6e9c33
|
os: fix Process on windows
|
2022-04-15 15:23:05 +03:00 |
|
Alexander Medvednikov
|
d4a0d6f73c
|
all: byte => u8
|
2022-04-15 14:58:56 +03:00 |
|
Alexander Medvednikov
|
014c3c97f0
|
all: byte => u8
|
2022-04-15 14:45:52 +03:00 |
|
Delyan Angelov
|
8788512c4d
|
checker: make using err.msg and err.code produce an *actual* notice, even with the present compatibility hack (will be *removed* in 2022-06-01)
|
2022-04-12 14:56:02 +03:00 |
|
Delyan Angelov
|
60e718e7c6
|
test: save removing the nonexistent binary output for v fmt and v vet tests
|
2022-04-09 13:04:52 +03:00 |
|
pancake
|
5369379738
|
repl: handle exit(n) (#13930)
|
2022-04-04 16:22:34 +03:00 |
|
pancake
|
af79c1e6ef
|
os: implement os.config_dir() like in Go's UserConfigDir (#13893)
|
2022-04-01 22:04:43 +03:00 |
|
yuyi
|
62553dcc2e
|
cgen: fix crash for casting bool to int (fix #13825) (#13844)
|
2022-03-28 12:20:47 +03:00 |
|
JalonSolov
|
de2fc87995
|
os: handle trailing backslash on windows path when quoting (#13705)
|
2022-03-10 01:29:37 +03:00 |
|
Alexander Medvednikov
|
36ec47cd20
|
all: replace "NB:" with "Note:" (docs/comments)
|
2022-03-06 20:01:22 +03:00 |
|
Delyan Angelov
|
f2e5bb447e
|
os: remove dead code
|
2022-02-21 22:57:24 +02:00 |
|
Delyan Angelov
|
bad30bdd79
|
os: allow using XDG_CACHE_HOME for choosing the folder returned by os.cache_dir() on windows too
|
2022-02-13 11:18:51 +02:00 |
|
Tim Basel
|
9d0a5942ac
|
builtin: change IError msg and code to methods + fix vlib, add a deprecation notice for the old usages (#13041)
|
2022-02-11 15:52:33 +02:00 |
|
Juergen Donnerstag
|
654bc49d3c
|
os: implement win_read_string on os.Process (#13428)
|
2022-02-11 13:02:00 +02:00 |
|
Tarcisio Gruppi
|
51513ae19a
|
vfmt: keep file permissions with -w on !windows (#13334)
|
2022-02-01 14:49:06 +02:00 |
|
Merlin Diavova
|
f3683b7cdc
|
os: add an .exit_code field to os.Command (#13321)
* Added os.Command.exit_code
* vfmt vlib/os/os_test.v
* extract os.Command to os.v, add a dummy panicing implementation on windows, just for parity, fix os_test.v on macos, skip test_command on windows.
Co-authored-by: Merlin Diavova <md@merlindiaova.org>
Co-authored-by: Delyan Angelov <delian66@gmail.com>
|
2022-01-30 00:44:52 +02:00 |
|
Subhomoy Haldar
|
fe77e64b3e
|
os: remove trim_space() in os.execute() on windows, to make implementations consistent (#13272)
|
2022-01-25 14:09:56 +02:00 |
|
Delyan Angelov
|
34f0d442df
|
ci: separate other_ci.yml and paths_ci.yml; simplify make.bat (#13254)
|
2022-01-23 12:50:19 +02:00 |
|
Delyan Angelov
|
fa6f7d4c83
|
os: add os.quoted_path/1, use it consistently for running V itself
|
2022-01-22 21:13:28 +02:00 |
|
playX
|
7fe62a8b3e
|
js,os: fix return in or blocks; Properly get path_delimiter and path_separator in JS (#13179)
|
2022-01-15 09:55:03 +02:00 |
|
Larpon
|
7fbd856bf8
|
os: add font module, move from gg (#13144)
|
2022-01-13 12:16:18 +02:00 |
|
Larpon
|
17911432b9
|
android: fix and test compilation to raw Android C code (#13080)
|
2022-01-07 16:57:05 +02:00 |
|
jeffmikels
|
a60b381d5e
|
docs: adding skeleton README.md files for all vlib modules (#13034)
|
2022-01-05 18:06:08 +02:00 |
|
Alexander Medvednikov
|
59ed4be49a
|
all: update copyright year
|
2022-01-04 12:21:12 +03:00 |
|
playX
|
a2468e1e0c
|
js,os: fix integer arithmetic; add Process.close() and os.is_readable() for VJS; Make tetris run on JS backend (#12940)
|
2021-12-23 11:36:42 +02:00 |
|
playX
|
5f0160bf11
|
js,gg: more work on porting gg to JS backend (#12903)
|
2021-12-20 16:18:21 +03:00 |
|
playX
|
cb4c67588c
|
os: add support for signal handling on JS backend (#12818)
|
2021-12-13 20:18:12 +02:00 |
|
playX
|
0da7e2f8ab
|
js: make vlib/v/util compile on JS backend (#12660)
|
2021-12-03 12:25:36 +02:00 |
|
Delyan Angelov
|
5e8288528a
|
ci: fix v -b js vlib/builtin/js/array_test.js.v
|
2021-11-22 15:11:33 +02:00 |
|
Delyan Angelov
|
6a252ed015
|
os: implement a JS version of os.join_path_single too
|
2021-11-22 15:03:05 +02:00 |
|
Delyan Angelov
|
7a0dc60d04
|
os: re-add the leak in os.join_path (the os.join_path(x, ...arr) case should be handled by V). Add a memleak free os.join_path_single version.
|
2021-11-22 14:40:55 +02:00 |
|
Delyan Angelov
|
c3b8e5e181
|
ci: fix compilation on FreeBSD
|
2021-11-22 09:32:13 +00:00 |
|
Delyan Angelov
|
84aa05f8fb
|
ci: fix macos build
|
2021-11-22 11:07:26 +02:00 |
|
Delyan Angelov
|
fe48380e85
|
os: cleanup; ci: fix a segfault in the tcc32 job when calling pref.vexe_path() -> os.real_path(os.executable())
|
2021-11-22 10:32:10 +02:00 |
|
Delyan Angelov
|
e77a11001e
|
os: make init_os_args_wide (windows), more simillar to the current init_os_args (unix)
|
2021-11-21 23:04:30 +02:00 |
|
Delyan Angelov
|
c7bd74e0f8
|
ci: fix build, remove [manualfree] from os.vmodules_paths for now
|
2021-11-21 22:34:38 +02:00 |
|