Skip to content

Commit

Permalink
- Add symbol versioning to libprocstat.
Browse files Browse the repository at this point in the history
Suggested by:	kib
  • Loading branch information
stass committed May 14, 2011
1 parent ac7ae2d commit 8cea38a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/libprocstat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ SRCS= cd9660.c \
smbfs.c \
udf.c

VERSION_DEF= ${.CURDIR}/Versions.def
SYMBOL_MAPS= ${.CURDIR}/Symbol.map

INCS= libprocstat.h
CFLAGS+= -I. -I${.CURDIR} -D_KVM_VNODE
SHLIB_MAJOR= 1
Expand Down
16 changes: 16 additions & 0 deletions lib/libprocstat/Symbol.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* $FreeBSD$
*/
FBSD_1.2 {
procstat_close;
procstat_freefiles;
procstat_freeprocs;
procstat_get_pipe_info;
procstat_get_pts_info;
procstat_get_socket_info;
procstat_get_vnode_info;
procstat_getfiles;
procstat_getprocs;
procstat_open_kvm;
procstat_open_sysctl;
};
5 changes: 5 additions & 0 deletions lib/libprocstat/Versions.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# $FreeBSD$

# This version was first added to 9.0-current.
FBSD_1.2 {
};

0 comments on commit 8cea38a

Please sign in to comment.