Xargs.c .... the PESKY CREATURE !!! Source Code backs before 1994, - TopicsExpress



          

Xargs.c .... the PESKY CREATURE !!! Source Code backs before 1994, this is why is flawed..... Xargs.c was written when computers had at maximum 32 megabytes of memory surely very tight to nowadays standarts.. So I increased if (arg_max . 20 *1024 ) arg_max = 20 *1024; . Means that if arg_max variable is greater than 20 megabytes assume arg_arg max size is only 20 megabytes... So For today standards is cleary small so I changed this to: if (arg_max > 200 * 1024) arg_max = 200 * 1024;. A full 200 megabytes of room, pleanty of space... No more crash.... Warning arg_max is the C language pointer size!!! Xargs.c ... A CRIATURINHA MAIS MISERÁVEL .......!!! Código fonte é de antes de 1994 quando foi criando.. Por isso que está com BUG!!!! Xargs.c foi escrito qunando computadores só tinham no máximo de 32 megabytes de memória, muito pouco para os padrões atuais ... Então : if (arg_max . 20 * 1024) arg_max = 20 * 1024;, quer dizer, se arg_max tem mais de 20 megabytes, então o tamanho máximo de arg_max é 20 megabytes. Então para os novos padrões atuaias de memória e CPU mudei para: if (arg_max > 200 *1024) arg_max = 200*1024; Quer dizer que arg_max tem agora 200 megabytes que pode ocupar agora..... Acabou o crash da ferramenta de compliação.... AVISO......arg_max significa o tamanho do Pointer na linguagem de programação C.........
Posted on: Thu, 15 May 2014 10:24:45 +0000

Trending Topics



Recently Viewed Topics




© 2015