It is required mainly for VMs that use virbr0 and NAT. Networking options like macvtap don't need it.
https://github.com/mariuz/linux-0.01 might give you some ideas.
https://en.wikipedia.org/wiki/Load-link/store-conditional
Another bit of trivia about the shebang support in Linux is that is possible to build the kernel without it. https://github.com/torvalds/linux/blob/master/fs/Kconfig.bin... config BINFMT_SCRIPT tristate "Kernel support…
I don't quite understand what --exec does. If I leave out --exec from example 3, is it supposed to prevent bash from executing other programs? $ landrun --log-level debug --ro /usr/bin,/lib,/lib64 /usr/bin/bash --norc…
Large projects like the Linux kernel, which are mostly C, use the preprocessor in .S files quite heavily. Linux has hardly any .s files. ~/linux$ find . -name '*.s' ./arch/x86/kernel/asm-offsets.s ./kernel/bounds.s…
Function typedefs make this less confusing by removing awkward parentheses. e.g. typedef int read_block_fn(void *context, u8 *buf, unsigned int block, size_t len);…
Nested virtualization needs at least an M3 https://developer.apple.com/documentation/virtualization/vzg... This is the sad situation on my M2 MacBook Pro :( $ swift repl Welcome to Apple Swift version 6.0.2…
This is form-over-function, classic Apple. They don't want to give even the slightest impression that they are selling a wired mouse.
From a Raspberry Pi 5: L2 cache line is 128 Vendor ID: ARM Model name: Cortex-A76 $ lscpu -C NAME ONE-SIZE ALL-SIZE WAYS TYPE LEVEL SETS PHY-LINE COHERENCY-SIZE L1d 64K 256K 4 Data 1 256 64 L1i 64K 256K 4 Instruction 1…
There's a Python library that has been quite reliable for me for local control. $ python3 Python 3.12.4 (main, Jun 6 2024, 18:26:44) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin Type "help", "copyright", "credits" or…
Yes, these commands have way too many options for anyone to remember. The commands are best wrapped up in a script. An ISO install is usually a manual process that can take time, but it is definitely easier.
Most Linux distributions ship ready-made VM images which are easier to turn into VMs. See https://news.ycombinator.com/item?id=40610332
https://www.apple.com/shop/product/HMJU2ZM/A/belkin-ethernet...
The exact same thing happens with GCC 12 with 32-bit MIPS. #include <asm/unistd.h> char msg[] = "hello, world!\n"; int main(void) { register int syscall_no asm("v0") = __NR_write; register int arg1 asm("a0") = 1;…
There's also virt-install, which is part of the Virt Manager package. https://github.com/virt-manager/virt-manager/blob/main/man/v... curl --output-dir $HOME/.local/share/libvirt/images/ -LO…
Returning both the ULA and global addresses should be okay. This is what my OpenWRT router does without any special setup. wk1 is one of my local machines. $ dig +short wk1 AAAA @192.168.1.1 2601:646:...…
Found it in the readline manual https://tiswww.cwru.edu/php/chet/readline/readline.html#inde... insert-comment (M-#) Without a numeric argument, the value of the comment-begin variable is inserted at the beginning of…
Is this something special you have set up on your Mac? I keep getting screenshots when I hit command-shift-3. https://support.apple.com/en-us/102646
Shebang scripts are supported directly by the kernel via the exec family of system calls, so ld.so shouldn't be involved. https://github.com/torvalds/linux/blob/master/fs/Kconfig.bin... config BINFMT_SCRIPT tristate…
I happen to see hostnames for several of my devices at home. root@OpenWrt:~# ubus call dhcp ipv6leases | jq -r '.device["br-lan"].leases[].hostname' cp1 syn wk1 furnace cp1 5c 4b8 5a 5b 5a cp3 4b8 cp2 4b wk2 5c 5b wk3
I’m on Ventura 13.6.1. Looks like your which is a shell built-in as well. Try ls /usr/bin/cd
$ uname Darwin $ which cd /usr/bin/cd
The FreeBSD qcow2 can be used directly without running an install. The one that I used was FreeBSD-13.2-RELEASE-arm64-aarch64.qcow2 For OpenBSD, the installer works after adjusting the devices in the guest.…
determine stack growth direction by having one function call another with a pointer to a local variable in the former and then compare that to a pointer to a local variable in the latter. This is undefined behavior. See…
It is required mainly for VMs that use virbr0 and NAT. Networking options like macvtap don't need it.
https://github.com/mariuz/linux-0.01 might give you some ideas.
https://en.wikipedia.org/wiki/Load-link/store-conditional
Another bit of trivia about the shebang support in Linux is that is possible to build the kernel without it. https://github.com/torvalds/linux/blob/master/fs/Kconfig.bin... config BINFMT_SCRIPT tristate "Kernel support…
I don't quite understand what --exec does. If I leave out --exec from example 3, is it supposed to prevent bash from executing other programs? $ landrun --log-level debug --ro /usr/bin,/lib,/lib64 /usr/bin/bash --norc…
Large projects like the Linux kernel, which are mostly C, use the preprocessor in .S files quite heavily. Linux has hardly any .s files. ~/linux$ find . -name '*.s' ./arch/x86/kernel/asm-offsets.s ./kernel/bounds.s…
Function typedefs make this less confusing by removing awkward parentheses. e.g. typedef int read_block_fn(void *context, u8 *buf, unsigned int block, size_t len);…
Nested virtualization needs at least an M3 https://developer.apple.com/documentation/virtualization/vzg... This is the sad situation on my M2 MacBook Pro :( $ swift repl Welcome to Apple Swift version 6.0.2…
This is form-over-function, classic Apple. They don't want to give even the slightest impression that they are selling a wired mouse.
From a Raspberry Pi 5: L2 cache line is 128 Vendor ID: ARM Model name: Cortex-A76 $ lscpu -C NAME ONE-SIZE ALL-SIZE WAYS TYPE LEVEL SETS PHY-LINE COHERENCY-SIZE L1d 64K 256K 4 Data 1 256 64 L1i 64K 256K 4 Instruction 1…
There's a Python library that has been quite reliable for me for local control. $ python3 Python 3.12.4 (main, Jun 6 2024, 18:26:44) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin Type "help", "copyright", "credits" or…
Yes, these commands have way too many options for anyone to remember. The commands are best wrapped up in a script. An ISO install is usually a manual process that can take time, but it is definitely easier.
Most Linux distributions ship ready-made VM images which are easier to turn into VMs. See https://news.ycombinator.com/item?id=40610332
https://www.apple.com/shop/product/HMJU2ZM/A/belkin-ethernet...
The exact same thing happens with GCC 12 with 32-bit MIPS. #include <asm/unistd.h> char msg[] = "hello, world!\n"; int main(void) { register int syscall_no asm("v0") = __NR_write; register int arg1 asm("a0") = 1;…
There's also virt-install, which is part of the Virt Manager package. https://github.com/virt-manager/virt-manager/blob/main/man/v... curl --output-dir $HOME/.local/share/libvirt/images/ -LO…
Returning both the ULA and global addresses should be okay. This is what my OpenWRT router does without any special setup. wk1 is one of my local machines. $ dig +short wk1 AAAA @192.168.1.1 2601:646:...…
Found it in the readline manual https://tiswww.cwru.edu/php/chet/readline/readline.html#inde... insert-comment (M-#) Without a numeric argument, the value of the comment-begin variable is inserted at the beginning of…
Is this something special you have set up on your Mac? I keep getting screenshots when I hit command-shift-3. https://support.apple.com/en-us/102646
Shebang scripts are supported directly by the kernel via the exec family of system calls, so ld.so shouldn't be involved. https://github.com/torvalds/linux/blob/master/fs/Kconfig.bin... config BINFMT_SCRIPT tristate…
I happen to see hostnames for several of my devices at home. root@OpenWrt:~# ubus call dhcp ipv6leases | jq -r '.device["br-lan"].leases[].hostname' cp1 syn wk1 furnace cp1 5c 4b8 5a 5b 5a cp3 4b8 cp2 4b wk2 5c 5b wk3
I’m on Ventura 13.6.1. Looks like your which is a shell built-in as well. Try ls /usr/bin/cd
$ uname Darwin $ which cd /usr/bin/cd
The FreeBSD qcow2 can be used directly without running an install. The one that I used was FreeBSD-13.2-RELEASE-arm64-aarch64.qcow2 For OpenBSD, the installer works after adjusting the devices in the guest.…
determine stack growth direction by having one function call another with a pointer to a local variable in the former and then compare that to a pointer to a local variable in the latter. This is undefined behavior. See…