summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-02-10 12:27:58 +0000
committerphk <phk@FreeBSD.org>2005-02-10 12:27:58 +0000
commitdc9f809dd574faccecacee96f8fafcefeb7151aa (patch)
tree1c7397e013635bda4b672a1b9708b854b4ca1d29
parent993d22fc7e851e9dec362792896c8513355ba82b (diff)
downloadFreeBSD-src-dc9f809dd574faccecacee96f8fafcefeb7151aa.zip
FreeBSD-src-dc9f809dd574faccecacee96f8fafcefeb7151aa.tar.gz
Make some file/filedesc related functions static
-rw-r--r--sys/kern/kern_descrip.c6
-rw-r--r--sys/sys/file.h1
-rw-r--r--sys/sys/filedesc.h1
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 81fead1..8ffc2ad 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -85,7 +85,9 @@ static int do_dup(struct thread *td, enum dup_type type, int old, int new,
static int fd_first_free(struct filedesc *, int, int);
static int fd_last_used(struct filedesc *, int, int);
static void fdgrowtable(struct filedesc *, int);
+static int fdrop_locked(struct file *fp, struct thread *td);
static void fdunused(struct filedesc *fdp, int fd);
+static void fdused(struct filedesc *fdp, int fd);
/*
* A process is initially started out with NDFILE descriptors stored within
@@ -198,7 +200,7 @@ fdisused(struct filedesc *fdp, int fd)
/*
* Mark a file descriptor as used.
*/
-void
+static void
fdused(struct filedesc *fdp, int fd)
{
FILEDESC_LOCK_ASSERT(fdp, MA_OWNED);
@@ -2103,7 +2105,7 @@ fdrop(struct file *fp, struct thread *td)
* reference hits zero.
* Expects struct file locked, and will unlock it.
*/
-int
+static int
fdrop_locked(struct file *fp, struct thread *td)
{
int error;
diff --git a/sys/sys/file.h b/sys/sys/file.h
index febbf4d..ca6f6e8 100644
--- a/sys/sys/file.h
+++ b/sys/sys/file.h
@@ -174,7 +174,6 @@ int fget(struct thread *td, int fd, struct file **fpp);
int fget_read(struct thread *td, int fd, struct file **fpp);
int fget_write(struct thread *td, int fd, struct file **fpp);
int fdrop(struct file *fp, struct thread *td);
-int fdrop_locked(struct file *fp, struct thread *td);
/*
* The socket operations are used a couple of places.
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h
index 0f3fa88..2f7ff2e 100644
--- a/sys/sys/filedesc.h
+++ b/sys/sys/filedesc.h
@@ -168,7 +168,6 @@ void fdunshare(struct proc *p, struct thread *td);
void fdfree(struct thread *td);
struct filedesc *fdinit(struct filedesc *fdp);
struct filedesc *fdshare(struct filedesc *fdp);
-void fdused(struct filedesc *fdp, int fd);
struct filedesc_to_leader *
filedesc_to_leader_alloc(struct filedesc_to_leader *old,
struct filedesc *fdp, struct proc *leader);
OpenPOWER on IntegriCloud