1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

601 Commits

Author SHA1 Message Date
Uwe Krüger
60c880a0cc
vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
Delyan Angelov
48b3ab831b
ci: fix failing test test_realpath_existing for os.real_path on macos 2021-06-15 14:13:12 +03:00
Delyan Angelov
0c922f5570
ci: fix the failing os.real_path tests on windows 2021-06-15 13:34:28 +03:00
Delyan Angelov
51596da314
os: fix returning parameter in [manualfree]os.real_path(fpath), when fpath=="" 2021-06-15 13:10:41 +03:00
Miccah
e328b1d292
os: create epoll wrapper (#10404) 2021-06-15 04:44:31 +03:00
Emily Hudson
535dcac8fa
net: ipv6 support, merge unix+ip;[pack:x] attribute (#9904) 2021-06-13 23:53:38 +03:00
Andreas Heissenberger
96c8d147b2
v.gen.js: add source map creation support (inline only, no src) (#10384) 2021-06-10 08:33:46 +03:00
Delyan Angelov
95cf120e2e
ci: fix linux-cross job; os.real_path cleanup 2021-06-08 18:34:15 +03:00
Delyan Angelov
d820f2da6f
os: use arr.trim() in read_bytes, instead of a arr[0..x].clone() 2021-06-08 17:24:07 +03:00
Delyan Angelov
4772146a7e tests: fix failing tests on M1 2021-06-07 18:23:18 +03:00
Bastian Buck
d6e462a6ca
os: fix os.is_link and os.symlink on windows, add new functions os.getppid, os.getgid, os.getegid (#10251) 2021-05-29 23:26:13 +03:00
Uwe Krüger
2d8a136d6e
os: fix file read (#10247) 2021-05-29 16:53:42 +03:00
Delyan Angelov
bf97faf32a
os: simplify os.read_bytes_into_newline to fix compilation on freebsd 2021-05-22 07:48:12 +03:00
Delyan Angelov
b7bf4b034e
os: use stricter declarations for C.getc/1, C.fseeko/3 and C._fseeki64/3 2021-05-22 07:45:00 +03:00
Sebastian Schicho
04ea2824d3
os: implement File.read_bytes_into_newline method for reading into a buffer, line by line (#10129) 2021-05-21 13:18:08 +03:00
Alexander Medvednikov
f09a5135e9 checker: handle builtin enum init correctly 2021-05-20 03:14:32 +03:00
Delyan Angelov
453fb1b08b
term.ui: use os.signal_opt instead of os.signal 2021-05-18 11:59:57 +03:00
Delyan Angelov
21b34b3a0b
ci: bump up the deprecation date of os.signal to 2021-06-18 2021-05-18 11:06:00 +03:00
Leigh McCulloch
49deeac71e
os: fix file read end-of-file detection (#10070) 2021-05-13 09:48:55 +03:00
kevin70g
e9c84ce154
os: fix is_abs_path() panic, when path is only one letter on windows (#10071) 2021-05-10 10:01:32 +03:00
Delyan Angelov
4728d102d9
os: add Process.finalise() and Process.free() methods to cleanup pipe descriptors 2021-05-09 21:50:47 +03:00
Delyan Angelov
38d16229ef
os: fix panic on os.is_abs_path('') 2021-05-09 10:45:34 +03:00
Enzo
4ac751d773
os: add signal_opt and deprecate signal (#10005) 2021-05-05 15:39:02 +03:00
Miccah
12c3f85507
os: add getuid and geteuid (#10002) 2021-05-05 14:20:11 +03:00
Delyan Angelov
298fc533e4
ci: run v fmt -w vlib/os/file.c.v 2021-05-04 08:40:27 +03:00
Leigh McCulloch
0fa9a648ae
os: add os.stdout() and os.stderr(), returning os.File, similarly to os.stdin() (#9990) 2021-05-03 19:00:51 +03:00
Leigh McCulloch
4ba11b7752
os: deprecate os.open_stdin in favor of os.stdin (#9989) 2021-05-03 18:57:21 +03:00
Enzo
fb7ddcd4c9
checker: fix looking for unprefixed os functions (#9968) 2021-05-02 21:46:12 +03:00
Uwe Krüger
787a63dab6
cgen: execute defer block *after* return expression is evaluated (#9893) 2021-04-27 01:42:16 +03:00
Bastian Buck
160b605640
os: use C.GetUserNameW for os.loginname() instead + improvements os.uname() (#9872) 2021-04-25 18:16:14 +03:00
Alexander Medvednikov
7f5c3cc1f8 checker: do not allow modifying consts via mutable refs 2021-04-24 14:08:50 +03:00
Delyan Angelov
b506d8fcc0
os: use C.getlogin for os.loginname, instead of C.getlogin_r (C.getlogin_r absent on Android) 2021-04-24 13:33:34 +03:00
Marcos Diaz
187895c93c
os: use GetComputerNameW to retrieve hostname on Windows (#9861) 2021-04-24 13:22:04 +03:00
Alexander Medvednikov
c7a6d28e13 all: improve unused variable warning (fix x = 1, x += 1 etc) 2021-04-23 13:33:48 +03:00
Delyan Angelov
59e23dbb57
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
zakuro
7443179cc8
checker: make use of private enum from outside module an error. (#9821) 2021-04-22 07:07:56 +03:00
Nicolas Sauzede
258be508f4
builtin,os: fix unused return C warnings for real (#9814) 2021-04-20 17:28:58 +03:00
Bastian Buck
9ec91f4d58
os: add new function os.loginname(), improve some error messages (#9794) 2021-04-19 14:57:25 +03:00
Bastian Buck
515d8c0bc8
os: remove unnecessary check (#9722) (#9773) 2021-04-17 02:37:57 +03:00
Bastian Buck
aa49bc2708
os: implement os.truncate() + improve error handling (#9752) 2021-04-16 11:53:44 +03:00
Bastian Buck
546dc91967
os: create os.hostname() and os.chown() + os.uname() for windows (#9722) 2021-04-15 01:49:05 +02:00
crthpl
14434cc86a
all: bare metal support (fix -freestanding) (#9624) 2021-04-14 07:50:50 +02:00
Lukas Neubert
ada763e0f4
fmt: remove parenthesis around single ident (#9696) 2021-04-12 16:01:03 +03:00
Henrixounez
7ba13a415a
os: handle fread errors (#9687) 2021-04-12 10:26:08 +03:00
Lukas Neubert
1d5ed89138
fmt: remove trailing space in comments (#9620) 2021-04-07 15:25:11 +02:00
Delyan Angelov
db84d5e221
os: cleanup os.environ implementation 2021-04-06 18:02:12 +03:00
Delyan Angelov
d8cb24eef0 ci: fix -cflags -Werror jobs 2021-04-05 23:42:26 +03:00
Delyan Angelov
19b915b105 ci: fix windows-tcc job 2021-04-05 23:35:22 +03:00
Delyan Angelov
10619d098c
ci: fix a race in vlib/v/compiler_errors_test.v execution on m1 2021-04-05 22:57:59 +03:00
Delyan Angelov
b041681c00 tests: bump limits to reduce flakyness on m1 with latest clang 2021-04-05 22:38:55 +03:00