mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Make some file/filedesc related functions static
This commit is contained in:
parent
b1cb412630
commit
44dc16a986
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141636
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user