Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Sep 2012 18:44:23 +0000 (UTC)
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r240509 - stable/9/lib/libprocstat
Message-ID:  <201209141844.q8EIiNYo084411@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



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