svn commit: r279334 - in user/dchagin/lemul/sys: kern sys

Dmitry Chagin dchagin at FreeBSD.org
Thu Feb 26 21:15:04 UTC 2015


Author: dchagin
Date: Thu Feb 26 21:15:02 2015
New Revision: 279334
URL: https://svnweb.freebsd.org/changeset/base/279334

Log:
  Export fdhold() & fddrop() needed by an upcoming pseudofs change.

Modified:
  user/dchagin/lemul/sys/kern/kern_descrip.c
  user/dchagin/lemul/sys/sys/filedesc.h

Modified: user/dchagin/lemul/sys/kern/kern_descrip.c
==============================================================================
--- user/dchagin/lemul/sys/kern/kern_descrip.c	Thu Feb 26 21:13:33 2015	(r279333)
+++ user/dchagin/lemul/sys/kern/kern_descrip.c	Thu Feb 26 21:15:02 2015	(r279334)
@@ -1845,7 +1845,7 @@ fdinit(struct filedesc *fdp, bool prepfi
 	return (newfdp);
 }
 
-static struct filedesc *
+struct filedesc *
 fdhold(struct proc *p)
 {
 	struct filedesc *fdp;
@@ -1858,7 +1858,7 @@ fdhold(struct proc *p)
 	return (fdp);
 }
 
-static void
+void
 fddrop(struct filedesc *fdp)
 {
 	int i;

Modified: user/dchagin/lemul/sys/sys/filedesc.h
==============================================================================
--- user/dchagin/lemul/sys/sys/filedesc.h	Thu Feb 26 21:13:33 2015	(r279333)
+++ user/dchagin/lemul/sys/sys/filedesc.h	Thu Feb 26 21:15:02 2015	(r279334)
@@ -154,6 +154,8 @@ int	fdallocn(struct thread *td, int minf
 int	fdcheckstd(struct thread *td);
 void	fdclose(struct filedesc *fdp, struct file *fp, int idx, struct thread *td);
 void	fdcloseexec(struct thread *td);
+void	fddrop(struct filedesc *fdp);
+struct filedesc *fdhold(struct proc *p);
 void	fdsetugidsafety(struct thread *td);
 struct	filedesc *fdcopy(struct filedesc *fdp);
 void	fdunshare(struct thread *td);


More information about the svn-src-user mailing list