This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | |
| #ifndef _ASM_GENERIC_IOCTL_H | |
| #define _ASM_GENERIC_IOCTL_H | |
| /* ioctl command encoding: 32 bits total, command in lower 16 bits, | |
| * size of the parameter structure in the lower 14 bits of the | |
| * upper 16 bits. | |
| * Encoding the size of the parameter structure in the ioctl request | |
| * is useful for catching programs compiled with old versions | |
| * and to avoid overwriting user space outside the user buffer area. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | |
| #ifndef _ASM_GENERIC_TERMIOS_H | |
| #define _ASM_GENERIC_TERMIOS_H | |
| /* | |
| * Most architectures have straight copies of the x86 code, with | |
| * varying levels of bug fixes on top. Usually it's a good idea | |
| * to use this generic version instead, but be careful to avoid | |
| * ABI changes. | |
| * New architectures should not provide their own version. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Any part of this program may be used in documents licensed under | |
| * the GNU Free Documentation License, Version 1.1 or any later version | |
| * published by the Free Software Foundation. | |
| */ | |
| #ifndef _PARPORT_H_ | |
| #define _PARPORT_H_ | |
| /* Start off with user-visible constants */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Online C compiler to run C program online | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| static inline void freeBufferCells(void** buffer, int count) { | |
| for (int i = 0; i < count; i++) { | |
| free(buffer[i]); | |
| buffer[i] = NULL; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git rm -r --cached . | |
| git add . | |
| git commit -m "fixing .gitignore" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| └──╼ $./avr-objdump -S '/home/twisted/GradleProjects/ShiftAvr/shiftavr-examples/build/atmega328p/hello_gpio_write.c.elf' | |
| /home/twisted/GradleProjects/ShiftAvr/shiftavr-examples/build/atmega328p/hello_gpio_write.c.elf: file format elf32-avr | |
| Disassembly of section .text: | |
| 00000000 <__vectors>: | |
| 0: 0c 94 34 00 jmp 0x68 ; 0x68 <__ctors_end> | |
| 4: 0c 94 46 00 jmp 0x8c ; 0x8c <__bad_interrupt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Wrapper { | |
| private Object object; | |
| public Wrapper(Object object) { | |
| this.object = object; | |
| } | |
| public void setObject(Object object) { | |
| this.object = object; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| class TestSuperCapture { | |
| static class TestSuper {} | |
| static class TestSub extends TestSuper {} | |
| static class TestSub2 extends TestSub {} | |
| static class TestSub3 extends TestSub2 {} | |
| public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| /* define a non-system-specific pointer type that can hold an address of up-to 8-bytes */ | |
| typedef long long jlong; | |
| jlong Java_util_getAddress() { | |
| int* x = malloc(sizeof(int)); | |
| *x = 2312; | |
| void* address = x; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| /** Header file */ | |
| typedef struct { | |
| int rows; | |
| int columns; | |
| } StarMatrixMetadata; | |
| void print_star_matrix(StarMatrixMetadata metadata); |