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
Laurent Cheylus
80fed7add5
os: improve documentation ( #24790 )
2025-06-25 22:29:47 +03:00
kbkpbot
d78bf1122d
os: add disk_usage/1 ( #23634 )
2025-02-02 19:32:21 +02:00
Emma
6b92f8fada
all: remove ancient deprecations ( #23479 )
2025-01-16 16:36:12 +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
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
Turiiya
25be36296e
os: make minior improvement to C function semantics and related code ( #21565 )
2024-05-25 11:30:04 +03:00
Turiiya
14018f1c45
os: remove mut declarions for unchanged vars in os_nix.c.v
( #21564 )
2024-05-25 03:32:59 +03:00
Henrik Holst
c7fb7553b7
os: fix os.execute stderr redirection ( fix #20986 ) ( #21404 )
2024-05-03 00:16:02 +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
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
ScriptMaster
ea2d92d661
os: document os.ls (using readdir), add example ( #20622 )
2024-01-21 20:45:19 +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
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
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
l-m
f82529e020
os: add os.page_size() ( #19770 )
2023-11-05 13:35:28 +02:00
Swastik Baranwal
3d99f1f2c2
checker: disallow struct int to ptr outside unsafe ( #17923 )
2023-04-13 07:38:21 +02:00
Delyan Angelov
daa9034583
os: return the long path for os.temp_dir() on windows, even for folders like c:\someth~1
( #17623 )
2023-03-14 00:51:52 +02:00
paul-elesin
15cb18cbd2
os: make hostname and loginname functions return Result ( #17414 )
2023-02-27 05:21:23 +03:00
Felipe Pena
82c4338b76
os: move pub fn debugger_present() bool{
to platform-specific files (better ptrace portability handling) ( #17373 )
2023-02-21 10:55:03 +02:00
Felipe Pena
cb976c7e17
os: fix the declaration of C.ptrace
(the 4th parameter is a pointer, not an integer) ( #17366 )
2023-02-20 12:29:49 +02:00
Delyan Angelov
f69b994c73
os: properly document os.uname, for both nix and windows
2023-01-22 13:18:28 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' ( #16428 )
2022-11-15 16:53:13 +03:00
Delyan Angelov
2083e6b04c
os: cleanup APIs returning !bool
to either return !
or bool
( #16111 )
2022-10-20 13:56:06 +03:00
yuyi
f6844e9766
all: change optional to result of io ( #16075 )
2022-10-16 09:28:57 +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
tr00
3eb6ad7b8c
os: fix type in error message ( #15533 )
2022-08-26 06:59:52 +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
Wertzui123
587101a1ea
os: fix find_abs_path_of_executable
function (on Windows) ( #14835 )
2022-06-23 03:36:15 +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
Alexander Medvednikov
014c3c97f0
all: byte => u8
2022-04-15 14:45:52 +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
Alexander Medvednikov
36ec47cd20
all: replace "NB:" with "Note:" (docs/comments)
2022-03-06 20:01:22 +03: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
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
1aaac13a60
cgen: make os
less special, fix an -autofree leak on just import os
...
* Improve documentation of v.util.Surrounder
* Remove `os` from the list of "no auto free" `builtin` mods
* Fix -autofree freeing of `const x = []string{}`.
* Add a valgrind regression test.
* Implement os.getenv_opt in vlib/os/environment.js.v too.
2021-11-21 21:50:10 +02:00
Delyan Angelov
50a608aab3
os: remove unnecessary heap allocation from os.execute
2021-11-12 11:45:37 +02:00
Delyan Angelov
20d63de136
os: fix os.execute for command output that contains 0 bytes
2021-11-12 09:39:15 +02:00
Delyan Angelov
b86c79329b
os, builtin: reduce leaks without -autofree
2021-10-29 15:49:30 +03:00
Delyan Angelov
d1c4b470bc
os: make os.ls('') return an error, make os.walk_ext more memory efficient on deep hierarchies, add tests for os.walk_ext
2021-10-24 18:44:13 +03:00
Delyan Angelov
eed94c727c
os: move C struct declarations in their own _default.c.v files ( #12268 )
2021-10-22 17:08:08 +03:00
pancake
00d4c7082e
native: add support for print, eprint and eprintln ( #11034 )
2021-08-03 16:04:31 +03:00
Delyan Angelov
8eb544146e
os: fix building V on Haiku
2021-07-27 20:28:04 +03:00
Bastian Buck
8f3646cb81
os: fix debugger_present for solaris ( #10902 )
...
-solaris has no `sys/ptrace.h`, instead `ptrace` is included in `sys/types.h` and `unistd.h`
2021-07-22 10:44:00 +03:00
Delyan Angelov
d7dcb47db3
os: implement File.seek/2 and File.tell/0
2021-07-22 08:00:21 +03:00
pancake
47bf64473c
vlib: reimplement glob in V for UNIX to not depend on libc ( #10707 )
2021-07-09 03:27:16 +03:00