92 Commits

Author SHA1 Message Date
Delyan Angelov
3725576729
docs,ci: check more vlib modules in the report-missing-dots-in-doc-comments job (#24928) 2025-07-19 11:51:01 +03:00
Delyan Angelov
2cfeb6d07b os: add os.write_bytes/2 as a complement to os.read_bytes/1, add test 2025-06-28 09:27:09 +03:00
Laurent Cheylus
80fed7add5
os: improve documentation (#24790) 2025-06-25 22:29:47 +03:00
Alexander Medvednikov
7d57a19d7e checker: do not allow &u8(0), force nil like we do with &Type(0) 2025-05-03 22:37:51 +03:00
kbkpbot
59b162c29f
os: fix windows rmdir GetLastError() (fix #24356) (#24357) 2025-04-30 08:25:16 +03:00
Delyan Angelov
32ad697689
os,v.transformer: fix warnings for ./v -os cross -o vc/v.c cmd/v && clang-18 -o v_from_vc vc/v.c -lpthread 2025-03-06 21:05:01 +02:00
Delyan Angelov
408ec6bff4
builtin,os: fix warnings for ./v -os cross -o vc/v.c cmd/v && cc -o v_from_vc vc/v.c -lpthread 2025-03-06 20:56:49 +02:00
kbkpbot
f4b51d064e
os: fix get_raw_line() on windows (fix #23843) (#23846) 2025-03-03 06:55:35 +02:00
kbkpbot
370ba448dd
os: fix buffer overflow in os.get_raw_line under Windows (#23816) 2025-02-27 01:09:34 +02:00
kbkpbot
d78bf1122d
os: add disk_usage/1 (#23634) 2025-02-02 19:32:21 +02:00
Alexander Medvednikov
6b3724df3a checker: do not allow auto reference of voidptr params 2025-01-13 19:01:43 +03:00
Delyan Angelov
e983d75b64
markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380) 2025-01-06 08:23:56 +02:00
yuyi
17f3c8f813
checker: check fn call argument mismatch (fix #23016) (#23061) 2024-12-04 11:52:07 +02:00
Delyan Angelov
b801083f13
Revert "os: deprecate os.getwd in favor of os.get_current_dir (part 1) (#22966)"
This reverts commit 93009823f992176166bf5e5d90c9627adb46bdc0.
2024-11-25 15:10:15 +02:00
Elsie
93009823f9
os: deprecate os.getwd in favor of os.get_current_dir (part 1) (#22966) 2024-11-25 12:17:33 +02:00
Delyan Angelov
df51e840f9
os: work towards being able to again use -autofree while recompiling the V compiler several times 2024-11-14 13:58:50 +02:00
Delyan Angelov
9a88446ee0
os: improve doc comments for os functions, that accept/return a size/offset in bytes (#22519) 2024-10-14 14:08:04 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
Delyan Angelov
c2f7afdbf5
builtin: add pub fn arguments() []string {; make os.args use it, remove edge case in cgen (#21852) 2024-07-13 00:09:44 +03:00
Delyan Angelov
ccfa65aa14
bootstrap: cleanup code checking for overflowing int literals, ease forwards compatibility with V versions before ef758a7 2024-05-24 10:36:07 +03:00
Turiiya
8aa9314a99
vlib: refactor empty string checks to use s == '' or s != '', instead of s.len == 0 (#21300) 2024-04-18 02:44:31 +03:00
Felipe Pena
3db7b44894
os: fix double free in os.get_raw_line() (used by os.input), with -autofree (#21204) 2024-04-08 18:48:05 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +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
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
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
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
5b74f3af3e
vlib: use the builtin flush functions, instead of the C. ones (#20108) 2023-12-07 18:24:27 +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
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
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
Delyan Angelov
eb82a72012
ci: vfmt vlib/os/process_windows.c.v and vlib/os/os.c.v 2023-10-16 01:48:35 +03:00
Delyan Angelov
f54f156d25 clipboard: fix v -cstrict -cc gcc vlib/clipboard/clipboard_test.v 2023-10-15 21:21:29 +03:00
Alexander Medvednikov
545ee1ae23 checker: stricter rules for C types; C aliases; sokol fixes 2023-10-14 18:31:44 +03:00
Delyan Angelov
24278d82ba
os, v.builder: show more details, when a program ran by v run file.v, exits by a signal (fix #19412) (#19471) 2023-09-29 22:02:59 +03:00
Kim Shrier
b4d0e12c4c
os: include sys/sysctl.h on FreeBSD to avoid implicit definition of sysctl function (#19293) 2023-09-07 16:08:18 +03:00
yuyi
18e60e77de
fmt: remove inline comments (#19263) 2023-09-03 23:51:56 +03:00
Turiiya
f755118e7c
vlib: update doc comments (#19231) 2023-08-30 08:50:00 +03:00
Delyan Angelov
4c9c515f8b
parser: remove hardcoded check for function calls for C.stat, C.sigaction, etc (#18535) 2023-06-24 08:03:12 +03:00
yuyi
caee3935a5
os: fix truncate() on windows (#18262) 2023-05-25 14:37:53 +03:00
yuyi
190f5c69ea
os: fix open_file() on windows (fix #18245) (#18253) 2023-05-25 02:50:52 +02:00
Felipe Pena
13b4cd9d58
os: fix memleak from getline on Linux (#18022) 2023-04-26 22:02:09 +03:00
l-m
0625caad56
wasm: add a webassembly compiler backend, based on using binaryen (#17368) 2023-02-28 23:58:53 +02:00
Thomas Peißl
3aeb6179b7
os: rework mv so it works with different partitions (add fallback to os.mv_by_cp + tests) (#17065) 2023-01-22 19:02:04 +02:00
Thomas Peißl
ba1b31700e
os: add hint for mv_by_cp to mv (#17036) 2023-01-19 16:50:57 +02:00