Clean up journald logger
Clean up journald logger

We clean up the journald logger with these four changes.

1. Make field array static
2. Make function name more appropriate
3. Initialize the file descriptors only once
4. Avoid copying the journald cursor

Point 4 is the most significant change: instead of treating the journald
cursor like a Go string we use it as a raw C.char pointer. That way we
avoid the copying by the C.CString and C.GoString functions.

Signed-off-by: Silvan Jegen <6884669131c73644f5b7b09fdb7e2ebbd4421505@gmail.com>

docker/docker,konstruktoid/docker-upstream,flavio/docker,alfred-landrum/docker,catinthesky/docker,PatrickLang/moby,amatsus/docker,pramodhkp/moby,HideoYamauchi/docker,justincormack/docker,moul/docker,laijs/docker,johnstep/moby-moby,moypray/docker,fcrisciani/docker,unclejack/docker,rremer/moby,laijs/docker,gnailuy/docker,jwhonce/docker,tianon/docker,raja-sami-10p/moby,shhsu/docker,liaoqingwei/docker,docker/docker,yongtang/docker,dsheets/moby,jvanz/docker,ColinHebert/docker,ripcurld0/moby,ndeloof/docker,jimjag/docker,gnailuy/docker,diogomonica/docker,whuwxl/docker,danyalKhaliq10p/moby,AkihiroSuda/docker,rremer/moby,YuPengZTE/docker,darrenstahlmsft/moby,moypray/docker,q384566678/docker,akira-baruah/docker,dgageot/docker,thaJeztah/docker,jthelin/docker,crosbymichael/docker,fcrisciani/docker,jimjag/docker,kolyshkin/docker,mkumatag/docker,imkin/moby,Mokolea/docker,konstruktoid/docker-upstream,ripcurld0/moby,jameszhan/docker,paralin/docker,jimjag/docker,thaJeztah/docker,mikebrow/docker,gschaetz/moby,johnstep/moby-moby,sterchelen/docker,mikedougherty/docker,charleszheng44/moby,jlhawn/docker,prertik/docker,mtesselH/docker,catinthesky/docker,justincormack/docker,stevvooe/docker,konstruktoid/docker-upstream,thtanaka/docker,rhatdan/docker,tklauser/docker,konstruktoid/docker-upstream,dmcgowan/docker,catinthesky/docker,konstruktoid/docker-1,estesp/docker,kojiromike/docker,q384566678/docker,nawawi/docker,moby/moby,trebonian/docker,mike1729/docker,konstruktoid/docker-1,bearstech/moby,tophj-ibm/docker,x1022as/docker,haveatry/docker,bonczj/moby-json-file-logger,paralin/docker,ffoysal/docker,dims/docker,jameszhan/docker,tklauser/docker,ColinHebert/docker,bearstech/moby,yasiramin10p/moby,allencloud/docker,erikh/docker,tmp6154/docker,srust/docker,hqhq/moby,shhsu/docker,hqhq/moby,mikebrow/docker,rancher/docker,POLJM242/docker,shishir-a412ed/docker,unclejack/docker,gnailuy/docker,mahak/docker,prertik/docker,docker/docker,pradipd/moby,vdemeester/docker,madhanrm/docker,JMesser81/docker,scotttlin/docker,allencloud/docker,naveed-jamil-tenpearls/moby,darrenstahlmsft/docker,laijs/moby,sarnautov/moby,PatrickLang/moby,dperny/docker,nalind/docker,tianon/docker,moby/moby,kolyshkin/docker,thaJeztah/docker,imkin/moby,x1022as/docker,dmcgowan/docker,noironetworks/docker,cyphar/docker,pramodhkp/moby,jlhawn/docker,madhanrm/docker,vdemeester/docker,madhanrm/docker,sarnautov/moby,dmcgowan/docker,mahak/docker,duglin/docker,mstanleyjones/docker,tonistiigi/docker,rremer/moby,tophj-ibm/moby,tophj-ibm/docker,SvenDowideit/docker,erikh/docker,erikstmartin/docker,resin-io/docker,nawawi/docker,mtrmac/docker,sterchelen/docker,stevvooe/docker,harche/docker,michael-holzheu/docker,raja-sami-10p/moby,HideoYamauchi/docker,bearstech/moby,moul/docker,djs55/docker,liaoqingwei/docker,Mokolea/docker,yummypeng/docker,cpuguy83/docker,SvenDowideit/docker,kolyshkin/moby,charleszheng44/moby,laijs/docker,srust/docker,ffoysal/docker,cyphar/docker,YuPengZTE/docker,POLJM242/docker,dccurtis/docker,cyphar/docker,AkihiroSuda/docker,mtrmac/docker,jwhonce/docker,whuwxl/docker,trebonian/docker,kojiromike/docker,flavio/docker,dsheets/moby,gjaskiewicz/moby,flavio/docker,xuxinkun/docker,fcrisciani/docker,hqhq/moby,unclejack/docker,noironetworks/docker,diogomonica/docker,jwhonce/docker,mikedougherty/docker,Ramzec/docker,Mokolea/docker,moby/moby,yasiramin10p/moby,tonistiigi/docker,mike1729/docker,yosifkit/docker,ripcurld0/moby,haveatry/docker,KingEmet/docker,rhatdan/docker,Syntaxide/docker,moby/moby,mkumatag/docker,coreos/docker,ibuildthecloud/docker,dperny/docker,kencochrane/docker,dims/docker,gschaetz/moby,sdurrheimer/docker,moul/docker,dgageot/docker,alfred-landrum/docker,allencloud/docker,mkumatag/docker,dccurtis/docker,mstanleyjones/docker,bonczj/moby-json-file-logger,jthelin/docker,coolljt0725/docker,Ramzec/docker,Mokolea/docker,jvanz/docker,justincormack/docker,nalind/docker,dsheets/moby,maxamillion/docker,kencochrane/docker,maxamillion/docker,ibuildthecloud/docker,alfred-landrum/docker,SvenDowideit/docker,erikh/docker,gschaetz/moby,Syntaxide/docker,nawawi/docker,gjaskiewicz/moby,liaoqingwei/docker,q384566678/docker,mahak/docker,ibuildthecloud/docker,thtanaka/docker,noironetworks/docker,mahak/docker,tonistiigi/docker,flavio/docker,rhatdan/docker,harche/docker,lixiaobing1/docker,kolyshkin/moby,mike1729/docker,tmp6154/docker,moypray/docker,rancher/docker,yosifkit/docker,PatrickLang/moby,raja-sami-10p/moby,dccurtis/docker,mtesselH/docker,djs55/docker,pradipd/moby,mixja/docker,coreos/docker,scotttlin/docker,erikstmartin/docker,imkin/moby,dperny/docker,haveatry/docker,jlhawn/docker,naveed-jamil-tenpearls/moby,yosifkit/docker,yongtang/docker,KarthikNayak/docker,cpuguy83/docker,harche/docker,dgageot/docker,michael-holzheu/docker,qudongfang/docker,naveed-jamil-tenpearls/moby,mtesselH/docker,resin-io/docker,trebonian/docker,tklauser/docker,kojiromike/docker,erikstmartin/docker,mikedougherty/docker,yummypeng/docker,KarthikNayak/docker,shishir-a412ed/docker,djs55/docker,darrenstahlmsft/docker,estesp/docker,maxamillion/docker,sterchelen/docker,miminar/docker,JMesser81/docker,pradipd/moby,darrenstahlmsft/moby,x1022as/docker,KingEmet/docker,shishir-a412ed/docker,mixja/docker,YuPengZTE/docker,nalind/docker,cpuguy83/docker,nawawi/docker,lixiaobing10051267/docker,coolljt0725/docker,michael-holzheu/docker,danyalKhaliq10p/moby,paralin/docker,paralin/docker,trebonian/docker,AkihiroSuda/docker,amatsus/docker,rancher/docker,jvanz/docker,KarthikNayak/docker,mikebrow/docker,vdemeester/docker,sarnautov/moby,cpuguy83/docker,qudongfang/docker,ndeloof/docker,danyalKhaliq10p/moby,jameszhan/docker,whuwxl/docker,dims/docker,lixiaobing10051267/docker,mstanleyjones/docker,srust/docker,mtrmac/docker,konstruktoid/docker-1,ibuildthecloud/docker,nalind/docker,Syntaxide/docker,yongtang/docker,qudongfang/docker,KingEmet/docker,miminar/docker,stevvooe/docker,gnailuy/docker,amatsus/docker,sdurrheimer/docker,lixiaobing1/docker,laijs/moby,yasiramin10p/moby,coreos/docker,ffoysal/docker,darrenstahlmsft/moby,xuxinkun/docker,laijs/moby,HideoYamauchi/docker,thtanaka/docker,sdurrheimer/docker,estesp/docker,gjaskiewicz/moby,lixiaobing10051267/docker,lixiaobing1/docker,xuxinkun/docker,shhsu/docker,akira-baruah/docker,ndeloof/docker,pramodhkp/moby,charleszheng44/moby,AkihiroSuda/docker,yosifkit/docker,bearstech/moby,moul/docker,mixja/docker,scotttlin/docker,JMesser81/docker,johnstep/moby-moby,kencochrane/docker,duglin/docker,jimjag/docker,tophj-ibm/moby,Ramzec/docker,crosbymichael/docker,duglin/docker,ibuildthecloud/docker,yummypeng/docker,prertik/docker,Ramzec/docker,tophj-ibm/docker,tophj-ibm/moby,tmp6154/docker,resin-io/docker,miminar/docker,darrenstahlmsft/docker,coolljt0725/docker,ColinHebert/docker,diogomonica/docker,thaJeztah/docker,bonczj/moby-json-file-logger,crosbymichael/docker,kolyshkin/moby