|
Publicité ' | |||||||||||||||||||||||
|
|
#1 |
|
Membre à l'essai
![]() Étudiant Inscription : mars 2007 Messages : 40 ![]() |
Bonsoir vu l'heure tardive.
Dans le cadre de mes etudes je dois coder un tar like compatible avec le tar systeme. en lisant le man (5). Je suis tombe sur la structure header_posix_ustar contenant un champs checksum. Or je ne comprends pas comment cette valeur est settee. Si quelqu'un pouvait m'expliquer ce serais avec bonheur |
|
|
00
|
|
|
#2 |
|
Invité de passage
![]() Inscription : juillet 2007 Messages : 7 ![]() |
on sent le rush pour epitech...
trop galere ce rush, meme avec le man 5 tar
|
|
|
00
|
|
|
#3 |
|
Invité régulier
![]() Inscription : décembre 2007 Messages : 19 ![]() |
Hello !!,
Je suis aussi sur le rush voila ce que j'ai trouver comme explication mais sans plus : checksum Header checksum, stored as an octal number in ASCII. To compute the checksum, set the checksum field to all spaces, then sum all bytes in the header using unsigned arithmetic. This field should be stored as six octal digits followed by a null and a space character. Note that many early implementations of tar(1,5) used signed arithmetic for the checksum field, which can cause inter- operability problems when transferring archives between systems. Modern robust readers compute the checksum both ways and accept(2,8) the header if either computation matches. Quelqu'un a une idée ? |
|
|
00
|
Copyright © 2000-2012 - www.developpez.com