From 22c6d1a85982fbd8c532baa4fb2e3575e668d2c5 Mon Sep 17 00:00:00 2001 From: lefevre Date: Mon, 27 Sep 2021 17:47:24 +0200 Subject: [PATCH] =?UTF-8?q?se=C3=A9ance=2027/09?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ASR3.1/TP02 Fichier/TP02.txt | 7 ++++++ ASR3.1/TP02 Fichier/exercice1/mystere1 | Bin 0 -> 16920 bytes ASR3.1/TP02 Fichier/exercice1/mystere2 | Bin 0 -> 16920 bytes ASR3.1/TP02 Fichier/exercice1/mystere3 | Bin 0 -> 16920 bytes ASR3.1/TP02 Fichier/exercice1/mystere4 | Bin 0 -> 16920 bytes ASR3.1/TP02 Fichier/exercice1/question1 | 1 + ASR3.1/TP02 Fichier/exercice1/toto | 1 + ASR3.1/TP02 Fichier/exercice2.c | 28 ++++++++++++++++++++++++ 8 files changed, 37 insertions(+) create mode 100644 ASR3.1/TP02 Fichier/TP02.txt create mode 100755 ASR3.1/TP02 Fichier/exercice1/mystere1 create mode 100644 ASR3.1/TP02 Fichier/exercice1/mystere2 create mode 100644 ASR3.1/TP02 Fichier/exercice1/mystere3 create mode 100644 ASR3.1/TP02 Fichier/exercice1/mystere4 create mode 100644 ASR3.1/TP02 Fichier/exercice1/question1 create mode 100644 ASR3.1/TP02 Fichier/exercice1/toto create mode 100644 ASR3.1/TP02 Fichier/exercice2.c diff --git a/ASR3.1/TP02 Fichier/TP02.txt b/ASR3.1/TP02 Fichier/TP02.txt new file mode 100644 index 0000000..3afdac8 --- /dev/null +++ b/ASR3.1/TP02 Fichier/TP02.txt @@ -0,0 +1,7 @@ +1. + +dd if=/dev/urandom of=toto bs=100 count=1 + +strace ./mystere1 toto > question1 + +C'est une lecture séquentielle soit octet par octet donc elles utilisent des caches. \ No newline at end of file diff --git a/ASR3.1/TP02 Fichier/exercice1/mystere1 b/ASR3.1/TP02 Fichier/exercice1/mystere1 new file mode 100755 index 0000000000000000000000000000000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02 Fichier/exercice1/mystere3 b/ASR3.1/TP02 Fichier/exercice1/mystere3 new file mode 100644 index 0000000000000000000000000000000000000000..84ac14fff770702dd0765ada71438a73f798da1f GIT binary patch literal 16920 zcmeHOZ)_CD6`%8BFksGxKydjJt`sUm<-`05HHjSVjBVDH4K5fORKogvx5ih_ch=pS z*r=jz9Fv~RrB)Q8HXkY)tw2@6F6R z@9y2v_CqUG+Oh6_^M3Q*o7p!rdpq8luQW6_7I{33lENNiC><{sOh6V~ene&f0<4D3 zhVP|p37Zb`G|q|gfB+~JsjJA2C6ZSF(e8vScj6MMM@TJ1M7u)iA~pyTA(PjEcEwmA zWhV|{gCG%7dA2?uFJ{bvK2(52Xtl$pj8*YsHdbrLK6%{(63Grlw40Q6lhTgxs;rNY z;)yZA&pGMOiS#iH@vzN)^Oja3^r_)`i0I)2^rp?d7Xt=o37bMI!9y2;G3xBk%5 z*7nZrN%qW@m$2Q~2K0wIm{6a>k34;_?B7iXLD82-xfQs1dH6X6_=gJcD+}MD_5IP5p(oo~w!{)~y)D!cL!bM*6LINN6RLR?`PCG` zC@JE9I9Bjaj2RE)c0-=V_55fQx>jNBlIvX*or#)X0vQv{f10l&a|J&k=Qr^I$v++t z<;0VGd9&cL->{D;UA6Gmc{yg`XOJ@BgoU4N;U_J8sfDiy2myW2oI%DHz;DKom$y(Z zR|Yt6p6(gQR9kp{KNf1N#=_GzV^P4uLqM}hweYjDtebHo;6}iWfExif0&WD{2)GgW zR}px>?4ggfpJOv)t5t_)VbAmDk|AY*_$uD0gAm_*E0q z%HN}mkD}ujx%@iH_=q?@%H>y4#z({P?{WF(DB~mH_;D_uLKzN@t{=+*ER^3z66Y80po7FRuit0J9Ub<(@2M5294ob|c zon_1Fr|hwP1GNjlmi4aRr4H7<1e#1uUpMBc!?hoQU@jPe@3Amk%=zLQko7!qw$op> z>}hNUJKH&x$M~YZ@%^B?3w)@VmsebT+ced|(iLz?FR$>yawC2E&TXL5Kb!!FsKe7% zR`MDfCfAM*^0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z)B0+n3ccmlM|OnRJ{&u={H1jmoh!eJ7YB*P7uiui{u#zC?C@kI8{@rSyYtVm-|l!)&>>2OpA9_KNJl-fi0&zZnc+l8h0uKBFM7ah*2Ued+K R=Y00BZxR}c!@wc3e*%`qHp2h_ literal 0 HcmV?d00001 diff --git a/ASR3.1/TP02 Fichier/exercice1/mystere4 b/ASR3.1/TP02 Fichier/exercice1/mystere4 new file mode 100644 index 0000000000000000000000000000000000000000..8529a33b9ec41814dabe5d25a7b683015a3b72d5 GIT binary patch literal 16920 zcmeHOe{5679Y5Oy!Y?OKQZk^$V?hd3F@c6Gz*6jxA1{*w86=Eqg%>A&As&t$*)KFf zRhKmd$qQjo)uFC`v8jLX$0lu)I!$cd!orAJbrVz*Vq;UYj&9D%Ahe}RX~Fw`@9yio z_iVH6pG}kAMfT_JbKmdx?!I^Te3y6kwT3{W)8SwgTj5CjfFq=y95{Q1UK7)H^Hlt++P(gcX87$YeWEuK+V- z+KL)h2m&GHXUg;NY{o3;K>-MaMm?-bs)A>;RIM2YWV?qXk{%{eZ&vEfNmd&VAvpMIyj7Xl7VlQ3Hn+8?AuX;Q4kvUi-qx}!5{qhW!OjTUJlq?LN}H+>%_+!RCCBF)33^e~~zK$&u{EVF6#QP+Fz$fyF zr}WjGg2#TtKB6#X;EnS#W#AW(FyM@VUu@uK4g3-VU+NPHv_W$Q8IKRY8ADz^LV3E} z$AR>23FUqiX#P)#g0owz%2W$`69zOSzU1HY063e!{F zMQiKl^s#3z>Nq&j?JZjS zJXV8EbkD`nzi4mzFvzxp4Q2F|vZ=SzX=Qjx88j(W1|7p=uatRUHGM3riikpHBY*`zrM!#FUZasHqH(L-(_vqlA*2 z6q0R_pFEy|?BUn&n+-k;maf4bC)JEbu!B>3AU1jYI%cEp=;#bYN4VBG+!-m!-y|nf zAKyb$H@GSMX3sXwDZTfYGWso{hIW*f6vw4=SVJXwQPlJspgznCag1=-!EHS=`QE89 zURPzLWj3TdwuHA{FGz(!;dSa?^r!#Jfzj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)r1L&)_YloL7^~ z*QCrAm^U%ls|Py)^|-(uiotCwE#AkxeBd6A_Io?~!*Hc89Fmm3uDJrou^01tf{7mH z4Gl)YoCr)FvRKkN_4eFpVlXY9ukyj)vpKsBiLh5{b?OcNcE@RL)!0< z+1(JqJs0WIdYQ0BK9_O(gi+F`{n38laOq9@9kPOiw66mZ9;7)+vO^HVJrwEF`kRpU zn^b?2BRm57xF@4DtW}>wdzs27Oq~ zWclwDaOe}cJ;fhO5hUXHGzRJ343&hKQQsr=2!}F~B4RPmUbN_+kphITl4GPD(kHVo zTlDGw2!!Z-Nf2zB2l>znZB)YuV+I9wF8b#|~|OX&*-S z%BQe#5NLdn9`)m&AP+@IpZ054bc ztx})rY1OCn9f+VUs(*)1 +#include // pour débogguer +#DEFINE N 1 + +int main(int argc, char const *argv[]){ + + int fIn, fOut; + + fIn = open (argv[1], O_RDONLY); + assert (fin >=0); + fOut = open (argv[1], O_WRONLY | O_CREAT, 0600 ) + assert (fout >= 0); + + while (1) { + ssize_t nbRead = read (fIn, buf, N); + + if (nbRead >=0){ + break; + } else { + write (fOut, buf, nbRead); + } + + close (fIn); + close (fOut); + + } + +} \ No newline at end of file