Jarred Sumner
d2b81fa7c9
Linux implementation
2022-09-25 09:19:09 -07:00
Jarred Sumner
a8ab899816
wip
2022-09-24 19:03:31 -07:00
Jarred Sumner
0968fd339f
Add epoll to list of syscalls that can fail
2022-09-22 03:06:48 -07:00
Jarred Sumner
c01cba3ab5
Update types.zig
2022-09-20 23:57:45 -07:00
Jarred Sumner
ef1607c088
fixup
2022-09-20 23:57:07 -07:00
Jarred Sumner
9667eec9de
Be more careful with process.argv
2022-09-20 23:56:08 -07:00
Jarred Sumner
37d191bc02
Update process.argv to more closely match node
2022-09-19 23:37:26 -07:00
Jarred Sumner
c600196b1a
[node:fs] Fix readFileSync on non-regular files
...
Fixes https://github.com/oven-sh/bun/issues/1220
2022-09-09 19:26:02 -07:00
Jarred Sumner
3d8edcb77b
Fix potential crash when returning an empty string
2022-09-09 19:20:24 -07:00
Jarred Sumner
ce382788b0
Mild perf improvement for bindings
2022-09-07 19:53:49 -07:00
Jarred Sumner
6e9159a9ad
workaround test failure
2022-09-06 20:59:18 -07:00
Jarred Sumner
8d71a931a3
Add a helper for static strings
2022-09-06 18:31:20 -07:00
Jarred Sumner
7a5cfc4bae
Return a Buffer object for fs.readFile
2022-09-06 07:22:52 -07:00
Jarred Sumner
d7dbe6f329
Remove code that doesn't work
2022-08-28 21:46:47 -07:00
Jarred Sumner
af5c4dedca
Update WebKit ( #1165 )
...
* Update WebKit
* Fix `DataView` and non-8 bit sized typed arrays with TextDecoder
* New WebKit
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-08-27 23:46:05 -07:00
Zilin Zhu
49447decdd
fix compile error ( #1157 )
2022-08-27 02:59:07 -07:00
Jarred Sumner
64b3d28d41
Update node_fs.zig
2022-08-26 01:59:13 -07:00
Zilin Zhu
07a4b26697
fix mkdtemp ( #1151 )
...
* fix mkdtemp
* Update src/bun.js/node/node_fs.zig
* Update src/bun.js/node/node_fs.zig
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2022-08-26 01:22:25 -07:00
Hyro
7a734e0a28
feat: implement native os module ( #1115 )
...
* feat: implement os module
* revert(bun-error): package-lock.json
* feat: implement EOL
* feat: implement EOL
* feat: implement arch function
* feat: implement homedir function
* add comptime to homedir if
* feat: add platform function
* feat: implement type function
* feat: add hostname (not sure iff works on all platforms)
* chore: make requested changes
* fix: change toValueGC into toValue in arch function
* add EOL, devNull constant variables
* fix: store only string
* feat: add tests
* feat: add endianness
* ususe toValue for devNull & EOL
* feat: implement endianness & fix release
* revert javascript.zig fix
* feat: implement tmpdir
* feat: implement totalmem, freemem, uptime
* feat: loadavg
* feat: implement version
* feat: add userInfo
* feat: implement totalmem for macos
* feat: add getPriority (not finished, waiting for dc response)
* feat: finish userInfo implementation
* feat: implement cpus, not done
* feat: finish getPriority implementation & stats cpus()
* feat: implement setPriority
* reemove test.c
* feat: implement constants.dlope.xn, constants.priority.x, constants.UV_UDP_REUSEADDR
* feat: implement signals, errno
* updated cpus function, stilldoesnt work
* increase object length
* feat: add t more ests
* feat: add cpus()
* remov some files
* fix: handle empty array
* started working on interface addresses (in C)
ill use C++ after it work
* fix interface_addresses
* Improved getCpuInfo code, decreased ram usage, increased speed
* getCpuTime optimizations
* started working on networkInterfaces
* feat: networkInterfaces implementation
* delete unnecessary files
* add benchs & fix code
* add tests
* add missing benchs
* Increased buffer of getCpuInfo to 2048, it should skip few iterations
* remove hardcoded constants
* feat: implement errno constants
* fix getWindowsErrorConstant
* feat: add signal constants
* feat: implement priority constants
* remove duplications
* fix: change value to ?i16
* fix(__defineConstant): make some parameters comptime, change value to ?i32
* fix: add E to ERRNO constants, add SIG to SIG constants
* feat: add dlopen constants
* change functions to private
* feat: add UV_UDP_REUSEADDR
* fix typo
* simplify functions
* rename functions in bindings
* feat: implement loadavg for darwin
* feat: implement system uptime
* feat: implement get free memory for darwin
* fix system memory bindings
* feat: implement network interfaces for darwin
* code cleanup
* feat: support for macos version & release
* some fixes
* MacOS support for CpuInfo
* Fixed minor mistake in getCpuInfo_B
* Delete test.zig
* Update c_cpp_properties.json
* Update tasks.json
* feat: implement scopeid
* feat: implement cidr 🚀
* remove unnecesarry changes
* remove unnecesarry changes
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* chore: requested changes
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* fix: import string
* fix: change IPV6 to IPv6
* fix some things
* chore: make requested changes
* revert: launch.json
* fix test
* Fixed few memory leaks
* testing
* again
* added len
* another test
* improved parsing
* added small check
* Bonk
* FINISH 🚀 🚀 🚀 🚀 🚀 🚀
* Update tasks.json
* NetworkInterface test
* FINISH 🚀 🚀 🚀
Co-authored-by: Fire-The-Fox <gajdos.jan77@gmail.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2022-08-25 19:38:28 -07:00
Jarred Sumner
7880e6e6c8
Remove usage of fnctl64 so we can avoid the libc symbol
2022-08-21 00:50:23 -07:00
Jarred Sumner
0e4db0b28f
Add string support to Buffer.fill
2022-08-18 21:09:26 -07:00
Jarred Sumner
e3c2a95e5f
Faster TextDecoder
2022-08-18 19:06:29 -07:00
Jarred Sumner
1d2b52d15c
Move the crypto hashers to the new bindings
2022-08-17 21:38:16 -07:00
Zilin Zhu
66869f2239
fix appendFile permission ( #1052 )
2022-08-11 01:00:06 -07:00
Jarred Sumner
01f567e915
add some comments
2022-08-09 06:05:20 -07:00
Jarred Sumner
16f24086f8
[node compat] Improve fs.copyFileSync performance on macOS
2022-08-09 05:48:20 -07:00
Jarred Sumner
8ae4c745e1
Improve fs.copyFile performance on Linux ( #1035 )
...
* [fs] Improve fs.copyFile performance on Linux
* Add a fs.copyFileSync benchmark
* Fix build error
* Update node.mitata.mjs
* Be more careful with permission
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-08-09 05:44:39 -07:00
Jarred Sumner
e253ce0948
Add process.revision and expose git sha to builds
2022-08-03 18:35:53 -07:00
Jarred Sumner
0d4b4c4942
Canary builds (Linux) ( #824 )
...
* wip
* WIP:
* WIP
* WIP
* WIP
* WIP
* WIP
* Update WebKit
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Update WebKit
* WIP
* WIP
* WIP
* WIP
* Workaround missing system calls
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Fix baseline detection
* WIP
* strip debug symbol
* Auto-generate canary build
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-07-22 00:58:45 -07:00
Carter Snook
7500f4b2ca
feat(node/fs): implement more stat methods ( #807 )
2022-07-20 10:19:41 -07:00
Jarred Sumner
f6002b799b
Delete BunStream
2022-07-02 01:36:04 -07:00
Jarred Sumner
4821b9c10b
Fix promise memory leak
2022-06-30 19:23:27 -07:00
Jarred Sumner
729d445b68
change the directory structure
2022-06-22 23:21:48 -07:00