v/vlib/os
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
..
bare ci: re-enable testing of `./v -freestanding run vlib/os/bare/bare_example_linux.v` on ubuntu 2021-04-22 12:50:56 +03:00
cmdline builtin: remove methods that can be autogenerated (#11109) 2021-08-09 15:42:31 +03:00
filelock os: filesystem level locking api (#11191) 2021-08-17 08:21:33 +03:00
notify checker: add an interface check for mutability, fixes #1081, fixes #7038 (#11963) 2021-10-11 15:41:31 +03:00
args.v os: fix documentation typo in args.v (#11526) 2021-09-17 20:55:16 +03:00
const.v os: add a `posix_set_permission_bit` function (#7754) 2021-01-04 19:57:17 +02:00
const_nix.c.v os: vfmt all of `os` .v files, add it to `v test-cleancode` with no exceptions 2020-12-16 14:15:11 +02:00
const_windows.c.v os: vfmt most of `os`, add it to `v test-cleancode` 2020-12-16 11:08:23 +02:00
environment.c.v os: add os.getenv_opt/1 2021-11-19 17:47:45 +02:00
environment.js.v cgen: make `os` less special, fix an -autofree leak on just `import os` 2021-11-21 21:50:10 +02:00
environment_test.v os: add os.getenv_opt/1 2021-11-19 17:47:45 +02:00
fd.c.v vlib: use `malloc_noscan()` where possible (#10465) 2021-06-15 14:47:11 +03:00
file.c.v os: turn some panics into `return error()` 2021-09-18 10:45:04 +03:00
file.js.v js: port more methods (os, builtin) (#12238) 2021-10-20 16:02:21 +03:00
file_test.v all: update chmod/chdir usages 2021-08-28 10:23:01 +03:00
glob_test.v all: update chmod/chdir usages 2021-08-28 10:23:01 +03:00
inode.c.v all: remove byteptr and charptr; replace them with &byte and &char 2021-04-04 17:43:32 +03:00
inode_test.v all: update chmod/chdir usages 2021-08-28 10:23:01 +03:00
open_uri_default.c.v os: implement support for VOPEN_URI_CMD env override for os.open_uri 2021-10-06 06:33:04 +03:00
open_uri_windows.c.v os: implement support for VOPEN_URI_CMD env override for os.open_uri 2021-10-06 06:33:04 +03:00
os.c.v ci: fix `./v -cg -cstrict -o v cmd/v` job failures for clang 2021-10-29 17:21:53 +03:00
os.js.v js: codegen & vlib fixes, replace the Game of Life CLI example (#12272) 2021-10-22 22:03:19 +03:00
os.v cgen: make `os` less special, fix an -autofree leak on just `import os` 2021-11-21 21:50:10 +02:00
os_android.c.v ci: fix some of `v test-cleancode` 1 2021-04-05 20:47:32 +03:00
os_darwin.c.v os,net: cleanup deprecated @VROOT usages 2021-09-19 16:24:24 +03:00
os_js.js.v js: use prefixed names for functions and global symbols (#11387) 2021-09-08 20:30:46 +03:00
os_linux.c.v vlib: use `malloc_noscan()` where possible (#10465) 2021-06-15 14:47:11 +03:00
os_nix.c.v cgen: make `os` less special, fix an -autofree leak on just `import os` 2021-11-21 21:50:10 +02:00
os_structs_dirent_default.c.v os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
os_structs_sigaction_default.c.v os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
os_structs_stat_default.c.v os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
os_structs_stat_linux.c.v os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
os_structs_utsname_default.c.v os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
os_test.v os: remove unnecessary heap allocation from os.execute 2021-11-12 11:45:37 +02:00
os_windows.c.v 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
process.c.v js: codegen fixes, W.I.P `os` availability for JS backend (#11281) 2021-08-23 14:25:02 +03:00
process.js.v js: use prefixed names for functions and global symbols (#11387) 2021-09-08 20:30:46 +03:00
process.v docs: improve os.ProcessState markdown rendering (#12245) 2021-10-21 11:19:01 +03:00
process_nix.c.v os: workaround `_ = C.pipe(&pipeset[0])` gcc warning `warning: ignoring return value of pipe declared with attribute warn_unused_result` (#12046) 2021-10-03 08:09:08 +03:00
process_test.v ci: let process_test.v repeatedly fail 3 times, before consider it failed 2021-10-03 20:26:38 +03:00
process_windows.c.v ci: fix some of `v test-cleancode` 1 2021-04-05 20:47:32 +03:00
signal.c.v os: cleanup of old deprecated functions. Add File.write_full_buffer/2; use it in os.write_file/2 2021-06-25 22:51:59 +03:00
signal_test.v os: add `signal_opt` and deprecate `signal` (#10005) 2021-05-05 15:39:02 +03:00