Add newline at the end of the files.
This commit is contained in:
@@ -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)
|
||||
#define CTRL(x) (x & 037)
|
||||
|
||||
+1
-1
@@ -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);
|
||||
void setgrent(void);
|
||||
|
||||
+1
-1
@@ -21,4 +21,4 @@ struct ipc_perm {
|
||||
unsigned short mode;
|
||||
/// Sequence number.
|
||||
unsigned short __seq;
|
||||
};
|
||||
};
|
||||
|
||||
+1
-1
@@ -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
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -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
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -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
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -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);
|
||||
char *realpath(const char *path, char *resolved);
|
||||
|
||||
@@ -124,4 +124,4 @@
|
||||
}
|
||||
|
||||
#undef RING_BUFFER_ALLOC
|
||||
#undef RING_BUFFER_FREE
|
||||
#undef RING_BUFFER_FREE
|
||||
|
||||
+1
-1
@@ -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
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -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);
|
||||
void strmode(mode_t mode, char *p);
|
||||
|
||||
@@ -41,4 +41,4 @@ static inline int find_first_non_zero(unsigned long value)
|
||||
if (bit_check(value, i))
|
||||
return i;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
} dirent_t;
|
||||
|
||||
@@ -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);
|
||||
int ioctl(int fd, unsigned long int request, void *data);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
int creat(const char *path, mode_t mode);
|
||||
|
||||
@@ -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);
|
||||
int alarm(int seconds);
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -235,4 +235,4 @@ void setgrent(void)
|
||||
{
|
||||
//pr_debug("Resetting pointer to beginning of group file\n");
|
||||
lseek(__fd, 0, SEEK_SET);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -137,4 +137,4 @@ char *realpath(const char *path, char *resolved)
|
||||
else
|
||||
resolved[1] = '\0';
|
||||
return resolved;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -205,4 +205,4 @@ char *fgets(char *buf, int n, int fd)
|
||||
if (p == buf || c == EOF)
|
||||
return NULL;
|
||||
return (p);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,4 +33,4 @@ int rmdir(const char *path)
|
||||
return mountpoint_list[mp_id].dir_op.rmdir_f(absolute_path);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -34,4 +34,4 @@ int tcsetattr(int fd, int optional_actions, const termios_t *termios_p)
|
||||
retval = -1;
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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)
|
||||
_syscall3(int, setitimer, int, which, const itimerval *, new_value, itimerval *, old_value)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -689,4 +689,4 @@ int fprintf(int fd, const char *fmt, ...)
|
||||
return len;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -60,4 +60,4 @@ typedef struct idt_pointer_t {
|
||||
void init_idt();
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -97,4 +97,4 @@ extern void isq_handler(pt_regs *f);
|
||||
//==============================================================================
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -130,4 +130,4 @@ void unswitch_fpu();
|
||||
int fpu_install();
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -346,4 +346,4 @@ int pci_get_interrupt(uint32_t device);
|
||||
void pci_debug_scan();
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -26,4 +26,4 @@ int ata_initialize();
|
||||
int ata_finalize();
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -19,4 +19,4 @@ int fdc_initialize();
|
||||
int fdc_finalize();
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -49,4 +49,4 @@ int keyboard_initialize();
|
||||
int keyboard_finalize();
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -161,4 +161,4 @@ void init_keymaps();
|
||||
/// @}
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -24,4 +24,4 @@ int mouse_initialize();
|
||||
int mouse_finalize();
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -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();
|
||||
unsigned char ps2_read();
|
||||
|
||||
@@ -26,4 +26,4 @@ int rtc_initialize();
|
||||
int rtc_finalize();
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -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);
|
||||
const char *elf_symbol_bind_to_string(int bind);
|
||||
|
||||
@@ -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);
|
||||
int sys_ioctl(int fd, int request, void *data);
|
||||
|
||||
@@ -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);
|
||||
int procr_destroy_entry_pid(task_struct *entry);
|
||||
|
||||
@@ -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);
|
||||
void update_process_profiling_timer(task_struct *proc);
|
||||
|
||||
@@ -116,4 +116,4 @@ void vga_new_line();
|
||||
/// @brief Change the color.
|
||||
void vga_set_color(unsigned int color);
|
||||
|
||||
void vga_run_test();
|
||||
void vga_run_test();
|
||||
|
||||
@@ -162,4 +162,3 @@ static inline int test_bit(int offset, volatile unsigned long *base)
|
||||
// is discouraged by many C/C++ groups.
|
||||
|
||||
// == xchg/xchgl ==============================================================
|
||||
//
|
||||
@@ -100,4 +100,4 @@ void *kmalloc_ap(unsigned int sz, unsigned int *phys);
|
||||
/// @return
|
||||
//void *realloc(void *ptr, unsigned int size);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -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.
|
||||
// shared memory.
|
||||
|
||||
@@ -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);
|
||||
int is_orphaned_pgrp(pid_t gid);
|
||||
|
||||
@@ -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);
|
||||
wait_queue_entry_t *sleep_on(wait_queue_head_t *wq);
|
||||
|
||||
@@ -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();
|
||||
uintptr_t get_address_after_modules();
|
||||
|
||||
@@ -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);
|
||||
#define TODO(msg) kernel_panic(#msg);
|
||||
|
||||
@@ -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);
|
||||
int sigismember(sigset_t *set, int signum);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -496,4 +496,4 @@ void pci_debug_scan()
|
||||
pr_default("--------------------------------------------------\n");
|
||||
}
|
||||
|
||||
///! @endcond
|
||||
///! @endcond
|
||||
|
||||
@@ -1159,4 +1159,4 @@ int ata_finalize()
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -65,4 +65,4 @@ int fdc_finalize()
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -301,4 +301,4 @@ int keyboard_finalize()
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -240,4 +240,4 @@ void init_keymaps()
|
||||
keymaps[KEYMAP_US][KEY_KP_DEC] = (keymap_t){ 0x532E, 0x532E, 0x5300, 0x5300 }; // 0x0053
|
||||
}
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -214,4 +214,4 @@ int mouse_finalize()
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -328,4 +328,4 @@ int ps2_initialize()
|
||||
pr_debug("Status : %s (%3d | %02x)\n", dec_to_binary(status, 8), status, status);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,4 +160,4 @@ int rtc_finalize()
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// @}
|
||||
/// @}
|
||||
|
||||
@@ -31,4 +31,4 @@ int sys_ioctl(int fd, int request, void *data)
|
||||
|
||||
// Perform the ioctl.
|
||||
return vfs_ioctl(file, request, data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,4 +60,4 @@ int sys_creat(const char *path, mode_t mode)
|
||||
|
||||
// Return the file descriptor and increment it.
|
||||
return fd;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -949,4 +949,4 @@ int proc_destroy_entry(const char *name, proc_dir_entry_t *parent)
|
||||
return -ENOENT;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,4 +42,4 @@ int sys_fstat(int fd, stat_t *buf)
|
||||
}
|
||||
|
||||
return vfs_fstat(vfd->file_struct, buf);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -768,4 +768,4 @@ void update_process_profiling_timer(task_struct *proc)
|
||||
proc->it_prof_value = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user