Skip to content

Commit

Permalink
w(1): switch to libkvm
Browse files Browse the repository at this point in the history
Change-Id: I6d836d9aa2e1dfe8df1d866a5cc33868522f767e
  • Loading branch information
dcvmoole authored and sambuc committed Jan 13, 2016
1 parent 9da2275 commit 1f761e1
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 327 deletions.
2 changes: 1 addition & 1 deletion common/lib/libutil/Makefile.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $NetBSD: Makefile.inc,v 1.4 2011/11/13 21:56:53 christos Exp $
.PATH.c: ${.PARSEDIR}
.if defined(__MINIX)
SRCS+= snprintb.c
SRCS+= snprintb.c proc_compare.c
.else
SRCS+= snprintb.c proc_compare.c getfstypename.c
.endif # defined(__MINIX)
Expand Down
1 change: 1 addition & 0 deletions distrib/sets/lists/minix-man/mi
Original file line number Diff line number Diff line change
Expand Up @@ -2411,6 +2411,7 @@
./usr/man/man3/prefresh.3 minix-man
./usr/man/man3/printf.3 minix-man
./usr/man/man3/printw.3 minix-man
./usr/man/man3/proc_compare.3 minix-man
./usr/man/man3/prop_array.3 minix-man
./usr/man/man3/prop_array_add.3 minix-man
./usr/man/man3/prop_array_capacity.3 minix-man
Expand Down
2 changes: 1 addition & 1 deletion lib/libutil/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MAN= efun.3 \
login.3 login_cap.3 loginx.3 \
\
opendisk.3 openpty.3 parsedate.3 pidfile.3 pidlock.3 \
pw_getconf.3 pw_init.3 pw_lock.3 secure_path.3 \
proc_compare.3 pw_getconf.3 pw_init.3 pw_lock.3 secure_path.3 \
raise_default_signal.3 \
snprintb.3 sockaddr_snprintf.3 stat_flags.3 strpct.3 ttyaction.3 \
ttymsg.3 util.3
Expand Down
253 changes: 0 additions & 253 deletions minix/usr.bin/w/minix_proc.c

This file was deleted.

47 changes: 0 additions & 47 deletions minix/usr.bin/w/minix_proc.h

This file was deleted.

2 changes: 0 additions & 2 deletions sys/sys/sysctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1345,10 +1345,8 @@ int sysctlbyname(const char *, void *, size_t *, const void *, size_t);
int sysctlgetmibinfo(const char *, int *, u_int *,
char *, size_t *, struct sysctlnode **, int);
int sysctlnametomib(const char *, int *, size_t *);
#if !defined(__minix)
int proc_compare(const struct kinfo_proc2 *, const struct kinfo_lwp *,
const struct kinfo_proc2 *, const struct kinfo_lwp *);
#endif /* !defined(__minix) */
void *asysctl(const int *, size_t, size_t *);
void *asysctlbyname(const char *, size_t *);
__END_DECLS
Expand Down
6 changes: 0 additions & 6 deletions usr.bin/w/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,8 @@
PROG= w
SRCS= fmt.c pr_time.c w.c
MAN= w.1 uptime.1
.if defined(__MINIX)
.PATH: ${NETBSDSRCDIR}/minix/usr.bin/w
SRCS+= minix_proc.c
CPPFLAGS+= -I${NETBSDSRCDIR}/minix/usr.bin/w
.else
DPADD= ${LIBKVM} ${LIBUTIL}
LDADD= -lkvm -lutil
.endif
LINKS= ${BINDIR}/w ${BINDIR}/uptime
CPPFLAGS+= -DSUPPORT_UTMP -DSUPPORT_UTMPX

Expand Down
Loading

0 comments on commit 1f761e1

Please sign in to comment.