软件著作权源代码两篇.doc

  • 格式:doc
  • 大小:39.50 KB
  • 文档页数:7

软件著作权源代码两篇第1条软件版权源代码注释常见的源代码包括C语言、VB、C、JA V A、.NET等。

提交的代码必须是源代码的初始加载程序,IncludeIncludeIncludeIncludeIncludeIncludeIncludeIncludeDefenes _ main 1 IncludeIndifiedCludeDifStaticBs _ boolean _ twont _ statstBs _ false;static char program _ name[TYBS _ DIR _ NAMEmax]“已命名”;static charabsolute _ conffile[TYBS _ DIR _ PATHMAX];staticcharsaved _命令行[512];静态版本[512];staticunsignedintmaxsocks0vourins _ main _ earlywarningconst char * at,.{ va _ list args;va_startargs,at;ifns _ g _ LctxNull { TYBS _ LOG _ v writens _ g _ lctx,NS _ LOGCATEGORY _ GENERAL,NS _ LOGMODULE _ MAIN,TYBS_LOG_W ARNING,at,args}否则{ fprintfstderr,” s “,program _ namevfprintfstderr,at,args。

fprintfstderr,” \ n “;fstderr。

} va _ endargs} V ortens _ main _ earlycatalconschar * at,.{ va _ list args;va_startargs,at;ifns _ g _ LctxNull { TYBS _ LOG _ v writens _ g _ lctx,NS _ LOGCATEGORY _ GENERAL,NS _ LOGMODULE _ MAIN,TYBS_LOG_CRITICAL,at,argstybs_log_writens_g_lctx,NS _ LOGCATEGORY _ GENERAL,NS _ LOGMODULE _ MAIN,TYBS_LOG_CRITICAL,“exing duetoearlycata lerror”;}否则{ fprintfstderr,” s “,program _endargsexit1} static voice assertion _ failed const char *文件,intline,tybs _ assertiontype _ ttype,const char * cond { ifns _ g _ LctxNull { tybs _ assertion _ SetcallbackNull;tybs_log_writens_g_lctx,NS _ LOGCATEGORY _ GENERAL,NS _ LOGMODULE _ MAIN,TYBS_LOG_CRITICAL,“sdssfailed”,文件,行,tybs_assertion_typetotexttype,cond。

tybs_log_writens_g_lctx,NS _ LOGCATEGORY _ GENERAL,NS _ LOGMODULE _ MAIN,TYBS_LOG_CRITICAL,“exing duetoassertification failure”;}否则{ fprintfstderr,” sdssfailed\n “,文件,行,tybs_assertion_typetotexttype,cond。

fstderr。

} ifns _ g _ coreokabortexit1} static void library _ fatal _ error const char *文件,intline,constchar*at,va_listargsTYBS_AT_PRINTF3,0;static void library _ fatal _ error const char *文件,intline,constchar*at,va _ list args { ifns _ g _ LctxNull { tybs _ error _ SetsTaskaNull;tybs_log_writens_g_lctx,NS _ LOGCATEGORY _ GENERAL,NS _ LOGMODULE _ MAIN,TYBS_LOG_CRITICAL,“sd宿命论错误”,文件,行;tybs_log_vwritens_g_lctx,NS _ LOGCATEGORY _ GENERAL,NS _ LOGMODULE _ MAIN,TYBS_LOG_CRITICAL,at,argstybs_log_writens_g_lctx,NS _ LOGCATEGORY _ GENERAL,NS _ LOGMODULE _ MAIN,TYBS_LOG_CRITICAL,“exing duetoftalerrorinlibrary”;}否则{ fprintfstderr,”sd宿命论错误”,文件,coreokabortexit1} static virtual library _ except _ error const char *文件,intline,constchar*at,va_listargsTYBS_AT_PRINTF3,0;static void library _ except _ ERROR const char *文件,intline,constchar*at,va _ list args { ifns _ g _ LctxNull { Tybs _ LOG _ writens _ g _ lctx,NS _ LOGCATEGORY _ GENERAL,NS _ LOGMODULE _ MAIN,TYBS_LOG_ERROR,” sdunexpectederror “,文件,行;tybs_log_vwritens_g_lctx,NS _ LOGCATEGORY _ GENERAL,NS _ LOGMODULE _ MAIN,TYBS_LOG_ERROR,at,args}否则{ fprintfstderr,”sd宿命论错误”,文件,行;vfprintfstderr,at,args。

fprintfstderr,” \ n “;fstderr。

} } staticulativelwresd _ usagevoid { fprintfsderr,” usagelwresd[-4 |-6][-cconfile |-Cresolvconfile]” “[-ddebuglevel]\ n “ “[-f |-g][-nnnumber _ of _ CPUs][-pport]” “[-Plisten-port][-s]\ n “ “[-tchrootdir][-uusername][-ipid file]\ n “ “[-m { usage | trace | record | size | mctx }。

} static vouriusagevoid { ifns _ g _ lwresdonly { lwresd _ usage;返回;} fprintfstderr,” usagenmed[-4 |-6][-cconfile][-ddebuglevel]” “[-f |-g][-nnnumber _ of _ CPU]\ n “ “[-pport][-s][-tchrootdir][-uusername]\ n “ “[-m {用法|跟踪|记录|大小| mctx }]\ n “;[]{ inti;char * src夏令时;char * eob[]” .”;tybs _ boolean _ tquotedTYBS _ FALSEdstsaved _命令行;eob saved _ command _ linesize of saved _ command _ line;fori1inamegotofound} } ns _ main _ early catal “ unrecognized flag .* s “,arglen,argfoundif * end \0breakargend1} } static voidparse _ command _ lineintargc,char * argv[]{ intch;intporttybs _ boolean _ TDIsable 6 Tybs _ FALSE;tybs _ boolean _ Tdisable 4 tybs _ FALSE;save_command_lineargc,argvtybs _ command line _ ErrPrintybs _ FALSE;while tech tybs _ command line _ parse argc,argv,” 46 CCdfgilmnpp “ “ SSttuVVx “-1 { switch ch { case 4 ifdisable 4 ns _ main _ early catal “ can not specific-4 and-6 “;iftybs _ net _ ProcePv4Tybs _ R _ Successns _ main _ early catal “ IPv4NotSupportedByos “;tybs _ net _ disableipv6禁用6个字节_真;休息;case 6 ifdisable 6 ns _ main _ early catal “ cannotspecify-4 and-6 “;iftybs _ net _ ProcePv6 Tybs _ R _ Successns _ main _ early catal “ IPv6 NotSupportedByos “;tybs_net_disableipv4。

禁用4字节_真;休息;case cns _ g _ conffiletybs _ command line _ argument;lwr SD _ g _ conffiletybs _ command line _ argument;ifwresd _ g _ user esolvconfns _ main _ early catal “无法指定-cand-C “;ns _ g _ conffilesetTYBS _ TRUE休息;caseClwresd _ g _ resolvecoffiletybs _ command line _ argument;ifns _ g _ conffilesetns _ main _ early catal “无法指定-cand-C “;lwr SD _ g _ UseresolvConftybs _ TRUE;休息;case DNS _ g _ debugelevelparse _ int tybs _ command line _ argument,“debugelevel”;休息;casefns _ g _ foregroundTYBS _ TRUE休息;casegns _ g _ foregroundTYBS _ TRUEns _ g _ logstderrTYBS _ TRUE休息;/* XXHBEW-ishouldberemoved */caseilwresd _ g _ defaultpidfiletybs _ command line _ argument;休息;caselns _ g _ lwresdonlyTYBS _ TRUE休息;casemset _ flagstybs _ command line _ argument,mem_debug_flags,breakCaeN/*弃用.*/case nns _ g _ cpusparse _ int tybs _ command line _ argument,“number of pus”;ifns _ g _ cpus0ns _ g _ cpus1休息;casepportparse _ int tybs _ command line _ argument,“port”;ifport 65535 ns _ main _ early catal “ portsoutofroge “,tybs _ commandline _ argumentns _ g _ port端口;休息;/* XXXBEWShould-Pberemoved */casePportparse _ int tybs _ command line _ argument,” port “;ifport 65535 ns _ main _ early catal “ portsoutofroge “,tybs _ commandline _ argumentlwresd _ g _ listenportport休息;caseswant _ statsTYBS _ TRUE休息;casemaxsocksparse _ int tybs _ command line _ argument,“maxnumberofsockets”;休息;casetns _ g _ chrootditybs _ command line _ argument;休息;caseTifstrcmptybs _ command line _ argument,” client test “ 0ns _ g _ ClientTestBs _ TRUE;elsefprintfstderr,” unknown-Tflags\n “,tybs _ commandline _ argument休息;caseuns _ g _ usernametybs _ command line _ argument;休息;casevprintf”BINDs\n “,ns _ g _ versionexit0caseVprintf”BINDsbuiltwiths\n “,ns_g_version,ns _ g _ configargsexit0caseusageif ybs _ command line _ option exit 0;ns _ main _ early catal “ unknown option-c “,tybs _ commandline _ optiondefaultns _ main _ early catal “ parsingoptions sretrenedd “,ch;} } argc-tybs _ command line _ index;argvtybs_commandline_index。