Commit graph

908 commits

Author SHA1 Message Date
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Bram Vanbilsen
eaa4edf484
os: cleanup field comments of os.Process (#21023) 2024-03-15 09:11:44 +02:00
rustrover
c90af5ffe3
os: remove repetitive words in comments (#20981) 2024-03-09 15:22:05 +02:00
Delyan Angelov
a58f980b02
os: workaround a -prod -cc gcc bug, affecting os.open_file (fix #20923) (related to #20872) (#20960) 2024-03-04 18:15:28 +02:00
Kim Shrier
10c2f9e010
os: don't check rdev equality on FreeBSD, inside vlib/os/os_stat_test.v (#20885) 2024-02-22 19:31:12 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Delyan Angelov
a4d0d4ee4b
os: make os_stat_test.v more robust to reporting false positives 2024-02-08 20:47:34 +02:00
syrmel
410bd9db71
os: refactor to use os.stat and os.lstat instead of unsafe C calls (#20759) 2024-02-08 19:27:49 +02:00
syrmel
b7b47fe130
os: make os.SystemError struct public so the os.error_* functions can be used by other modules (#20754) 2024-02-08 13:20:50 +02:00
syrmel
205f2ddd30
os: add os.stat() and helpers (#20739) 2024-02-07 07:12:03 +02:00
syrmel
382d7658cd
os: add error_posix() and error_win32() for explicit platform error handling and default behavior (#20694) 2024-01-31 07:25:07 +02:00
GGRei
2d68230681
os: fix File.read() in JS backends (fix #20501) (#20633) 2024-01-29 15:07:25 +02:00
Seweryn
5f7e6ff13a
os: add proper process termination with p.signal_term() (#20671) 2024-01-27 23:25:36 +02:00
Delyan Angelov
7f5f92ddd4
os: add File.set_buffer and related helpers + tests (#20661) 2024-01-26 20:44:23 +02:00
Delyan Angelov
672fe9b8eb tests: make v vlib/os/os_test.c.v pass on windows, for users != admin, skipping the os.symlink checks 2024-01-23 17:03:01 +02:00
gym603
51d412a5b6
os: fix an error in Process.win_spawn_process, not using stdout pipe in a cmd environment on 32bit Windows (#20613) 2024-01-23 16:34:01 +02:00
Delyan Angelov
fe857f9fe3
v.util: make launch_tool more robust, when multiple v -b js file.v commands are run at the same time (all trying to recompile the JS backend program) (#20631) 2024-01-22 18:03:20 +02:00
ScriptMaster
ea2d92d661
os: document os.ls (using readdir), add example (#20622) 2024-01-21 20:45:19 +02:00
Delyan Angelov
b120c10f42
os: make os.cache_dir() and os.vtmp_dir() more robust to parallel test executions on windows (#20495) 2024-01-12 16:09:08 +02:00
Delyan Angelov
252540a1ea
os: add os.path_devnull (containing /dev/null on POSIX and \\.\nul on Windows) (#20439) 2024-01-08 18:00:36 +02:00
Delyan Angelov
bf7b29a53b
os: improve os.executable() on OpenBSD (#20356) 2024-01-02 22:12:03 +02:00
Delyan Angelov
8359df0a01
os: small cleanup in the FreeBSD branch of os.executable/0: use fixed array for the sysctl params, instead of allocating a dynamic one (#20353) 2024-01-02 19:39:33 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Delyan Angelov
de3b2b00a3
os, net.http.file: add a folder listing to the http static file server, started by file.serve/1 (#20192) 2023-12-16 08:06:30 +02:00
Turiiya
e5e26db5c4
os: update mv fns, improve performance, add params struct to control overwrite behavior (#20156) 2023-12-13 09:43:18 +02:00
Turiiya
acde573deb
os: fix mv_by_cp for directories (#20154) 2023-12-11 20:44:33 +02:00
Dmitriy Mihaylenko
75c0c92759
os: fix os.open_file/3 wb mode creation of text files containing crlf on Windows (#20101) 2023-12-08 21:52:52 +02:00
Turiiya
5b74f3af3e
vlib: use the builtin flush functions, instead of the C. ones (#20108) 2023-12-07 18:24:27 +02:00
Delyan Angelov
4b3109237d
builtin: deprecate string.last_index/1 for string.index_last/1, and string.last_index_u8/1 for string.index_u8_last/1 (#20095) 2023-12-05 13:56:59 +02:00
Delyan Angelov
d1dcffa928
os: fix File.tell for files > 2GB on windows, by using C._telli64(f.fd) (#20072) 2023-12-03 03:58:01 +02:00
gym603
afaeb74238
os: create the folder described by XDG_CACHE_HOME, *if it is non empty, and it does not exist yet*, when calling os.cache_dir() (#20046) 2023-11-30 23:04:42 +02:00
gym603
dc3ea0f87f
os: flush stdout and stderr before calling _wsystem (on windows), as the MSDN doc advices (#20034) 2023-11-29 19:25:41 +02:00
gym603
46086c046f
tests: make 'v test-self' pass under msys2/MINGW64 (#20010) 2023-11-28 15:03:30 +02:00
Turiiya
b088f43033
os: update comments (#19989) 2023-11-26 09:39:51 +03:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
shove
2a6c1d9074
all: assigning 0 to reference fields now requires unsafe blocks (fix #14911) (#19955) 2023-11-23 11:16:26 +02:00
Delyan Angelov
e787620861
os: fix bootstrapping for OpenBSD 2023-11-16 13:43:55 +02:00
Felipe Pena
83b4167c19
fmt: fix interface fields alignment (#19866) 2023-11-15 18:17:35 +02:00
Turiiya
4e439442ab
os: ignore empty path segments in join_path (#19877) 2023-11-15 10:54:20 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Turiiya
b7400fc058
os: add fast path to mkdir_all, when the given folder already exists (#19869) 2023-11-14 23:41:39 +02:00
JalonSolov
c494b63d75
os,picohttpparser,sokol,strconv: prepare for making -W impure-v the default (#19846) 2023-11-12 09:52:14 +02:00
Delyan Angelov
50c22b5a12
os: implement os.fd_is_pending/1, os.Process.pipe_read/1, os.Process.is_pending/1 (#19787) 2023-11-07 13:47:25 +02:00
l-m
f82529e020
os: add os.page_size() (#19770) 2023-11-05 13:35:28 +02:00
Turiiya
fbefe6858b
os: mention that execute_opt error contains commands output (#19742) 2023-11-03 13:28:42 +02:00
Turiiya
c82c760df7
os: add a new function execute_opt (#19723) 2023-11-01 13:17:33 +02:00
Turiiya
e465f7490c
tests: cleanup legacy temp path (#19716) 2023-10-31 15:16:19 +02:00
Delyan Angelov
1b2d947fc0 ci: fix bootstrapping of signal_default.c.v on macos 2023-10-25 22:26:52 +03:00
shove
8394b358d8
os: add a convenient way to ignore certain system signals (#19639) 2023-10-25 17:15:26 +03:00
Larpon
95509cf8fb
all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00