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
BigBlack
714a64daa0
os: fix os.ls(folder) on windows, when a protected folder can not be opened ( #19647 )
2023-10-25 11:21:58 +03:00
Alexander Medvednikov
b39b0927d1
Revert "os: add a convenient way to ignore certain system signals ( #19632 )" ( #19637 )
2023-10-24 03:06:57 +03:00
shove
0c92c31406
os: add a convenient way to ignore certain system signals ( #19632 )
2023-10-23 23:48:39 +03: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
121fa0e92d
term.ui,os.notify: fix .ctrl being stuck in examples/term.ui/event_viewer.v (regression happened in e9a3817a
from 2023-02-20)
2023-10-09 14:25:44 +03:00
Spydr
6d1558b006
native, builtin, ast: handle ast.HashStmt
correctly and reduce macro usage in builtin
( #19498 )
2023-10-04 16:42:15 +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
Slashscreen
33754f43fa
all: support -os plan9
, $if plan9 {
, and _plan9.c.v
(stage 1 for plan9) ( #19389 )
2023-09-20 07:27:30 +03:00
Delyan Angelov
7ffa8c13bf
vlib: remove functions and fields, deprecated before 2023-03-20
...
* remove []int.reduce in favour of arrays.fold
* remove datatypes.Set.equal in favour of datatypes.Set.==
* remove datatypes.Set.difference in favour of datatypes.Set.-
* remove gg.Context.set_cfg in favour of gg.Context.set_text_cfg
* remove gg.Context.timage_pip in favour of gg.Context.pipeline.alpha
* remove os.is_writable_folder in favour of os.ensure_folder_is_writable
Discovered with `v run cmd/tools/show_ancient_deprecations.v 180`
2023-09-16 17:16:54 +03:00
yuyi
55ca8d8d8e
fmt: align the custom values of the enum fields ( #19331 )
2023-09-12 14:44:38 +03:00
Alexander Medvednikov
d3e950b3a9
checker: more line-info logic
2023-09-11 01:40:34 +03:00
Alexander Medvednikov
b9a233b1a0
checker: more line-info logic
2023-09-11 01:38:09 +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
0450a933b9
os: update TOCTOU example in readme, to improve readability of the module docs on mobile ( #19255 )
2023-09-01 16:09:04 +03:00
Turiiya
f755118e7c
vlib: update doc comments ( #19231 )
2023-08-30 08:50:00 +03:00