svn commit: r240509 - stable/9/lib/libprocstat

Mikolaj Golub trociny at FreeBSD.org
Fri Sep 14 18:44:24 UTC 2012


Author: trociny
Date: Fri Sep 14 18:44:23 2012
New Revision: 240509
URL: http://svn.freebsd.org/changeset/base/240509

Log:
  MFC r240080:
  
  Add __BEGIN_DECLS and __END_DECLS to make libprocstat more C++-friendly.
  
  Submitted by:	Daniel Dettlaff <dmilith gmail com>

Modified:
  stable/9/lib/libprocstat/libprocstat.h
Directory Properties:
  stable/9/lib/libprocstat/   (props changed)

Modified: stable/9/lib/libprocstat/libprocstat.h
==============================================================================
--- stable/9/lib/libprocstat/libprocstat.h	Fri Sep 14 18:33:12 2012	(r240508)
+++ stable/9/lib/libprocstat/libprocstat.h	Fri Sep 14 18:44:23 2012	(r240509)
@@ -144,6 +144,7 @@ struct sockstat {
 
 STAILQ_HEAD(filestat_list, filestat);
 
+__BEGIN_DECLS
 void	procstat_close(struct procstat *procstat);
 void	procstat_freeprocs(struct procstat *procstat, struct kinfo_proc *p);
 void	procstat_freefiles(struct procstat *procstat,
@@ -164,5 +165,6 @@ int	procstat_get_vnode_info(struct procs
     struct vnstat *vn, char *errbuf);
 struct procstat	*procstat_open_sysctl(void);
 struct procstat	*procstat_open_kvm(const char *nlistf, const char *memf);
+__END_DECLS
 
 #endif	/* !_LIBPROCSTAT_H_ */


More information about the svn-src-all mailing list