Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2015 21:15:03 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r279334 - in user/dchagin/lemul/sys: kern sys
Message-ID:  <201502262115.t1QLF3SF022378@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502262115.t1QLF3SF022378>