From 0965669f4b50f2432fed0c2cbcd4f31d376a5b7c Mon Sep 17 00:00:00 2001 From: Enrico Fraccaroli Date: Tue, 13 Dec 2022 14:25:16 -0500 Subject: [PATCH] Add newline at the end of the files. --- libc/inc/bits/termios-struct.h | 2 +- libc/inc/grp.h | 2 +- libc/inc/ipc/ipc.h | 2 +- libc/inc/ipc/msg.h | 2 +- libc/inc/ipc/sem.h | 2 +- libc/inc/ipc/shm.h | 2 +- libc/inc/libgen.h | 2 +- libc/inc/ring_buffer.h | 2 +- libc/inc/stdio.h | 2 +- libc/inc/string.h | 2 +- libc/inc/sys/bitops.h | 2 +- libc/inc/sys/dirent.h | 2 +- libc/inc/sys/ioctl.h | 2 +- libc/inc/sys/stat.h | 2 +- libc/inc/sys/unistd.h | 2 +- libc/src/debug.c | 2 +- libc/src/grp.c | 2 +- libc/src/libgen.c | 2 +- libc/src/stdio.c | 2 +- libc/src/sys/unistd.c | 2 +- libc/src/termios.c | 2 +- libc/src/time.c | 2 +- libc/src/unistd/signal.c | 2 +- libc/src/vsprintf.c | 2 +- mentos/inc/descriptor_tables/gdt.h | 2 +- mentos/inc/descriptor_tables/idt.h | 2 +- mentos/inc/descriptor_tables/isr.h | 2 +- mentos/inc/devices/fpu.h | 2 +- mentos/inc/devices/pci.h | 2 +- mentos/inc/drivers/ata.h | 2 +- mentos/inc/drivers/fdc.h | 2 +- mentos/inc/drivers/keyboard/keyboard.h | 2 +- mentos/inc/drivers/keyboard/keymap.h | 2 +- mentos/inc/drivers/mouse.h | 2 +- mentos/inc/drivers/ps2.h | 2 +- mentos/inc/drivers/rtc.h | 2 +- mentos/inc/elf/elf.h | 2 +- mentos/inc/fs/ioctl.h | 2 +- mentos/inc/fs/procfs.h | 2 +- mentos/inc/hardware/timer.h | 2 +- mentos/inc/io/vga/vga.h | 2 +- mentos/inc/klib/stdatomic.h | 1 - mentos/inc/mem/kheap.h | 2 +- mentos/inc/proc_access.h | 2 +- mentos/inc/process/scheduler.h | 2 +- mentos/inc/process/wait.h | 2 +- mentos/inc/sys/module.h | 2 +- mentos/inc/system/panic.h | 2 +- mentos/inc/system/signal.h | 2 +- mentos/src/boot.c | 2 +- mentos/src/devices/pci.c | 2 +- mentos/src/drivers/ata.c | 2 +- mentos/src/drivers/fdc.c | 2 +- mentos/src/drivers/keyboard/keyboard.c | 2 +- mentos/src/drivers/keyboard/keymap.c | 2 +- mentos/src/drivers/mouse.c | 2 +- mentos/src/drivers/ps2.c | 2 +- mentos/src/drivers/rtc.c | 2 +- mentos/src/fs/ioctl.c | 2 +- mentos/src/fs/namei.c | 2 +- mentos/src/fs/procfs.c | 2 +- mentos/src/fs/read_write.c | 2 +- mentos/src/fs/stat.c | 2 +- mentos/src/hardware/timer.c | 2 +- 64 files changed, 63 insertions(+), 64 deletions(-) diff --git a/libc/inc/bits/termios-struct.h b/libc/inc/bits/termios-struct.h index aad92c6..b8171b9 100644 --- a/libc/inc/bits/termios-struct.h +++ b/libc/inc/bits/termios-struct.h @@ -43,4 +43,4 @@ typedef struct termios { #define IEXTEN 0x00000400 ///< Enables implementation-defined input processing. /// @brief Mask for extracting control values. -#define CTRL(x) (x & 037) \ No newline at end of file +#define CTRL(x) (x & 037) diff --git a/libc/inc/grp.h b/libc/inc/grp.h index dc2e5cd..7d725f5 100644 --- a/libc/inc/grp.h +++ b/libc/inc/grp.h @@ -69,4 +69,4 @@ group_t *getgrent(void); void endgrent(void); /// @brief May be called to close the group database when processing is complete. -void setgrent(void); \ No newline at end of file +void setgrent(void); diff --git a/libc/inc/ipc/ipc.h b/libc/inc/ipc/ipc.h index 95dc6b6..1cd888e 100644 --- a/libc/inc/ipc/ipc.h +++ b/libc/inc/ipc/ipc.h @@ -21,4 +21,4 @@ struct ipc_perm { unsigned short mode; /// Sequence number. unsigned short __seq; -}; \ No newline at end of file +}; diff --git a/libc/inc/ipc/msg.h b/libc/inc/ipc/msg.h index 99c7adc..b7a9656 100644 --- a/libc/inc/ipc/msg.h +++ b/libc/inc/ipc/msg.h @@ -122,4 +122,4 @@ long msgrcv(int msqid, msgbuf_t *msgp, size_t msgsz, long msgtyp, int msgflg); /// @return 0 on success, -1 on failure and errno is set to indicate the error. long msgctl(int msqid, int cmd, msqid_ds_t *buf); -#endif \ No newline at end of file +#endif diff --git a/libc/inc/ipc/sem.h b/libc/inc/ipc/sem.h index 02c240f..4b72c34 100644 --- a/libc/inc/ipc/sem.h +++ b/libc/inc/ipc/sem.h @@ -72,4 +72,4 @@ long semop(int semid, struct sembuf *sops, unsigned nsops); /// @return 0 on success, -1 on failure and errno is set to indicate the error. long semctl(int semid, int semnum, int cmd, unsigned long arg); -#endif \ No newline at end of file +#endif diff --git a/libc/inc/ipc/shm.h b/libc/inc/ipc/shm.h index e114853..8b1965b 100644 --- a/libc/inc/ipc/shm.h +++ b/libc/inc/ipc/shm.h @@ -203,4 +203,4 @@ long shmdt(const void *shmaddr); /// failure and errno is set to indicate the error. long shmctl(int shmid, int cmd, struct shmid_ds *buf); -#endif \ No newline at end of file +#endif diff --git a/libc/inc/libgen.h b/libc/inc/libgen.h index 2bde4c1..72585c6 100644 --- a/libc/inc/libgen.h +++ b/libc/inc/libgen.h @@ -37,4 +37,4 @@ char *basename(const char *path); /// If resolved is NULL, then realpath() uses malloc /// to allocate a buffer of up to PATH_MAX bytes to hold the /// resolved pathname, and returns a pointer to this buffer. -char *realpath(const char *path, char *resolved); \ No newline at end of file +char *realpath(const char *path, char *resolved); diff --git a/libc/inc/ring_buffer.h b/libc/inc/ring_buffer.h index dac2827..6d8b09f 100644 --- a/libc/inc/ring_buffer.h +++ b/libc/inc/ring_buffer.h @@ -124,4 +124,4 @@ } #undef RING_BUFFER_ALLOC -#undef RING_BUFFER_FREE \ No newline at end of file +#undef RING_BUFFER_FREE diff --git a/libc/inc/stdio.h b/libc/inc/stdio.h index fcce466..1f3692d 100644 --- a/libc/inc/stdio.h +++ b/libc/inc/stdio.h @@ -123,4 +123,4 @@ int sscanf(const char *str, const char *fmt, ...); /// @return On success, the function returns the number of items of the /// argument list successfully filled. EOF otherwise. int fscanf(int fd, const char *fmt, ...); -#endif \ No newline at end of file +#endif diff --git a/libc/inc/string.h b/libc/inc/string.h index 3e619ba..d7b386e 100644 --- a/libc/inc/string.h +++ b/libc/inc/string.h @@ -307,4 +307,4 @@ char *replace_char(char *str, char find, char replace); /// referenced by p. /// @param mode File mode that encodes access permissions and file type. /// @param p Buffer used to hold the string representation of file mode m. -void strmode(mode_t mode, char *p); \ No newline at end of file +void strmode(mode_t mode, char *p); diff --git a/libc/inc/sys/bitops.h b/libc/inc/sys/bitops.h index b45eef5..53a77c4 100644 --- a/libc/inc/sys/bitops.h +++ b/libc/inc/sys/bitops.h @@ -41,4 +41,4 @@ static inline int find_first_non_zero(unsigned long value) if (bit_check(value, i)) return i; return 0; -} \ No newline at end of file +} diff --git a/libc/inc/sys/dirent.h b/libc/inc/sys/dirent.h index c48b380..06745f0 100644 --- a/libc/inc/sys/dirent.h +++ b/libc/inc/sys/dirent.h @@ -47,4 +47,4 @@ typedef struct dirent_t { unsigned short d_reclen; ///< Length of this linux_dirent. unsigned short d_type; ///< type of the directory entry. char d_name[NAME_MAX]; ///< Filename (null-terminated) -} dirent_t; \ No newline at end of file +} dirent_t; diff --git a/libc/inc/sys/ioctl.h b/libc/inc/sys/ioctl.h index 7d73dc3..3b54fbe 100644 --- a/libc/inc/sys/ioctl.h +++ b/libc/inc/sys/ioctl.h @@ -11,4 +11,4 @@ /// @param request The device-dependent request code /// @param data An untyped pointer to memory. /// @return Return value depends on REQUEST. Usually -1 indicates error. -int ioctl(int fd, unsigned long int request, void *data); \ No newline at end of file +int ioctl(int fd, unsigned long int request, void *data); diff --git a/libc/inc/sys/stat.h b/libc/inc/sys/stat.h index 333c80f..4154c80 100644 --- a/libc/inc/sys/stat.h +++ b/libc/inc/sys/stat.h @@ -39,4 +39,4 @@ int rmdir(const char *path); /// @return file descriptor number, -1 otherwise and errno is set to indicate the error. /// @details /// It is equivalent to: open(path, O_WRONLY|O_CREAT|O_TRUNC, mode) -int creat(const char *path, mode_t mode); \ No newline at end of file +int creat(const char *path, mode_t mode); diff --git a/libc/inc/sys/unistd.h b/libc/inc/sys/unistd.h index c7d4f2e..691d66e 100644 --- a/libc/inc/sys/unistd.h +++ b/libc/inc/sys/unistd.h @@ -246,4 +246,4 @@ int getdents(int fd, dirent_t *dirp, unsigned int count); /// shall return a non-zero value that is the number of seconds until the /// previous request would have generated a SIGALRM signal. Otherwise, alarm() /// shall return 0. -int alarm(int seconds); \ No newline at end of file +int alarm(int seconds); diff --git a/libc/src/debug.c b/libc/src/debug.c index 89c3e54..8682c38 100644 --- a/libc/src/debug.c +++ b/libc/src/debug.c @@ -105,4 +105,4 @@ const char *dec_to_binary(unsigned long value, unsigned length) for (int i = 0, j = 32 - min(max(0, length), 32); j < 32; ++i, ++j) buffer[i] = bit_check(value, 31 - j) ? '1' : '0'; return buffer; -} \ No newline at end of file +} diff --git a/libc/src/grp.c b/libc/src/grp.c index 340ce77..1a55bc8 100644 --- a/libc/src/grp.c +++ b/libc/src/grp.c @@ -235,4 +235,4 @@ void setgrent(void) { //pr_debug("Resetting pointer to beginning of group file\n"); lseek(__fd, 0, SEEK_SET); -} \ No newline at end of file +} diff --git a/libc/src/libgen.c b/libc/src/libgen.c index 21efbe8..c3b8977 100644 --- a/libc/src/libgen.c +++ b/libc/src/libgen.c @@ -137,4 +137,4 @@ char *realpath(const char *path, char *resolved) else resolved[1] = '\0'; return resolved; -} \ No newline at end of file +} diff --git a/libc/src/stdio.c b/libc/src/stdio.c index 0b28295..3dc7913 100644 --- a/libc/src/stdio.c +++ b/libc/src/stdio.c @@ -205,4 +205,4 @@ char *fgets(char *buf, int n, int fd) if (p == buf || c == EOF) return NULL; return (p); -} \ No newline at end of file +} diff --git a/libc/src/sys/unistd.c b/libc/src/sys/unistd.c index eb7a4d2..caa3661 100644 --- a/libc/src/sys/unistd.c +++ b/libc/src/sys/unistd.c @@ -33,4 +33,4 @@ int rmdir(const char *path) return mountpoint_list[mp_id].dir_op.rmdir_f(absolute_path); } -#endif \ No newline at end of file +#endif diff --git a/libc/src/termios.c b/libc/src/termios.c index f2eb8c1..dada98e 100644 --- a/libc/src/termios.c +++ b/libc/src/termios.c @@ -34,4 +34,4 @@ int tcsetattr(int fd, int optional_actions, const termios_t *termios_p) retval = -1; } return retval; -} \ No newline at end of file +} diff --git a/libc/src/time.c b/libc/src/time.c index 70e78e0..7a11ae0 100644 --- a/libc/src/time.c +++ b/libc/src/time.c @@ -397,4 +397,4 @@ unsigned int sleep(unsigned int seconds) _syscall2(int, getitimer, int, which, itimerval *, curr_value) -_syscall3(int, setitimer, int, which, const itimerval *, new_value, itimerval *, old_value) \ No newline at end of file +_syscall3(int, setitimer, int, which, const itimerval *, new_value, itimerval *, old_value) diff --git a/libc/src/unistd/signal.c b/libc/src/unistd/signal.c index 84f4e83..281e412 100644 --- a/libc/src/unistd/signal.c +++ b/libc/src/unistd/signal.c @@ -111,4 +111,4 @@ int sigismember(sigset_t *set, int signum) if (set) return bit_check(set->sig[(signum - 1) / 32], (signum - 1) % 32); return -1; -} \ No newline at end of file +} diff --git a/libc/src/vsprintf.c b/libc/src/vsprintf.c index 9a5117f..8fd8da6 100644 --- a/libc/src/vsprintf.c +++ b/libc/src/vsprintf.c @@ -689,4 +689,4 @@ int fprintf(int fd, const char *fmt, ...) return len; } return -1; -} \ No newline at end of file +} diff --git a/mentos/inc/descriptor_tables/gdt.h b/mentos/inc/descriptor_tables/gdt.h index 04dcfad..4f2c5b0 100644 --- a/mentos/inc/descriptor_tables/gdt.h +++ b/mentos/inc/descriptor_tables/gdt.h @@ -138,4 +138,4 @@ void init_gdt(); void gdt_set_gate(uint8_t index, uint32_t base, uint32_t limit, uint8_t access, uint8_t granul); /// @} -/// @} \ No newline at end of file +/// @} diff --git a/mentos/inc/descriptor_tables/idt.h b/mentos/inc/descriptor_tables/idt.h index dd5e3df..2fbb506 100644 --- a/mentos/inc/descriptor_tables/idt.h +++ b/mentos/inc/descriptor_tables/idt.h @@ -60,4 +60,4 @@ typedef struct idt_pointer_t { void init_idt(); /// @} -/// @} \ No newline at end of file +/// @} diff --git a/mentos/inc/descriptor_tables/isr.h b/mentos/inc/descriptor_tables/isr.h index 3d696e8..c9e1083 100644 --- a/mentos/inc/descriptor_tables/isr.h +++ b/mentos/inc/descriptor_tables/isr.h @@ -97,4 +97,4 @@ extern void isq_handler(pt_regs *f); //============================================================================== /// @} -/// @} \ No newline at end of file +/// @} diff --git a/mentos/inc/devices/fpu.h b/mentos/inc/devices/fpu.h index 017c100..af58e2b 100644 --- a/mentos/inc/devices/fpu.h +++ b/mentos/inc/devices/fpu.h @@ -130,4 +130,4 @@ void unswitch_fpu(); int fpu_install(); /// @} -/// @} \ No newline at end of file +/// @} diff --git a/mentos/inc/devices/pci.h b/mentos/inc/devices/pci.h index 6beb9fd..562892d 100644 --- a/mentos/inc/devices/pci.h +++ b/mentos/inc/devices/pci.h @@ -346,4 +346,4 @@ int pci_get_interrupt(uint32_t device); void pci_debug_scan(); /// @} -/// @} \ No newline at end of file +/// @} diff --git a/mentos/inc/drivers/ata.h b/mentos/inc/drivers/ata.h index 6c1e1908..cf398fe 100644 --- a/mentos/inc/drivers/ata.h +++ b/mentos/inc/drivers/ata.h @@ -26,4 +26,4 @@ int ata_initialize(); int ata_finalize(); /// @} -/// @} \ No newline at end of file +/// @} diff --git a/mentos/inc/drivers/fdc.h b/mentos/inc/drivers/fdc.h index 42cce8a..835fe3f 100644 --- a/mentos/inc/drivers/fdc.h +++ b/mentos/inc/drivers/fdc.h @@ -19,4 +19,4 @@ int fdc_initialize(); int fdc_finalize(); /// @} -/// @} \ No newline at end of file +/// @} diff --git a/mentos/inc/drivers/keyboard/keyboard.h b/mentos/inc/drivers/keyboard/keyboard.h index 48c5c0a..bd33768 100644 --- a/mentos/inc/drivers/keyboard/keyboard.h +++ b/mentos/inc/drivers/keyboard/keyboard.h @@ -49,4 +49,4 @@ int keyboard_initialize(); int keyboard_finalize(); /// @} -/// @} \ No newline at end of file +/// @} diff --git a/mentos/inc/drivers/keyboard/keymap.h b/mentos/inc/drivers/keyboard/keymap.h index 881465e..65abd2c 100644 --- a/mentos/inc/drivers/keyboard/keymap.h +++ b/mentos/inc/drivers/keyboard/keymap.h @@ -161,4 +161,4 @@ void init_keymaps(); /// @} /// @} -/// @} \ No newline at end of file +/// @} diff --git a/mentos/inc/drivers/mouse.h b/mentos/inc/drivers/mouse.h index 00c67c9..09f71a5 100644 --- a/mentos/inc/drivers/mouse.h +++ b/mentos/inc/drivers/mouse.h @@ -24,4 +24,4 @@ int mouse_initialize(); int mouse_finalize(); /// @} -/// @} \ No newline at end of file +/// @} diff --git a/mentos/inc/drivers/ps2.h b/mentos/inc/drivers/ps2.h index 20652c6..b080ff9 100644 --- a/mentos/inc/drivers/ps2.h +++ b/mentos/inc/drivers/ps2.h @@ -15,4 +15,4 @@ void ps2_write(unsigned char data); /// @brief Reads data from the PS/2 port. /// @return the data coming from the PS/2 port. -unsigned char ps2_read(); \ No newline at end of file +unsigned char ps2_read(); diff --git a/mentos/inc/drivers/rtc.h b/mentos/inc/drivers/rtc.h index 41171ac..db9b6a3 100644 --- a/mentos/inc/drivers/rtc.h +++ b/mentos/inc/drivers/rtc.h @@ -26,4 +26,4 @@ int rtc_initialize(); int rtc_finalize(); /// @} -/// @} \ No newline at end of file +/// @} diff --git a/mentos/inc/elf/elf.h b/mentos/inc/elf/elf.h index 96e1c18..a2b36ef 100644 --- a/mentos/inc/elf/elf.h +++ b/mentos/inc/elf/elf.h @@ -288,4 +288,4 @@ const char *elf_symbol_type_to_string(int type); /// @brief Transforms the passed ELF symbol bind to string. /// @param bind The integer representing the ELF symbol bind. /// @return The string representing the ELF symbol bind. -const char *elf_symbol_bind_to_string(int bind); \ No newline at end of file +const char *elf_symbol_bind_to_string(int bind); diff --git a/mentos/inc/fs/ioctl.h b/mentos/inc/fs/ioctl.h index 2c49f1d..215f292 100644 --- a/mentos/inc/fs/ioctl.h +++ b/mentos/inc/fs/ioctl.h @@ -9,4 +9,4 @@ /// @param request The device-dependent request code /// @param data An untyped pointer to memory. /// @return On success zero is returned. -int sys_ioctl(int fd, int request, void *data); \ No newline at end of file +int sys_ioctl(int fd, int request, void *data); diff --git a/mentos/inc/fs/procfs.h b/mentos/inc/fs/procfs.h index 753ce26..3097ad2 100644 --- a/mentos/inc/fs/procfs.h +++ b/mentos/inc/fs/procfs.h @@ -65,4 +65,4 @@ int procr_create_entry_pid(task_struct *entry); /// @brief Destroy the entire procfs entry tree for the give process. /// @param entry Pointer to the task_struct of the process. /// @return 0 if succeed, or -errno in case of error. -int procr_destroy_entry_pid(task_struct *entry); \ No newline at end of file +int procr_destroy_entry_pid(task_struct *entry); diff --git a/mentos/inc/hardware/timer.h b/mentos/inc/hardware/timer.h index 6651d79..d521e3d 100644 --- a/mentos/inc/hardware/timer.h +++ b/mentos/inc/hardware/timer.h @@ -210,4 +210,4 @@ int sys_setitimer(int which, const struct itimerval *new_value, struct itimerval /// @brief Update the profiling timer and generate SIGPROF if it has expired. /// @param proc The process for which we must update the profiling. -void update_process_profiling_timer(task_struct *proc); \ No newline at end of file +void update_process_profiling_timer(task_struct *proc); diff --git a/mentos/inc/io/vga/vga.h b/mentos/inc/io/vga/vga.h index 80a60d3..4e04a28 100644 --- a/mentos/inc/io/vga/vga.h +++ b/mentos/inc/io/vga/vga.h @@ -116,4 +116,4 @@ void vga_new_line(); /// @brief Change the color. void vga_set_color(unsigned int color); -void vga_run_test(); \ No newline at end of file +void vga_run_test(); diff --git a/mentos/inc/klib/stdatomic.h b/mentos/inc/klib/stdatomic.h index b623381..f56af0a 100644 --- a/mentos/inc/klib/stdatomic.h +++ b/mentos/inc/klib/stdatomic.h @@ -162,4 +162,3 @@ static inline int test_bit(int offset, volatile unsigned long *base) // is discouraged by many C/C++ groups. // == xchg/xchgl ============================================================== -// \ No newline at end of file diff --git a/mentos/inc/mem/kheap.h b/mentos/inc/mem/kheap.h index 6317f91..46aba53 100644 --- a/mentos/inc/mem/kheap.h +++ b/mentos/inc/mem/kheap.h @@ -100,4 +100,4 @@ void *kmalloc_ap(unsigned int sz, unsigned int *phys); /// @return //void *realloc(void *ptr, unsigned int size); -#endif \ No newline at end of file +#endif diff --git a/mentos/inc/proc_access.h b/mentos/inc/proc_access.h index 8da6614..eb2f3ae 100644 --- a/mentos/inc/proc_access.h +++ b/mentos/inc/proc_access.h @@ -268,4 +268,4 @@ static inline void pause() // below the block of asm statements. // ASM(" addic. %0,%1,%2\n" : "=r"(res): "=r"(a),"r"(a)) // This can be particularly important in cases when the code is accessing -// shared memory. \ No newline at end of file +// shared memory. diff --git a/mentos/inc/process/scheduler.h b/mentos/inc/process/scheduler.h index 066e04c..350debe 100644 --- a/mentos/inc/process/scheduler.h +++ b/mentos/inc/process/scheduler.h @@ -111,4 +111,4 @@ int sys_waitperiod(); /// is no longer alive. /// @param gid ID of the group /// @return 1 if the group is orphan, 0 otherwise. -int is_orphaned_pgrp(pid_t gid); \ No newline at end of file +int is_orphaned_pgrp(pid_t gid); diff --git a/mentos/inc/process/wait.h b/mentos/inc/process/wait.h index 7ce777d..28858d1 100644 --- a/mentos/inc/process/wait.h +++ b/mentos/inc/process/wait.h @@ -107,4 +107,4 @@ int default_wake_function(wait_queue_entry_t *wait, unsigned mode, int sync); /// @param wq Waitqueue where to sleep. /// @return Pointer to the entry inside the wq representing the /// sleeping process. -wait_queue_entry_t *sleep_on(wait_queue_head_t *wq); \ No newline at end of file +wait_queue_entry_t *sleep_on(wait_queue_head_t *wq); diff --git a/mentos/inc/sys/module.h b/mentos/inc/sys/module.h index f274fa0..2767c16 100644 --- a/mentos/inc/sys/module.h +++ b/mentos/inc/sys/module.h @@ -25,4 +25,4 @@ int relocate_modules(); /// @brief Returns the address where the modules end. /// @return Address after the modules. -uintptr_t get_address_after_modules(); \ No newline at end of file +uintptr_t get_address_after_modules(); diff --git a/mentos/inc/system/panic.h b/mentos/inc/system/panic.h index 5fb53d2..98ca362 100644 --- a/mentos/inc/system/panic.h +++ b/mentos/inc/system/panic.h @@ -10,4 +10,4 @@ /// @param msg The message that has to be shown. void kernel_panic(const char *msg); -#define TODO(msg) kernel_panic(#msg); \ No newline at end of file +#define TODO(msg) kernel_panic(#msg); diff --git a/mentos/inc/system/signal.h b/mentos/inc/system/signal.h index 34daf91..bf892c0 100644 --- a/mentos/inc/system/signal.h +++ b/mentos/inc/system/signal.h @@ -323,4 +323,4 @@ int sigdelset(sigset_t *set, int signum); /// @param signum The signalt to handle. /// @return 1 if signum is a member of set, /// 0 if signum is not a member, and -1 on error. -int sigismember(sigset_t *set, int signum); \ No newline at end of file +int sigismember(sigset_t *set, int signum); diff --git a/mentos/src/boot.c b/mentos/src/boot.c index 5dfa076..be96160 100644 --- a/mentos/src/boot.c +++ b/mentos/src/boot.c @@ -292,4 +292,4 @@ void boot_main(uint32_t magic, multiboot_info_t *header, uint32_t esp) boot_kernel(boot_info.stack_base, elf_hdr->entry, &boot_info); } -/// @} \ No newline at end of file +/// @} diff --git a/mentos/src/devices/pci.c b/mentos/src/devices/pci.c index 53026b6..d6866d2 100644 --- a/mentos/src/devices/pci.c +++ b/mentos/src/devices/pci.c @@ -496,4 +496,4 @@ void pci_debug_scan() pr_default("--------------------------------------------------\n"); } -///! @endcond \ No newline at end of file +///! @endcond diff --git a/mentos/src/drivers/ata.c b/mentos/src/drivers/ata.c index 039ba2a..2739ecb 100644 --- a/mentos/src/drivers/ata.c +++ b/mentos/src/drivers/ata.c @@ -1159,4 +1159,4 @@ int ata_finalize() return 0; } -/// @} \ No newline at end of file +/// @} diff --git a/mentos/src/drivers/fdc.c b/mentos/src/drivers/fdc.c index e694822..f01f2d0 100644 --- a/mentos/src/drivers/fdc.c +++ b/mentos/src/drivers/fdc.c @@ -65,4 +65,4 @@ int fdc_finalize() return 0; } -/// @} \ No newline at end of file +/// @} diff --git a/mentos/src/drivers/keyboard/keyboard.c b/mentos/src/drivers/keyboard/keyboard.c index 96913d8..4457dac 100644 --- a/mentos/src/drivers/keyboard/keyboard.c +++ b/mentos/src/drivers/keyboard/keyboard.c @@ -301,4 +301,4 @@ int keyboard_finalize() return 0; } -/// @} \ No newline at end of file +/// @} diff --git a/mentos/src/drivers/keyboard/keymap.c b/mentos/src/drivers/keyboard/keymap.c index 21d3295..b5d8677 100644 --- a/mentos/src/drivers/keyboard/keymap.c +++ b/mentos/src/drivers/keyboard/keymap.c @@ -240,4 +240,4 @@ void init_keymaps() keymaps[KEYMAP_US][KEY_KP_DEC] = (keymap_t){ 0x532E, 0x532E, 0x5300, 0x5300 }; // 0x0053 } -/// @} \ No newline at end of file +/// @} diff --git a/mentos/src/drivers/mouse.c b/mentos/src/drivers/mouse.c index 01c2583..b730cd9 100644 --- a/mentos/src/drivers/mouse.c +++ b/mentos/src/drivers/mouse.c @@ -214,4 +214,4 @@ int mouse_finalize() return 0; } -/// @} \ No newline at end of file +/// @} diff --git a/mentos/src/drivers/ps2.c b/mentos/src/drivers/ps2.c index 224c5ce..969a539 100644 --- a/mentos/src/drivers/ps2.c +++ b/mentos/src/drivers/ps2.c @@ -328,4 +328,4 @@ int ps2_initialize() pr_debug("Status : %s (%3d | %02x)\n", dec_to_binary(status, 8), status, status); return 0; -} \ No newline at end of file +} diff --git a/mentos/src/drivers/rtc.c b/mentos/src/drivers/rtc.c index 6e37a0d..f783ad9 100644 --- a/mentos/src/drivers/rtc.c +++ b/mentos/src/drivers/rtc.c @@ -160,4 +160,4 @@ int rtc_finalize() return 0; } -/// @} \ No newline at end of file +/// @} diff --git a/mentos/src/fs/ioctl.c b/mentos/src/fs/ioctl.c index 8475995..d9c9946 100644 --- a/mentos/src/fs/ioctl.c +++ b/mentos/src/fs/ioctl.c @@ -31,4 +31,4 @@ int sys_ioctl(int fd, int request, void *data) // Perform the ioctl. return vfs_ioctl(file, request, data); -} \ No newline at end of file +} diff --git a/mentos/src/fs/namei.c b/mentos/src/fs/namei.c index a435329..270876e 100644 --- a/mentos/src/fs/namei.c +++ b/mentos/src/fs/namei.c @@ -60,4 +60,4 @@ int sys_creat(const char *path, mode_t mode) // Return the file descriptor and increment it. return fd; -} \ No newline at end of file +} diff --git a/mentos/src/fs/procfs.c b/mentos/src/fs/procfs.c index cf87879..af36a83 100644 --- a/mentos/src/fs/procfs.c +++ b/mentos/src/fs/procfs.c @@ -949,4 +949,4 @@ int proc_destroy_entry(const char *name, proc_dir_entry_t *parent) return -ENOENT; } return 0; -} \ No newline at end of file +} diff --git a/mentos/src/fs/read_write.c b/mentos/src/fs/read_write.c index cee7ef3..b8d551c 100644 --- a/mentos/src/fs/read_write.c +++ b/mentos/src/fs/read_write.c @@ -93,4 +93,4 @@ off_t sys_lseek(int fd, off_t offset, int whence) } // Perform the lseek. return vfs_lseek(vfd->file_struct, offset, whence); -} \ No newline at end of file +} diff --git a/mentos/src/fs/stat.c b/mentos/src/fs/stat.c index 03575ca..12dfc93 100644 --- a/mentos/src/fs/stat.c +++ b/mentos/src/fs/stat.c @@ -42,4 +42,4 @@ int sys_fstat(int fd, stat_t *buf) } return vfs_fstat(vfd->file_struct, buf); -} \ No newline at end of file +} diff --git a/mentos/src/hardware/timer.c b/mentos/src/hardware/timer.c index f3bb9af..9c08ed7 100644 --- a/mentos/src/hardware/timer.c +++ b/mentos/src/hardware/timer.c @@ -768,4 +768,4 @@ void update_process_profiling_timer(task_struct *proc) proc->it_prof_value = 0; } } -} \ No newline at end of file +}