head 1.14; access; symbols netbsd-10-2-RELEASE:1.14 netbsd-9-5-RELEASE:1.13 netbsd-11-0-RELEASE:1.14 netbsd-11-0-RC7:1.14 netbsd-11-0-RC6:1.14 netbsd-11-0-RC5:1.14 netbsd-11-0-RC4:1.14 netbsd-11-0-RC3:1.14 netbsd-11-0-RC2:1.14 netbsd-11-0-RC1:1.14 perseant-exfatfs-base-20250801:1.14 netbsd-11:1.14.0.10 netbsd-11-base:1.14 netbsd-10-1-RELEASE:1.14 perseant-exfatfs-base-20240630:1.14 perseant-exfatfs:1.14.0.8 perseant-exfatfs-base:1.14 netbsd-8-3-RELEASE:1.13 netbsd-9-4-RELEASE:1.13 netbsd-10-0-RELEASE:1.14 netbsd-10-0-RC6:1.14 netbsd-10-0-RC5:1.14 netbsd-10-0-RC4:1.14 netbsd-10-0-RC3:1.14 netbsd-10-0-RC2:1.14 netbsd-10-0-RC1:1.14 netbsd-10:1.14.0.6 netbsd-10-base:1.14 netbsd-9-3-RELEASE:1.13 cjep_sun2x-base1:1.14 cjep_sun2x:1.14.0.4 cjep_sun2x-base:1.14 cjep_staticlib_x-base1:1.14 netbsd-9-2-RELEASE:1.13 cjep_staticlib_x:1.14.0.2 cjep_staticlib_x-base:1.14 netbsd-9-1-RELEASE:1.13 phil-wifi-20200421:1.13 phil-wifi-20200411:1.13 is-mlppp:1.13.0.90 is-mlppp-base:1.13 phil-wifi-20200406:1.13 netbsd-8-2-RELEASE:1.13 netbsd-9-0-RELEASE:1.13 netbsd-9-0-RC2:1.13 netbsd-9-0-RC1:1.13 phil-wifi-20191119:1.13 netbsd-9:1.13.0.88 netbsd-9-base:1.13 phil-wifi-20190609:1.13 netbsd-8-1-RELEASE:1.13 netbsd-8-1-RC1:1.13 pgoyette-compat-merge-20190127:1.13 pgoyette-compat-20190127:1.13 pgoyette-compat-20190118:1.13 pgoyette-compat-1226:1.13 pgoyette-compat-1126:1.13 pgoyette-compat-1020:1.13 pgoyette-compat-0930:1.13 pgoyette-compat-0906:1.13 netbsd-7-2-RELEASE:1.13 pgoyette-compat-0728:1.13 netbsd-8-0-RELEASE:1.13 phil-wifi:1.13.0.86 phil-wifi-base:1.13 pgoyette-compat-0625:1.13 netbsd-8-0-RC2:1.13 pgoyette-compat-0521:1.13 pgoyette-compat-0502:1.13 pgoyette-compat-0422:1.13 netbsd-8-0-RC1:1.13 pgoyette-compat-0415:1.13 pgoyette-compat-0407:1.13 pgoyette-compat-0330:1.13 pgoyette-compat-0322:1.13 pgoyette-compat-0315:1.13 netbsd-7-1-2-RELEASE:1.13 pgoyette-compat:1.13.0.84 pgoyette-compat-base:1.13 netbsd-7-1-1-RELEASE:1.13 matt-nb8-mediatek:1.13.0.82 matt-nb8-mediatek-base:1.13 perseant-stdc-iso10646:1.13.0.80 perseant-stdc-iso10646-base:1.13 netbsd-8:1.13.0.78 netbsd-8-base:1.13 prg-localcount2-base3:1.13 prg-localcount2-base2:1.13 prg-localcount2-base1:1.13 prg-localcount2:1.13.0.76 prg-localcount2-base:1.13 pgoyette-localcount-20170426:1.13 bouyer-socketcan-base1:1.13 pgoyette-localcount-20170320:1.13 netbsd-7-1:1.13.0.74 netbsd-7-1-RELEASE:1.13 netbsd-7-1-RC2:1.13 netbsd-7-nhusb-base-20170116:1.13 bouyer-socketcan:1.13.0.72 bouyer-socketcan-base:1.13 pgoyette-localcount-20170107:1.13 netbsd-7-1-RC1:1.13 pgoyette-localcount-20161104:1.13 netbsd-7-0-2-RELEASE:1.13 localcount-20160914:1.13 netbsd-7-nhusb:1.13.0.70 netbsd-7-nhusb-base:1.13 pgoyette-localcount-20160806:1.13 pgoyette-localcount-20160726:1.13 pgoyette-localcount:1.13.0.68 pgoyette-localcount-base:1.13 netbsd-7-0-1-RELEASE:1.13 netbsd-7-0:1.13.0.66 netbsd-7-0-RELEASE:1.13 netbsd-7-0-RC3:1.13 netbsd-7-0-RC2:1.13 netbsd-7-0-RC1:1.13 netbsd-5-2-3-RELEASE:1.13 netbsd-5-1-5-RELEASE:1.13 netbsd-6-0-6-RELEASE:1.13 netbsd-6-1-5-RELEASE:1.13 netbsd-7:1.13.0.64 netbsd-7-base:1.13 yamt-pagecache-base9:1.13 yamt-pagecache-tag8:1.13 netbsd-6-1-4-RELEASE:1.13 netbsd-6-0-5-RELEASE:1.13 tls-earlyentropy:1.13.0.62 tls-earlyentropy-base:1.13 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.13 riastradh-drm2-base3:1.13 netbsd-6-1-3-RELEASE:1.13 netbsd-6-0-4-RELEASE:1.13 netbsd-5-2-2-RELEASE:1.13 netbsd-5-1-4-RELEASE:1.13 netbsd-6-1-2-RELEASE:1.13 netbsd-6-0-3-RELEASE:1.13 netbsd-5-2-1-RELEASE:1.13 netbsd-5-1-3-RELEASE:1.13 netbsd-6-1-1-RELEASE:1.13 riastradh-drm2-base2:1.13 riastradh-drm2-base1:1.13 riastradh-drm2:1.13.0.56 riastradh-drm2-base:1.13 netbsd-6-1:1.13.0.60 netbsd-6-0-2-RELEASE:1.13 netbsd-6-1-RELEASE:1.13 netbsd-6-1-RC4:1.13 netbsd-6-1-RC3:1.13 agc-symver:1.13.0.58 agc-symver-base:1.13 netbsd-6-1-RC2:1.13 netbsd-6-1-RC1:1.13 yamt-pagecache-base8:1.13 netbsd-5-2:1.13.0.54 netbsd-6-0-1-RELEASE:1.13 yamt-pagecache-base7:1.13 netbsd-5-2-RELEASE:1.13 netbsd-5-2-RC1:1.13 matt-nb6-plus-nbase:1.13 yamt-pagecache-base6:1.13 netbsd-6-0:1.13.0.52 netbsd-6-0-RELEASE:1.13 netbsd-6-0-RC2:1.13 tls-maxphys:1.13.0.50 tls-maxphys-base:1.13 matt-nb6-plus:1.13.0.48 matt-nb6-plus-base:1.13 netbsd-6-0-RC1:1.13 yamt-pagecache-base5:1.13 yamt-pagecache-base4:1.13 netbsd-6:1.13.0.46 netbsd-6-base:1.13 netbsd-5-1-2-RELEASE:1.13 netbsd-5-1-1-RELEASE:1.13 yamt-pagecache-base3:1.13 yamt-pagecache-base2:1.13 yamt-pagecache:1.13.0.44 yamt-pagecache-base:1.13 cherry-xenmp:1.13.0.42 cherry-xenmp-base:1.13 bouyer-quota2-nbase:1.13 bouyer-quota2:1.13.0.40 bouyer-quota2-base:1.13 matt-mips64-premerge-20101231:1.13 matt-nb5-mips64-premerge-20101231:1.13 matt-nb5-pq3:1.13.0.38 matt-nb5-pq3-base:1.13 netbsd-5-1:1.13.0.36 netbsd-5-1-RELEASE:1.13 netbsd-5-1-RC4:1.13 matt-nb5-mips64-k15:1.13 netbsd-5-1-RC3:1.13 netbsd-5-1-RC2:1.13 netbsd-5-1-RC1:1.13 netbsd-5-0-2-RELEASE:1.13 matt-nb5-mips64-premerge-20091211:1.13 matt-premerge-20091211:1.13 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.13 matt-nb4-mips64-k7-u2a-k9b:1.13 matt-nb5-mips64-u1-k1-k5:1.13 matt-nb5-mips64:1.13.0.34 netbsd-5-0-1-RELEASE:1.13 jym-xensuspend-nbase:1.13 netbsd-5-0:1.13.0.32 netbsd-5-0-RELEASE:1.13 netbsd-5-0-RC4:1.13 netbsd-5-0-RC3:1.13 netbsd-5-0-RC2:1.13 jym-xensuspend:1.13.0.30 jym-xensuspend-base:1.13 netbsd-5-0-RC1:1.13 netbsd-5:1.13.0.28 netbsd-5-base:1.13 matt-mips64-base2:1.13 matt-mips64:1.13.0.26 netbsd-4-0-1-RELEASE:1.13 wrstuden-revivesa-base-3:1.13 wrstuden-revivesa-base-2:1.13 wrstuden-fixsa-newbase:1.13 wrstuden-revivesa-base-1:1.13 yamt-pf42-base4:1.13 yamt-pf42-base3:1.13 hpcarm-cleanup-nbase:1.13 yamt-pf42-baseX:1.13 yamt-pf42-base2:1.13 wrstuden-revivesa:1.13.0.24 wrstuden-revivesa-base:1.13 yamt-pf42:1.13.0.22 yamt-pf42-base:1.13 mjf-devfs2:1.13.0.20 mjf-devfs2-base:1.13 keiichi-mipv6:1.13.0.18 keiichi-mipv6-base:1.13 matt-armv6-nbase:1.13 matt-armv6-prevmlocking:1.13 wrstuden-fixsa-base-1:1.13 netbsd-4-0:1.13.0.16 netbsd-4-0-RELEASE:1.13 cube-autoconf:1.13.0.14 cube-autoconf-base:1.13 mjf-devfs:1.13.0.12 mjf-devfs-base:1.13 netbsd-4-0-RC5:1.13 netbsd-4-0-RC4:1.13 netbsd-4-0-RC3:1.13 netbsd-4-0-RC2:1.13 netbsd-4-0-RC1:1.13 matt-armv6:1.13.0.10 matt-armv6-base:1.13 matt-mips64-base:1.13 hpcarm-cleanup:1.13.0.8 hpcarm-cleanup-base:1.13 netbsd-3-1-1-RELEASE:1.12 netbsd-3-0-3-RELEASE:1.12 wrstuden-fixsa:1.13.0.6 wrstuden-fixsa-base:1.13 abandoned-netbsd-4-base:1.13 abandoned-netbsd-4:1.13.0.2 netbsd-3-1:1.12.0.6 netbsd-3-1-RELEASE:1.12 netbsd-3-0-2-RELEASE:1.12 netbsd-3-1-RC4:1.12 netbsd-3-1-RC3:1.12 netbsd-3-1-RC2:1.12 netbsd-3-1-RC1:1.12 netbsd-4:1.13.0.4 netbsd-4-base:1.13 netbsd-3-0-1-RELEASE:1.12 netbsd-3-0:1.12.0.4 netbsd-3-0-RELEASE:1.12 netbsd-3-0-RC6:1.12 netbsd-3-0-RC5:1.12 netbsd-3-0-RC4:1.12 netbsd-3-0-RC3:1.12 netbsd-3-0-RC2:1.12 netbsd-3-0-RC1:1.12 netbsd-2-0-3-RELEASE:1.11 netbsd-2-1:1.11.0.6 netbsd-2-1-RELEASE:1.11 netbsd-2-1-RC6:1.11 netbsd-2-1-RC5:1.11 netbsd-2-1-RC4:1.11 netbsd-2-1-RC3:1.11 netbsd-2-1-RC2:1.11 netbsd-2-1-RC1:1.11 netbsd-2-0-2-RELEASE:1.11 netbsd-3:1.12.0.2 netbsd-3-base:1.12 netbsd-2-0-1-RELEASE:1.11 netbsd-2:1.11.0.4 netbsd-2-base:1.11 netbsd-2-0-RELEASE:1.11 netbsd-2-0-RC5:1.11 netbsd-2-0-RC4:1.11 netbsd-2-0-RC3:1.11 netbsd-2-0-RC2:1.11 netbsd-2-0-RC1:1.11 netbsd-2-0:1.11.0.2 netbsd-2-0-base:1.11 netbsd-1-6-PATCH002-RELEASE:1.9 netbsd-1-6-PATCH002:1.9 netbsd-1-6-PATCH002-RC4:1.9 netbsd-1-6-PATCH002-RC3:1.9 netbsd-1-6-PATCH002-RC2:1.9 netbsd-1-6-PATCH002-RC1:1.9 netbsd-1-6-PATCH001:1.9 netbsd-1-6-PATCH001-RELEASE:1.9 netbsd-1-6-PATCH001-RC3:1.9 netbsd-1-6-PATCH001-RC2:1.9 netbsd-1-6-PATCH001-RC1:1.9 fvdl_fs64_base:1.10 netbsd-1-6-RELEASE:1.9 netbsd-1-6-RC3:1.9 netbsd-1-6-RC2:1.9 netbsd-1-6-RC1:1.9 netbsd-1-6:1.9.0.2 netbsd-1-6-base:1.9 netbsd-1-5-PATCH003:1.8 netbsd-1-5-PATCH002:1.8 netbsd-1-5-PATCH001:1.8 netbsd-1-5-RELEASE:1.8 netbsd-1-5-BETA2:1.8 netbsd-1-5-BETA:1.8 netbsd-1-4-PATCH003:1.8 netbsd-1-5-ALPHA2:1.8 netbsd-1-5:1.8.0.10 netbsd-1-5-base:1.8 minoura-xpg4dl:1.8.0.8 minoura-xpg4dl-base:1.8 netbsd-1-4-PATCH002:1.8 wrstuden-devbsize-19991221:1.8 wrstuden-devbsize:1.8.0.6 wrstuden-devbsize-base:1.8 comdex-fall-1999:1.8.0.4 comdex-fall-1999-base:1.8 netbsd-1-4-PATCH001:1.8 netbsd-1-4-RELEASE:1.8 netbsd-1-4:1.8.0.2 netbsd-1-4-base:1.8 netbsd-1-3-PATCH003:1.7 netbsd-1-3-PATCH003-CANDIDATE2:1.7 netbsd-1-3-PATCH003-CANDIDATE1:1.7 netbsd-1-3-PATCH003-CANDIDATE0:1.7 netbsd-1-3-PATCH002:1.7 netbsd-1-3-PATCH001:1.7 netbsd-1-3-RELEASE:1.7 netbsd-1-3-BETA:1.7 netbsd-1-3:1.7.0.2 netbsd-1-3-base:1.7 netbsd-1-2-PATCH001:1.4 netbsd-1-2-RELEASE:1.4 netbsd-1-2-BETA:1.4 netbsd-1-2:1.4.0.6 netbsd-1-2-base:1.4 netbsd-1-1-PATCH001:1.4 netbsd-1-1-RELEASE:1.4 netbsd-1-1:1.4.0.2 netbsd-1-1-base:1.4 netbsd-1-0-PATCH06:1.1 netbsd-1-0-PATCH05:1.1 netbsd-1-0-PATCH04:1.1 netbsd-1-0-PATCH03:1.1 netbsd-1-0-PATCH02:1.1 netbsd-1-0-PATCH1:1.1 netbsd-1-0-PATCH0:1.1 netbsd-1-0-RELEASE:1.1 netbsd-1-0:1.1.0.2 netbsd-1-0-base:1.1; locks; strict; comment @# @; 1.14 date 2020.07.26.08.20.22; author mlelstv; state Exp; branches; next 1.13; commitid J0uUiQRMa2kg5zhC; 1.13 date 2005.06.27.01.00.05; author christos; state Exp; branches; next 1.12; 1.12 date 2005.02.05.14.47.18; author xtraeme; state Exp; branches; next 1.11; 1.11 date 2003.03.22.12.43.57; author jdolecek; state Exp; branches; next 1.10; 1.10 date 2002.08.19.10.16.55; author lukem; state Exp; branches; next 1.9; 1.9 date 2000.10.30.20.56.58; author jdolecek; state Exp; branches; next 1.8; 1.8 date 98.03.01.02.20.11; author fvdl; state Exp; branches; next 1.7; 1.7 date 97.10.10.19.49.02; author christos; state Exp; branches; next 1.6; 1.6 date 97.05.08.21.11.13; author gwr; state Exp; branches; next 1.5; 1.5 date 97.05.06.20.45.07; author gwr; state Exp; branches; next 1.4; 1.4 date 95.03.18.14.57.08; author cgd; state Exp; branches; next 1.3; 1.3 date 95.01.18.08.37.48; author mycroft; state Exp; branches; next 1.2; 1.2 date 94.12.22.10.45.52; author cgd; state Exp; branches; next 1.1; 1.1 date 94.06.03.00.33.10; author chopps; state Exp; branches; next ; desc @@ 1.14 log @Refactor remaining mount_* commands to use the common pathadj() function for resolving paths. Make pathadj() no longer warn about symlinks. Symlinks in /dev are regularly used in several places like LVM . The warning was also only visible when calling a mount_* command directly as mount(8) itself would resolve the path witout warning before passing it to a mount_* command. @ text @# $NetBSD: Makefile,v 1.13 2005/06/27 01:00:05 christos Exp $ .include PROG= mount_ados SRCS= mount_ados.c fattr.c pathadj.c MAN= mount_ados.8 MOUNT= ${NETBSDSRCDIR}/sbin/mount CPPFLAGS+= -I${NETBSDSRCDIR}/sys -I${MOUNT} .PATH: ${MOUNT} DPADD+=${LIBUTIL} LDADD+=-lutil .include @ 1.13 log @Move WARNS=3 to the Makefile.inc, and add a little const to the remaining programs that did not compile before. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2005/02/05 14:47:18 xtraeme Exp $ d6 1 a6 1 SRCS= mount_ados.c fattr.c @ 1.12 log @Kill __P(), use ANSI function declarations; WARNS=3. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2003/03/22 12:43:57 jdolecek Exp $ a8 2 WARNS= 3 @ 1.11 log @move getmntopts(3) to libutil, build and install also it's manpage bump libutil minor adjust individual mount_*/Makefile to use libutil getmntopts(3) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2002/08/19 10:16:55 lukem Exp $ d9 2 @ 1.10 log @Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2000/10/30 20:56:58 jdolecek Exp $ d6 1 a6 1 SRCS= mount_ados.c getmntopts.c fattr.c d12 3 @ 1.9 log @make the code includable into other programs: * make static all symbols which do not need to be exported * rename main() to mount_FOO() * new main() now just calls mount_FOO(), main() is only compiled in if MOUNT_NOMAIN is not defined * a_gid(), a_uid() and a_mask() were put into ../mount/fattr.[ch], local versions removed @ text @d1 3 a3 1 # $NetBSD: Makefile,v 1.8 1998/03/01 02:20:11 fvdl Exp $ d9 2 a10 2 MOUNT= ${.CURDIR}/../mount CPPFLAGS+= -I${.CURDIR}/../../sys -I${MOUNT} @ 1.8 log @Merge with Lite2 + local changes @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 1997/10/10 19:49:02 christos Exp $ d4 1 a4 1 SRCS= mount_ados.c getmntopts.c @ 1.7 log @CFLAGS->CPPFLAGS @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 1997/05/08 21:11:13 gwr Exp $ d8 1 a8 1 CPPFLAGS+= -I${MOUNT} @ 1.6 log @Back out the .PATH.c changes. The .depend problem (and others) will be fixed using the new .NOPATH make feature instead. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 1997/05/06 20:45:07 gwr Exp $ d8 1 a8 1 CFLAGS+= -I${MOUNT} @ 1.5 log @Use .PATH.c: ... @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 1995/03/18 14:57:08 cgd Exp $ d9 1 a9 1 .PATH.c: ${MOUNT} @ 1.4 log @convert to new RCS Id conventions; reduce my headache @ text @d1 1 a1 1 # $NetBSD$ d9 1 a9 1 .PATH: ${MOUNT} @ 1.3 log @Clone from mount_msdos. @ text @d1 1 a1 1 # $Id: Makefile,v 1.8 1994/12/22 10:46:08 cgd Exp $ @ 1.2 log @specify man pages the new way. @ text @d1 1 a1 3 # # $Id: Makefile,v 1.1 1994/06/03 00:33:10 chopps Exp $ # d3 3 a5 2 PROG = mount_ados MAN = mount_ados.8 d7 3 a9 2 BINOWN= root BINMODE= 4555 @ 1.1 log @basically mount_msdos for now. @ text @d2 1 a2 1 # $Id: Makefile,v 1.5 1994/04/08 01:26:59 cgd Exp $ d5 2 a6 2 PROG = mount_ados MAN8 = mount_ados.0 @