head 1.20; access; symbols netbsd-11-0-RC4:1.20 netbsd-11-0-RC3:1.20 netbsd-11-0-RC2:1.20 netbsd-11-0-RC1:1.20 perseant-exfatfs-base-20250801:1.20 netbsd-11:1.20.0.12 netbsd-11-base:1.20 netbsd-10-1-RELEASE:1.20 perseant-exfatfs-base-20240630:1.20 perseant-exfatfs:1.20.0.10 perseant-exfatfs-base:1.20 netbsd-8-3-RELEASE:1.18 netbsd-9-4-RELEASE:1.18 netbsd-10-0-RELEASE:1.20 netbsd-10-0-RC6:1.20 netbsd-10-0-RC5:1.20 netbsd-10-0-RC4:1.20 netbsd-10-0-RC3:1.20 netbsd-10-0-RC2:1.20 netbsd-10-0-RC1:1.20 netbsd-10:1.20.0.8 netbsd-10-base:1.20 netbsd-9-3-RELEASE:1.18 cjep_sun2x-base1:1.20 cjep_sun2x:1.20.0.6 cjep_sun2x-base:1.20 cjep_staticlib_x-base1:1.20 netbsd-9-2-RELEASE:1.18 cjep_staticlib_x:1.20.0.4 cjep_staticlib_x-base:1.20 netbsd-9-1-RELEASE:1.18 phil-wifi-20200421:1.20 phil-wifi-20200411:1.20 is-mlppp:1.20.0.2 is-mlppp-base:1.20 phil-wifi-20200406:1.20 netbsd-8-2-RELEASE:1.18 netbsd-9-0-RELEASE:1.18 netbsd-9-0-RC2:1.18 netbsd-9-0-RC1:1.18 phil-wifi-20191119:1.20 netbsd-9:1.18.0.18 netbsd-9-base:1.18 phil-wifi-20190609:1.18 netbsd-8-1-RELEASE:1.18 netbsd-8-1-RC1:1.18 pgoyette-compat-merge-20190127:1.18 pgoyette-compat-20190127:1.18 pgoyette-compat-20190118:1.18 pgoyette-compat-1226:1.18 pgoyette-compat-1126:1.18 pgoyette-compat-1020:1.18 pgoyette-compat-0930:1.18 pgoyette-compat-0906:1.18 netbsd-7-2-RELEASE:1.17.12.1 pgoyette-compat-0728:1.18 netbsd-8-0-RELEASE:1.18 phil-wifi:1.18.0.16 phil-wifi-base:1.18 pgoyette-compat-0625:1.18 netbsd-8-0-RC2:1.18 pgoyette-compat-0521:1.18 pgoyette-compat-0502:1.18 pgoyette-compat-0422:1.18 netbsd-8-0-RC1:1.18 pgoyette-compat-0415:1.18 pgoyette-compat-0407:1.18 pgoyette-compat-0330:1.18 pgoyette-compat-0322:1.18 pgoyette-compat-0315:1.18 netbsd-7-1-2-RELEASE:1.17.12.1 pgoyette-compat:1.18.0.14 pgoyette-compat-base:1.18 netbsd-7-1-1-RELEASE:1.17.12.1 matt-nb8-mediatek:1.18.0.12 matt-nb8-mediatek-base:1.18 perseant-stdc-iso10646:1.18.0.10 perseant-stdc-iso10646-base:1.18 netbsd-8:1.18.0.8 netbsd-8-base:1.18 prg-localcount2-base3:1.18 prg-localcount2-base2:1.18 prg-localcount2-base1:1.18 prg-localcount2:1.18.0.6 prg-localcount2-base:1.18 pgoyette-localcount-20170426:1.18 bouyer-socketcan-base1:1.18 pgoyette-localcount-20170320:1.18 netbsd-7-1:1.17.12.1.0.6 netbsd-7-1-RELEASE:1.17.12.1 netbsd-7-1-RC2:1.17.12.1 netbsd-7-nhusb-base-20170116:1.17.12.1 bouyer-socketcan:1.18.0.4 bouyer-socketcan-base:1.18 pgoyette-localcount-20170107:1.18 netbsd-7-1-RC1:1.17.12.1 pgoyette-localcount-20161104:1.18 netbsd-7-0-2-RELEASE:1.17.12.1 localcount-20160914:1.18 netbsd-7-nhusb:1.17.12.1.0.4 netbsd-7-nhusb-base:1.17.12.1 pgoyette-localcount-20160806:1.18 pgoyette-localcount-20160726:1.18 pgoyette-localcount:1.18.0.2 pgoyette-localcount-base:1.18 netbsd-7-0-1-RELEASE:1.17.12.1 netbsd-7-0:1.17.12.1.0.2 netbsd-7-0-RELEASE:1.17.12.1 netbsd-7-0-RC3:1.17.12.1 netbsd-7-0-RC2:1.17.12.1 netbsd-7-0-RC1:1.17.12.1 netbsd-5-2-3-RELEASE:1.12 netbsd-5-1-5-RELEASE:1.12 netbsd-6-0-6-RELEASE:1.16 netbsd-6-1-5-RELEASE:1.16 netbsd-7:1.17.0.12 netbsd-7-base:1.17 yamt-pagecache-base9:1.17 yamt-pagecache-tag8:1.15.4.2 netbsd-6-1-4-RELEASE:1.16 netbsd-6-0-5-RELEASE:1.16 tls-earlyentropy:1.17.0.10 tls-earlyentropy-base:1.17 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.17 riastradh-drm2-base3:1.17 netbsd-6-1-3-RELEASE:1.16 netbsd-6-0-4-RELEASE:1.16 netbsd-5-2-2-RELEASE:1.12 netbsd-5-1-4-RELEASE:1.12 netbsd-6-1-2-RELEASE:1.16 netbsd-6-0-3-RELEASE:1.16 netbsd-5-2-1-RELEASE:1.12 netbsd-5-1-3-RELEASE:1.12 netbsd-6-1-1-RELEASE:1.16 riastradh-drm2-base2:1.17 riastradh-drm2-base1:1.17 riastradh-drm2:1.17.0.4 riastradh-drm2-base:1.17 netbsd-6-1:1.16.0.8 netbsd-6-0-2-RELEASE:1.16 netbsd-6-1-RELEASE:1.16 khorben-n900:1.17.0.8 netbsd-6-1-RC4:1.16 netbsd-6-1-RC3:1.16 agc-symver:1.17.0.6 agc-symver-base:1.17 netbsd-6-1-RC2:1.16 netbsd-6-1-RC1:1.16 yamt-pagecache-base8:1.17 netbsd-5-2:1.12.0.24 netbsd-6-0-1-RELEASE:1.16 yamt-pagecache-base7:1.17 netbsd-5-2-RELEASE:1.12 netbsd-5-2-RC1:1.12 matt-nb6-plus-nbase:1.16 yamt-pagecache-base6:1.17 netbsd-6-0:1.16.0.6 netbsd-6-0-RELEASE:1.16 netbsd-6-0-RC2:1.16 tls-maxphys:1.17.0.2 tls-maxphys-base:1.17 matt-nb6-plus:1.16.0.4 matt-nb6-plus-base:1.16 netbsd-6-0-RC1:1.16 yamt-pagecache-base5:1.16 yamt-pagecache-base4:1.16 netbsd-6:1.16.0.2 netbsd-6-base:1.16 netbsd-5-1-2-RELEASE:1.12 netbsd-5-1-1-RELEASE:1.12 yamt-pagecache-base3:1.16 yamt-pagecache-base2:1.16 yamt-pagecache:1.15.0.4 yamt-pagecache-base:1.15 cherry-xenmp:1.15.0.2 cherry-xenmp-base:1.15 bouyer-quota2-nbase:1.15 bouyer-quota2:1.14.0.2 bouyer-quota2-base:1.15 matt-mips64-premerge-20101231:1.14 matt-nb5-mips64-premerge-20101231:1.12 matt-nb5-pq3:1.12.0.22 matt-nb5-pq3-base:1.12 netbsd-5-1:1.12.0.20 netbsd-5-1-RELEASE:1.12 netbsd-5-1-RC4:1.12 matt-nb5-mips64-k15:1.12 netbsd-5-1-RC3:1.12 netbsd-5-1-RC2:1.12 netbsd-5-1-RC1:1.12 netbsd-5-0-2-RELEASE:1.12 matt-nb5-mips64-premerge-20091211:1.12 matt-premerge-20091211:1.12 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.12 matt-nb4-mips64-k7-u2a-k9b:1.12 matt-nb5-mips64-u1-k1-k5:1.12 matt-nb5-mips64:1.12.0.18 netbsd-5-0-1-RELEASE:1.12 jym-xensuspend-nbase:1.12 netbsd-5-0:1.12.0.16 netbsd-5-0-RELEASE:1.12 netbsd-5-0-RC4:1.12 netbsd-5-0-RC3:1.12 netbsd-5-0-RC2:1.12 jym-xensuspend:1.12.0.14 jym-xensuspend-base:1.12 netbsd-5-0-RC1:1.12 netbsd-5:1.12.0.12 netbsd-5-base:1.12 matt-mips64-base2:1.12 matt-mips64:1.11.0.14 mjf-devfs2:1.12.0.10 mjf-devfs2-base:1.12 netbsd-4-0-1-RELEASE:1.11 wrstuden-revivesa-base-3:1.12 wrstuden-revivesa-base-2:1.12 wrstuden-fixsa-newbase:1.11 wrstuden-revivesa-base-1:1.12 yamt-pf42-base4:1.12 yamt-pf42-base3:1.12 hpcarm-cleanup-nbase:1.12 yamt-pf42-baseX:1.12 yamt-pf42-base2:1.12 wrstuden-revivesa:1.12.0.8 wrstuden-revivesa-base:1.12 yamt-pf42:1.12.0.6 yamt-pf42-base:1.12 keiichi-mipv6:1.12.0.4 keiichi-mipv6-base:1.12 matt-armv6-nbase:1.12 matt-armv6-prevmlocking:1.11.10.1 wrstuden-fixsa-base-1:1.11 netbsd-4-0:1.11.0.12 netbsd-4-0-RELEASE:1.11 cube-autoconf:1.12.0.2 cube-autoconf-base:1.12 netbsd-4-0-RC5:1.11 netbsd-4-0-RC4:1.11 netbsd-4-0-RC3:1.11 netbsd-4-0-RC2:1.11 netbsd-4-0-RC1:1.11 matt-armv6:1.11.0.10 matt-armv6-base:1.12 matt-mips64-base:1.11 hpcarm-cleanup:1.11.0.8 hpcarm-cleanup-base:1.12 netbsd-3-1-1-RELEASE:1.10 netbsd-3-0-3-RELEASE:1.10 wrstuden-fixsa:1.11.0.6 wrstuden-fixsa-base:1.11 abandoned-netbsd-4-base:1.11 abandoned-netbsd-4:1.11.0.2 netbsd-3-1:1.10.0.14 netbsd-3-1-RELEASE:1.10 netbsd-3-0-2-RELEASE:1.10 netbsd-3-1-RC4:1.10 netbsd-3-1-RC3:1.10 netbsd-3-1-RC2:1.10 netbsd-3-1-RC1:1.10 netbsd-4:1.11.0.4 netbsd-4-base:1.11 netbsd-3-0-1-RELEASE:1.10 netbsd-3-0:1.10.0.12 netbsd-3-0-RELEASE:1.10 netbsd-3-0-RC6:1.10 netbsd-3-0-RC5:1.10 netbsd-3-0-RC4:1.10 netbsd-3-0-RC3:1.10 netbsd-3-0-RC2:1.10 netbsd-3-0-RC1:1.10 netbsd-2-0-3-RELEASE:1.10 netbsd-2-1:1.10.0.10 netbsd-2-1-RELEASE:1.10 netbsd-2-1-RC6:1.10 netbsd-2-1-RC5:1.10 netbsd-2-1-RC4:1.10 netbsd-2-1-RC3:1.10 netbsd-2-1-RC2:1.10 netbsd-2-1-RC1:1.10 netbsd-2-0-2-RELEASE:1.10 netbsd-3:1.10.0.8 netbsd-3-base:1.10 netbsd-2-0-1-RELEASE:1.10 netbsd-2:1.10.0.6 netbsd-2-base:1.10 netbsd-2-0-RELEASE:1.10 netbsd-2-0-RC5:1.10 netbsd-2-0-RC4:1.10 netbsd-2-0-RC3:1.10 netbsd-2-0-RC2:1.10 netbsd-2-0-RC1:1.10 netbsd-2-0:1.10.0.4 netbsd-2-0-base:1.10 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.6 netbsd-1-5-PATCH002:1.6 netbsd-1-5-PATCH001:1.6 netbsd-1-5-RELEASE:1.6 netbsd-1-5-BETA2:1.6 netbsd-1-5-BETA:1.6 netbsd-1-4-PATCH003:1.6 netbsd-1-5-ALPHA2:1.6 netbsd-1-5:1.6.0.12 netbsd-1-5-base:1.6 minoura-xpg4dl:1.6.0.10 minoura-xpg4dl-base:1.6 netbsd-1-4-PATCH002:1.6 wrstuden-devbsize-19991221:1.6 wrstuden-devbsize:1.6.0.8 wrstuden-devbsize-base:1.6 comdex-fall-1999:1.6.0.6 comdex-fall-1999-base:1.6 netbsd-1-4-PATCH001:1.6 netbsd-1-4-RELEASE:1.6 netbsd-1-4:1.6.0.4 netbsd-1-4-base:1.6 netbsd-1-3-PATCH003:1.6 netbsd-1-3-PATCH003-CANDIDATE2:1.6 netbsd-1-3-PATCH003-CANDIDATE1:1.6 netbsd-1-3-PATCH003-CANDIDATE0:1.6 netbsd-1-3-PATCH002:1.6 netbsd-1-3-PATCH001:1.6 netbsd-1-3-RELEASE:1.6 netbsd-1-3-BETA:1.6 netbsd-1-3:1.6.0.2 netbsd-1-3-base:1.6 netbsd-1-2-PATCH001:1.4 netbsd-1-2-RELEASE:1.4 netbsd-1-2-BETA:1.4 netbsd-1-2-base:1.4 netbsd-1-2:1.4.0.6 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 lite-2:1.1.1.1 netbsd-1-0-PATCH06:1.2 netbsd-1-0-PATCH05:1.2 netbsd-1-0-PATCH04:1.2 netbsd-1-0-PATCH03:1.2 netbsd-1-0-PATCH02:1.2 netbsd-1-0-PATCH1:1.2 netbsd-1-0-PATCH0:1.2 netbsd-1-0-RELEASE:1.2 lite-1:1.1.1.1 CSRG:1.1.1 netbsd-1-0:1.2.0.2 netbsd-1-0-base:1.2 netbsd-0-9-RELEASE:1.1 netbsd-0-9-BETA:1.1 netbsd-0-9-ALPHA2:1.1 netbsd-0-9-ALPHA:1.1 netbsd-0-9:1.1.0.2 netbsd-0-9-base:1.1; locks; strict; comment @# @; 1.20 date 2019.10.04.08.57.37; author mrg; state Exp; branches; next 1.19; commitid HCoC8MHlczQtOwFB; 1.19 date 2019.09.15.23.58.31; author kamil; state Exp; branches; next 1.18; commitid 0P7922c9qHXeqaDB; 1.18 date 2015.03.18.13.23.49; author manu; state Exp; branches 1.18.16.1; next 1.17; 1.17 date 2012.08.08.14.09.14; author christos; state Exp; branches 1.17.12.1; next 1.16; 1.16 date 2011.11.06.21.22.23; author jym; state Exp; branches; next 1.15; 1.15 date 2011.02.04.19.42.12; author pooka; state Exp; branches 1.15.4.1; next 1.14; 1.14 date 2010.11.22.21.59.09; author pooka; state Exp; branches 1.14.2.1; next 1.13; 1.13 date 2010.11.22.21.04.27; author pooka; state Exp; branches; next 1.12; 1.12 date 2007.10.05.07.23.09; author lukem; state Exp; branches; next 1.11; 1.11 date 2005.06.26.19.10.49; author christos; state Exp; branches 1.11.10.1; next 1.10; 1.10 date 2002.11.29.13.11.10; author lukem; state Exp; branches; next 1.9; 1.9 date 2002.02.02.13.03.21; author lukem; state Exp; branches; next 1.8; 1.8 date 2001.11.25.10.50.06; author lukem; state Exp; branches; next 1.7; 1.7 date 2001.11.25.06.53.48; author lukem; state Exp; branches; next 1.6; 1.6 date 97.07.20.22.36.45; author christos; state Exp; branches; next 1.5; 1.5 date 97.07.20.21.58.35; author christos; state Exp; branches; next 1.4; 1.4 date 95.03.21.09.03.58; author cgd; state Exp; branches; next 1.3; 1.3 date 94.09.22.09.24.55; author mycroft; state Exp; branches; next 1.2; 1.2 date 93.08.01.05.47.47; author mycroft; state Exp; branches; next 1.1; 1.1 date 93.05.04.07.08.44; author glass; state Exp; branches 1.1.1.1; next ; 1.18.16.1 date 2020.04.13.07.45.05; author martin; state Exp; branches; next 1.18.16.2; commitid X01YhRUPVUDaec4C; 1.18.16.2 date 2020.04.21.18.41.03; author martin; state dead; branches; next 1.18.16.3; commitid 86tA4aEmdr3VCh5C; 1.18.16.3 date 2020.04.21.19.37.31; author martin; state Exp; branches; next ; commitid x6IB64bYH9UmWh5C; 1.17.12.1 date 2015.03.26.11.08.43; author martin; state Exp; branches; next ; 1.15.4.1 date 2011.11.10.14.31.10; author yamt; state Exp; branches; next 1.15.4.2; 1.15.4.2 date 2012.10.30.18.46.05; author yamt; state Exp; branches; next ; 1.14.2.1 date 2011.02.08.16.18.27; author bouyer; state Exp; branches; next ; 1.11.10.1 date 2007.11.06.23.07.17; author matt; state Exp; branches; next ; 1.1.1.1 date 94.09.22.03.04.27; author mycroft; state Exp; branches; next ; desc @@ 1.20 log @copy libc's swab.c into dd as dd_swab(), and remove the restrict. our implementation was fine, but the restrict marker is problematic as gcc 8 is now more strict about checking for restrict issues. this is the only actual consumer of swab(3) in our tree, though, besides the test for it. oh well. @ text @# $NetBSD: Makefile,v 1.19 2019/09/15 23:58:31 kamil Exp $ # @@(#)Makefile 8.1 (Berkeley) 5/31/93 .include RUMPPRG=dd SRCS= args.c conv.c dd.c dd_swab.c misc.c position.c DPADD+= ${LIBUTIL} LDADD+= -lutil .ifdef SMALLPROG CPPFLAGS+= -DNO_CONV -DNO_MSGFMT -DNO_IOFLAG -DSMALL .else CPPFLAGS+= -D_NETBSD_SOURCE SRCS+= conv_tab.c .ifdef CRUNCHEDPROG CPPFLAGS+= -DSMALL .endif .endif .include @ 1.19 log @Drop -D_INCOMPLETE_XOPEN_C063 from dd(1) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2015/03/18 13:23:49 manu Exp $ d7 1 a7 1 SRCS= args.c conv.c dd.c misc.c position.c @ 1.18 log @Add iflag and oflag operands to dd(1) Like GNU dd(1) similar operands, iflag and oflag allow specifying the O_* flags given to open(2) for the input and the output file. The values are comma-sepratated, lower-case, O_ prefix-stripped constants documented in open(2). Since iflag and oflag override default values, specifying oflag means O_CREATE is not set by default and must be specified explicitely. Some values do not make sense (e.g.: iflag=directory) but are still used and will raise a warning. For oflag, values rdonly, rdwr and wronly are filtered out with a warning (dd(1) attempts open(2) with O_RDWR and then O_WRONLY on failure). Specifying oflag=trunc along with (seek, oseek or conv=notrunc) is contradictory and will raise an error. iflag and oflag are disabled if building with -DMALLPROG @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2012/08/08 14:09:14 christos Exp $ d15 1 a15 1 CPPFLAGS+= -D_NETBSD_SOURCE -D_INCOMPLETE_XOPEN_C063 @ 1.18.16.1 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 1 # $NetBSD$ d7 1 a7 1 SRCS= args.c conv.c dd.c dd_swab.c misc.c position.c d15 1 a15 1 CPPFLAGS+= -D_NETBSD_SOURCE @ 1.18.16.2 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18.16.1 2020/04/13 07:45:05 martin Exp $ @ 1.18.16.3 log @Ooops, restore accidently removed files from merge mishap @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2019/10/04 08:57:37 mrg Exp $ @ 1.17 log @let the standard rules deal with librumpclient @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2011/11/06 21:22:23 jym Exp $ d13 1 a13 1 CPPFLAGS+= -DNO_CONV -DNO_MSGFMT -DSMALL d15 1 @ 1.17.12.1 log @Pull up following revision(s) (requested by manu in ticket #640): bin/dd/extern.h: revision 1.23 bin/dd/dd.1: revision 1.26 bin/dd/dd.1: revision 1.27 bin/dd/dd.h: revision 1.16 bin/dd/dd.c: revision 1.50 bin/dd/Makefile: revision 1.18 bin/dd/args.c: revision 1.39 Add iflag and oflag operands to dd(1) Like GNU dd(1) similar operands, iflag and oflag allow specifying the O_* flags given to open(2) for the input and the output file. The values are comma-sepratated, lower-case, O_ prefix-stripped constants documented in open(2). Since iflag and oflag override default values, specifying oflag means O_CREATE is not set by default and must be specified explicitely. Some values do not make sense (e.g.: iflag=directory) but are still used and will raise a warning. For oflag, values rdonly, rdwr and wronly are filtered out with a warning (dd(1) attempts open(2) with O_RDWR and then O_WRONLY on failure). Specifying oflag=trunc along with (seek, oseek or conv=notrunc) is contradictory and will raise an error. iflag and oflag are disabled if building with -DMALLPROG New sentence, new line. Fix typos. Bump date for previous. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2012/08/08 14:09:14 christos Exp $ d13 1 a13 1 CPPFLAGS+= -DNO_CONV -DNO_MSGFMT -DNO_IOFLAG -DSMALL a14 1 CPPFLAGS+= -D_NETBSD_SOURCE -D_INCOMPLETE_XOPEN_C063 @ 1.16 log @Add a new command to dd(1): msgfmt. The command modifies the output of the information summary returned by dd(1). This can be used to specify messages in a more usable (or parseable) format like human-readable values. My intent is to re-use this for building image files and quick I/O benchmarking. Reviewed by tsutsui@@ on tech-userlevel. See also http://mail-index.netbsd.org/tech-userlevel/2010/12/03/msg004179.html Some examples: $ dd if=/dev/zero of=/dev/null bs=1m count=1 msgfmt=human 1+0 records in 1+0 records out 1048576 bytes (1,0 MB) transferred in 0.001 secs (1048576000 bytes/sec - 1,0 GB/sec) $ dd if=/dev/zero of=/dev/null count=1 msgfmt=' > %E > > %b > ' 500 KB/sec 512 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2011/02/04 19:42:12 pooka Exp $ d4 2 d16 1 a16 4 .ifndef CRUNCHEDPROG DPADD+= ${LIBRUMPCLIENT} LDADD+= -lrumpclient .else @ 1.15 log @Remove the rif/rof options and add rump.dd. This makes usage consistent with other rump clients. Copying between kernels is done using the host pipe, e.g.: dd if=foo rof=bar skip=1 seek=1 => dd if=foo skip=1 | rump.dd of=bar seek=1 Also, the pipe idiom extends to copying between different rump kernels, e.g.: env RUMP_SERVER=unix://srv1 rump.dd if=thefile \ | env RUMP_SERVER=unix://srv2 rump.dd of=thefile Pipe approach suggested by yamt (thanks!) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2010/11/22 21:59:09 pooka Exp $ d11 1 a11 1 CPPFLAGS+= -DNO_CONV -DSMALL @ 1.15.4.1 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2011/02/04 19:42:12 pooka Exp $ d11 1 a11 1 CPPFLAGS+= -DNO_CONV -DNO_MSGFMT -DSMALL @ 1.15.4.2 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15.4.1 2011/11/10 14:31:10 yamt Exp $ a3 2 .include d14 4 a17 1 .ifdef CRUNCHEDPROG @ 1.14 log @extra crunchgen hoops @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2010/11/22 21:04:27 pooka Exp $ d4 1 a4 1 PROG= dd @ 1.14.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2011/02/04 19:42:12 pooka Exp $ d4 1 a4 1 RUMPPRG=dd @ 1.13 log @Add two new operands: "rif" and "rof". They operate exactly like "if" and "of" with the exception that the communicate with a rump kernel instead of the host kernel. For example, to write stdout to /tmp/file.txt in a rump kernel namespace: dd rof=/tmp/file.txt copy /file1 to /file2 inside a rump kernel: dd rif=/file1 rof=/file2 copy a snippet from /dev/rmd0d on the rump kernel to the host fs: dd rif=/dev/rmd0d of=save seek=1000 count=3 Eat that, usermode OS. (I'll document the operands one I have some manpage to refer to for rump client use). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2007/10/05 07:23:09 lukem Exp $ d14 1 d17 3 @ 1.12 log @Convert to using raise_default_signal(3). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2005/06/26 19:10:49 christos Exp $ d11 1 a11 1 CPPFLAGS+= -DNO_CONV d14 2 @ 1.11 log @sprinkle a little const, and now everything compiles with WARNS=3 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2002/11/29 13:11:10 lukem Exp $ d7 3 @ 1.11.10.1 log @sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2007/10/05 07:23:09 lukem Exp $ a6 3 DPADD+= ${LIBUTIL} LDADD+= -lutil @ 1.10 log @convert to using strsuftoll(3) from libc @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2002/02/02 13:03:21 lukem Exp $ a12 2 WARNS=2 @ 1.9 log @.ifdef SMALLPROG, compile with -DNO_CONV and don't compile in conv_tab.o @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2001/11/25 10:50:06 lukem Exp $ d5 1 a5 1 SRCS= args.c conv.c dd.c misc.c position.c strsuftoull.c @ 1.8 log @- Use u_longlong_t instead of u_quad_t, u_long, or int for various buffer sizes - Add strsuftoull(), which parses a number into a u_longlong_t, with multiplication support, and support for 'g' (GB) and 't' (TB) suffices. If an error occurs, print to stderr and exit. Based on get_blk() from args.c and strsufto*() (in other programs) - Add strsuftoullx(), which acts as per strsuftoull() but returns the error in the supplied buffer instead (if the returned buffer != "", an error occurred) - Replace get_bsz() use with strsuftoull() - Remove (now) unnecessary argument validation - Remove unused {f,p,s,t}_stats fields in struct IO @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2001/11/25 06:53:48 lukem Exp $ d5 7 a11 1 SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c strsuftoull.c @ 1.7 log @- ANSI KNF - WARNS=2 (mainly converting some "char *" -> "const char *") @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 1997/07/20 22:36:45 christos Exp $ d5 1 a5 1 SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c @ 1.6 log @Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc now that all /bin has been cleaned. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 1997/07/20 21:58:35 christos Exp $ d6 2 @ 1.5 log @Fix compiler warnings. Add WARNS=1 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 1995/03/21 09:03:58 cgd Exp $ a3 1 WARNS= 1 @ 1.4 log @convert to new RCS id conventions. @ text @d1 1 a1 1 # $NetBSD$ d4 1 @ 1.3 log @Merge 4.4-Lite version. @ text @d1 2 a2 2 # from: @@(#)Makefile 8.1 (Berkeley) 5/31/93 # $Id: $ @ 1.2 log @Add RCS identifiers. @ text @d1 1 a1 1 # from: @@(#)Makefile 5.4 (Berkeley) 11/23/91 @ 1.1 log @added dd(1) from ftp.uu.net:bsd-sources; torching GNU dd @ text @d1 2 a2 1 # @@(#)Makefile 5.4 (Berkeley) 11/23/91 @ 1.1.1.1 log @Import original 4.4-Lite version. @ text @d1 1 a1 1 # @@(#)Makefile 8.1 (Berkeley) 5/31/93 @