From: Jean-Baptiste Boric Date: Fri, 11 Sep 2015 08:52:26 +0000 (+0200) Subject: libutil: add getmaxpartitions() implementation X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/ddns-confgen.html?a=commitdiff_plain;h=22ad44d6a9fa80d47806bf1897394569b6c15b8a;p=minix.git libutil: add getmaxpartitions() implementation Change-Id: I6f1d7838e10bcb079fb5b68ff513c3279fffb4f9 --- diff --git a/distrib/sets/lists/minix/mi b/distrib/sets/lists/minix/mi index 1c74b3f64..05771c69c 100644 --- a/distrib/sets/lists/minix/mi +++ b/distrib/sets/lists/minix/mi @@ -3718,6 +3718,7 @@ ./usr/man/man3/getlastlogx.3 minix-sys ./usr/man/man3/getline.3 minix-sys ./usr/man/man3/getloadavg.3 minix-sys +./usr/man/man3/getmaxpartitions.3 minix-sys ./usr/man/man3/getmaxx.3 minix-sys ./usr/man/man3/getmaxy.3 minix-sys ./usr/man/man3/getmaxyx.3 minix-sys diff --git a/lib/libutil/Makefile b/lib/libutil/Makefile index 7ee6eb2fa..9524703ed 100644 --- a/lib/libutil/Makefile +++ b/lib/libutil/Makefile @@ -25,7 +25,7 @@ SRCS+= efun.c \ MAN= efun.3 \ getmntopts.3 \ - getfsspecname.3 \ + getmaxpartitions.3 getfsspecname.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 \ @@ -33,6 +33,10 @@ MAN= efun.3 \ snprintb.3 sockaddr_snprintf.3 stat_flags.3 strpct.3 ttyaction.3 \ ttymsg.3 util.3 +.if defined(__MINIX) +.include "${NETBSDSRCDIR}/minix/lib/libutil/Makefile.inc" +.endif + YPREFIX=__pd .PATH: ${NETBSDSRCDIR}/lib/libc/gen diff --git a/minix/lib/libutil/Makefile.inc b/minix/lib/libutil/Makefile.inc new file mode 100644 index 000000000..9de835068 --- /dev/null +++ b/minix/lib/libutil/Makefile.inc @@ -0,0 +1,3 @@ +.PATH: ${NETBSDSRCDIR}/minix/lib/libutil + +SRCS+= getmaxpartitions.c \ No newline at end of file diff --git a/minix/lib/libutil/getmaxpartitions.c b/minix/lib/libutil/getmaxpartitions.c new file mode 100644 index 000000000..d15420423 --- /dev/null +++ b/minix/lib/libutil/getmaxpartitions.c @@ -0,0 +1,6 @@ +#include + +int getmaxpartitions(void) +{ + return NR_PARTITIONS; +}