/*
* Copyright 1995, 2018 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
/*
* Perforce client legal compliance statements
*
*/
# include <stdhdrs.h>
# include <strbuf.h>
# include <strdict.h>
# include <strtable.h>
# include <error.h>
# include <rpc.h>
# include <filesys.h>
# include <handler.h>
# include "client.h"
# include "clientuser.h"
static ErrorId LegalHelp = { ErrorOf( 0, 0, E_INFO, 0, 0 ),
"\n"
" The following are the license statements for code used in\n"
" this program.\n"
"\n"
" See 'p4 help legal' for additional information.\n"
"\n"
" sol2 License\n"
" -----------------------\n"
"\n"
" Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors\n"
"\n"
" Permission is hereby granted, free of charge, to any person obtaining\n"
" a copy of this software and associated documentation files (the\n"
" \"Software\"), to deal in the Software without restriction, including\n"
" without limitation the rights to use, copy, modify, merge, publish,\n"
" distribute, sublicense, and/or sell copies of the Software, and to\n"
" permit persons to whom the Software is furnished to do so, subject to\n"
" the following conditions:\n"
"\n"
" The above copyright notice and this permission notice shall be\n"
" included in all copies or substantial portions of the Software.\n"
"\n"
" THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n"
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n"
" NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n"
" LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n"
" OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n"
" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
"\n"
"\n"
" Lua License\n"
" -----------------------\n"
"\n"
" Copyright (c) 1994-2018 Lua.org, PUC-Rio.\n"
"\n"
" Permission is hereby granted, free of charge, to any person obtaining\n"
" a copy of this software and associated documentation files (the\n"
" \"Software\"), to deal in the Software without restriction, including\n"
" without limitation the rights to use, copy, modify, merge, publish,\n"
" distribute, sublicense, and/or sell copies of the Software, and to\n"
" permit persons to whom the Software is furnished to do so, subject to\n"
" the following conditions:\n"
"\n"
" The above copyright notice and this permission notice shall be\n"
" included in all copies or substantial portions of the Software.\n"
"\n"
" THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n"
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n"
" NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n"
" LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n"
" OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n"
" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
"\n"
"\n"
" cURL License\n"
" -----------------------\n"
"\n"
" This code uses a permissive license. Please use the following\n"
" attribution in the documentation of the open source code.\n"
"\n"
" Copyright (c) 1996 - 2018, Daniel Stenberg, daniel@haxx.se, and many\n"
" contributors, see the THANKS file.\n"
"\n"
" All rights reserved.\n"
"\n"
" Permission to use, copy, modify, and distribute this software for any\n"
" purpose with or without fee is hereby granted, provided that the above\n"
" copyright notice and this permission notice appear in all copies.\n"
"\n"
" THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n"
" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n"
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
" THIRD PARTY RIGHTS. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n"
" BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n"
" ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n"
" CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n"
" SOFTWARE.\n"
"\n"
" Except as contained in this notice, the name of a copyright holder shall\n"
" not be used in advertising or otherwise to promote the sale, use or\n"
" other dealings in this Software without prior written authorization of\n"
" the copyright holder.\n"
"\n"
"\n"
" Lua-cURLv3 License\n"
" -----------------------\n"
"\n"
" Copyright (c) 2014-2018 Alexey Melnichuk\n"
"\n"
" Permission is hereby granted, free of charge, to any person obtaining a\n"
" copy of this software and associated documentation files (the\n"
" \"Software\"), to deal in the Software without restriction, including\n"
" without limitation the rights to use, copy, modify, merge, publish,\n"
" distribute, sublicense, and/or sell copies of the Software, and to permit\n"
" persons to whom the Software is furnished to do so, subject to the\n"
" following conditions:\n"
"\n"
" The above copyright notice and this permission notice shall be included\n"
" in all copies or substantial portions of the Software.\n"
"\n"
" THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n"
" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n"
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n"
" NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n"
" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n"
" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n"
" USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
"\n"
"\n"
" LuaSQLite3 License\n"
" -----------------------\n"
"\n"
" Copyright (C) 2002-2016 Tiago Dionizio, Doug Currie\n"
" All rights reserved.\n"
" Author : Tiago Dionizio <tiago.dionizio@ist.utl.pt>\n"
" Author : Doug Currie <doug.currie@alum.mit.edu>\n"
" Library : lsqlite3 - an SQLite 3 database binding for Lua 5\n"
"\n"
" Permission is hereby granted, free of charge, to any person obtaining\n"
" a copy of this software and associated documentation files (the\n"
" \"Software\"), to deal in the Software without restriction, including\n"
" without limitation the rights to use, copy, modify, merge, publish,\n"
" distribute, sublicense, and/or sell copies of the Software, and to\n"
" permit persons to whom the Software is furnished to do so, subject to\n"
" the following conditions:\n"
"\n"
" The above copyright notice and this permission notice shall be\n"
" included in all copies or substantial portions of the Software.\n"
"\n"
" THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n"
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n"
" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n"
" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n"
" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n"
" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
"\n"
"\n"
" lua-cjson License\n"
" -----------------------\n"
"\n"
" Copyright (c) 2010-2012 Mark Pulford <mark@kyne.com.au>\n"
"\n"
" Permission is hereby granted, free of charge, to any person obtaining\n"
" a copy of this software and associated documentation files (the\n"
" \"Software\"), to deal in the Software without restriction, including\n"
" without limitation the rights to use, copy, modify, merge, publish,\n"
" distribute, sublicense, and/or sell copies of the Software, and to\n"
" permit persons to whom the Software is furnished to do so, subject to\n"
" the following conditions:\n"
"\n"
" The above copyright notice and this permission notice shall be\n"
" included in all copies or substantial portions of the Software.\n"
"\n"
" THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n"
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n"
" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n"
" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n"
" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n"
" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
"\n"
"\n"
" libc++ and libc++abi License\n"
" -----------------------\n"
"\n"
" These libraries are dual-licensed:\n"
"\n"
" The University of Illinois/NCSA Open Source License (NCSA)\n"
" Developed under the LLVM Project\n"
"\n"
" Permission is hereby granted, free of charge, to any person obtaining a\n"
" copy of this software and associated documentation files (the\n"
" \"Software\"), to deal with the Software without restriction, including\n"
" without limitation the rights to use, copy, modify, merge, publish,\n"
" distribute, sublicense, and/or sell copies of the Software, and to\n"
" permit persons to whom the Software is furnished to do so, subject to the\n"
" following conditions:\n"
"\n"
" Redistributions of source code must retain the above copyright notice,\n"
" this list of conditions and the following disclaimers.\n"
" Redistributions in binary form must reproduce the above copyright\n"
" notice, this list of conditions and the following disclaimers in the\n"
" documentation and/or other materials provided with the distribution.\n"
" Neither the names of <Name of Development Group, Name of Institution>,\n"
" nor the names of its contributors may be used to endorse or promote\n"
" products derived from this Software without specific prior written\n"
" permission.\n"
"\n"
" THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n"
" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n"
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n"
" IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR\n"
" ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n"
" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n"
" SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.\n"
"\n"
" MIT\n"
" Developed under the LLVM Project\n"
"\n"
" Permission is hereby granted, free of charge, to any person obtaining a\n"
" copy of this software and associated documentation files (the\n"
" \"Software\"), to deal in the Software without restriction, including\n"
" without limitation the rights to use, copy, modify, merge, publish,\n"
" distribute, sublicense, and/or sell copies of the Software, and to permit\n"
" persons to whom the Software is furnished to do so, subject to the\n"
" following conditions:\n"
"\n"
" The above copyright notice and this permission notice shall be included\n"
" in all copies or substantial portions of the Software.\n"
"\n"
" THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n"
" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n"
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n"
" NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n"
" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n"
" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n"
" USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
};
int
clientLegalHelp( Error *e )
{
ClientUser cuser;
e->Set( LegalHelp );
cuser.Message( e );
e->Clear();
return 0;
}