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

59 Commits

Author SHA1 Message Date
075e09b10e os: fix a file descriptor leak in os.read_bytes() (#10723) 2021-07-09 23:49:46 +03:00
d2f19ac494 os: add a glob() function (#10497) 2021-06-30 08:30:18 +03:00
1e9e717111 os: fix using Win32-API with TCC32 (#10496) 2021-06-21 14:14:58 +03:00
acf9d168cb os: fix some C compiler warnings for windows (#10506) 2021-06-18 20:07:25 +03:00
b7fea87d07 os: fix normalize_drive_letter (used by os.real_path) returning a parameter 2021-06-18 13:06:52 +03:00
60c880a0cc vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
51596da314 os: fix returning parameter in [manualfree]os.real_path(fpath), when fpath=="" 2021-06-15 13:10:41 +03:00
95cf120e2e ci: fix linux-cross job; os.real_path cleanup 2021-06-08 18:34:15 +03:00
d820f2da6f os: use arr.trim() in read_bytes, instead of a arr[0..x].clone() 2021-06-08 17:24:07 +03:00
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
2d8a136d6e os: fix file read (#10247) 2021-05-29 16:53:42 +03:00
4ac751d773 os: add signal_opt and deprecate signal (#10005) 2021-05-05 15:39:02 +03:00
c7a6d28e13 all: improve unused variable warning (fix x = 1, x += 1 etc) 2021-04-23 13:33:48 +03:00
258be508f4 builtin,os: fix unused return C warnings for real (#9814) 2021-04-20 17:28:58 +03:00
9ec91f4d58 os: add new function os.loginname(), improve some error messages (#9794) 2021-04-19 14:57:25 +03:00
515d8c0bc8 os: remove unnecessary check (#9722) (#9773) 2021-04-17 02:37:57 +03:00
aa49bc2708 os: implement os.truncate() + improve error handling (#9752) 2021-04-16 11:53:44 +03:00
546dc91967 os: create os.hostname() and os.chown() + os.uname() for windows (#9722) 2021-04-15 01:49:05 +02:00
7ba13a415a os: handle fread errors (#9687) 2021-04-12 10:26:08 +03:00
10619d098c ci: fix a race in vlib/v/compiler_errors_test.v execution on m1 2021-04-05 22:57:59 +03:00
90b123c27b ci: fix self compilation on windows 2021-04-05 15:47:43 +03:00
accd4d83bf ci: fix compilation 2021-04-04 20:14:51 +03:00
6c8199c9d9 os: fix compilation on linux 2021-04-04 17:48:21 +03:00
57e6138a61 all: remove byteptr and charptr; replace them with &byte and &char 2021-04-04 17:43:32 +03:00
c698fa1a58 all: support v -watch run (#9577) 2021-04-04 16:05:06 +02:00
15d9f50be9 os: add x64 mode for struct and raw read/write (#9512) 2021-03-30 11:40:23 +02:00
69dff4b384 os: make os module handle large files (#9439) 2021-03-26 07:51:55 +01:00
446631ceb5 checker: fixed array cannot implicitly convert to fooptr (again) (#9302) 2021-03-15 15:55:07 +02:00
125be84e3d builtin: fix -d debug_realloc, add realloc_data/3 2021-03-14 14:54:35 +02:00
2f1810634e checker: do not allow direct initialization of builtin types (s := string{}) 2021-03-13 18:20:46 +03:00
99abd46ac9 os: add (read|write)_raw[_at] to File (#9171) 2021-03-10 18:45:12 +02:00
2d73411396 checker: define missing C fn args & check C & JS args (#8770) 2021-03-05 17:41:11 +03:00
5e0e44eb69 os: move file methods to vlib/os/file.c.v, document them, add new file.read_struct and file.write_struct and tests 2021-03-04 14:54:39 +02:00
20f9bdfa8e os: fixes for os.input(), os.get_raw_stdin(), os.get_raw_line() in case of stdin EOF 2021-02-27 20:02:36 +02:00
ac4791045f time: consolidate the different sleep functions into time.wait(Duration) (#8853) 2021-02-21 17:05:03 +02:00
6a752512b2 os: fix os.real_path on Windows (#8822) 2021-02-19 11:20:06 +02:00
4a0367a63c vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766) 2021-02-15 17:15:52 +02:00
ea803113c3 checker: check unsafe V function calls (#8752) 2021-02-14 19:31:42 +01:00
d03c1d615a os: improve rm error message (#8719) 2021-02-13 13:51:38 +01:00
d660f2cc6f fmt: insert newline after last HashStmt (#8482) 2021-02-01 14:50:41 +01:00
64d12cdc8d checker: check number of C function arguments for some cases (#8444) 2021-01-30 18:33:36 +01:00
8b61891348 fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
53941c4a0a fmt: fix if cond break readability (#8132) 2021-01-16 02:12:17 +01:00
995f27a7c0 builtin,os: use more precise C. declarations for C.fread, C.fwrite and C.qsort 2021-01-15 12:15:31 +02:00
adf084eeed cgen: fix address violations for return error(abc), reduce leaks in os 2021-01-14 04:58:26 +02:00
0ab6a8cd01 os: add a posix_set_permission_bit function (#7754) 2021-01-04 19:57:17 +02:00
7ce3c5e206 os: change os.mv/2 return type to ? (#7738) 2020-12-31 11:33:39 +02:00
b4f02adc32 os: add os.execve/3 (extracted from unix_spawn_process); use os.execvp/2 in v.util.launch_tool/3 2020-12-30 18:14:03 +02:00
fe7fa7077e ci: fix for os.execvp on macos (cargs << charptr(cmdpath.str) too) 2020-12-28 20:20:56 +02:00
8fe85bcc33 ci: fix for os.execvp on macos (<<charptr()) 2020-12-28 20:15:30 +02:00