-L --license display software license\n\ -l --newline add additional newline\n\ -n --newfile write to new file\n\ infile original file in new file mode\n\ outfile output file in new file mode\n\ -o --oldfile write to old file\n\ file ... files to convert in old file mode\n\ -q --quiet quiet mode, suppress all warnings\n\ always on in stdio mode\n\ -V --version display version number\n"), VER_REVISION, VER_DATE); } void PrintLicense(void) { fprintf(stderr, _("\ Copyright (c) 1994-1995 Benjamin Lin\n\ Copyright (c) 2009-2010 Erwin Waterlander\n\ All rights reserved.\n\n\ \ Redistribution and use in source and binary forms, with or without\n\ modification, are permitted provided that the following conditions\n\ are met:\n\ 1. Redistributions of source code must retain the above copyright\n\ notice, this list of conditions and the following disclaimer.\n\ 2. Redistributions in binary form must reproduce the above copyright\n\ notice in the documentation and/or other materials provided with\n\ the distribution.\n\n\ \ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY\n\ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n\ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n\
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $TSHeader: src/sbin/growfs/growfs.c,v 1.5 2000/12/12 19:31:00 tomsoft Exp $ * */ #ifndef lint static const char copyright[] = "@(#) Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz\n\ Copyright (c) 1980, 1989, 1993 The Regents of the University of California.\n\ All rights reserved.\n"; #endif /* not lint */ #include <sys/cdefs.h> __FBSDID("$FreeBSD: releng/10.2/sbin/growfs/growfs.c 284669 2015-06-21 06:49:44Z trasz $"); #include <sys/param.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/disk.h> #include <sys/ucred.h> #include <sys/mount.h> #include <stdio.h> #include <paths.h>
char *usage = "usage: %s [-hnVv] zip [...]\n"; char help_head[] = PROGRAM " (" PACKAGE ") by Dieter Baron and Thomas Klausner\n\n"; char help[] = "\n\ -h display this help message\n\ -n don't actually change archives, just print what would be done\n\ -V display version number\n\ -v verbose\n\ \n\ Report bugs to <*****@*****.**>.\n"; char version_string[] = PROGRAM " (" PACKAGE " " VERSION ")\n\ Copyright (C) 2010 Dieter Baron and Thomas Klausner\n\ " PACKAGE " comes with ABSOLUTELY NO WARRANTY, to the extent permitted by law.\n"; #define OPTIONS "hnVv" static int torrentzip(const char *, int); int main(int argc, char * const argv[]) { int err; int c; int flags;
-L --license display software license\n\ -l --newline add additional newline\n\ -n --newfile write to new file\n\ infile original file in new file mode\n\ outfile output file in new file mode\n\ -o --oldfile write to old file\n\ file ... files to convert in old file mode\n\ -q --quiet quiet mode, suppress all warnings\n\ always on in stdio mode\n\ -V --version display version number\n"), VER_REVISION, VER_DATE); } void PrintLicense(void) { fprintf(stderr, _("\ Copyright (c) 1994-1995 Benjamin Lin\n\ Copyright (c) 1998 Bernd Johannes Wuebben (Version 3.0)\n\ Copyright (c) 1998 Christian Wurll (Version 3.1)\n\ Copyright (c) 2009-2010 Erwin Waterlander\n\ All rights reserved.\n\n\ \ Redistribution and use in source and binary forms, with or without\n\ modification, are permitted provided that the following conditions\n\ are met:\n\ 1. Redistributions of source code must retain the above copyright\n\ notice, this list of conditions and the following disclaimer.\n\ 2. Redistributions in binary form must reproduce the above copyright\n\ notice in the documentation and/or other materials provided with\n\ the distribution.\n\n\ \ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY\n\
/* Print the version number. */ /* $Id: version.c,v 1.13 2003/05/18 08:25:17 eggert Exp $ */ #define XTERN extern #include <common.h> #undef XTERN #define XTERN #include <version.h> static char const copyright_string[] = "\ Copyright (C) 1988 Larry Wall\n\ Copyright (C) 2003 Free Software Foundation, Inc."; static char const free_software_msgid[] = "\ This program comes with NO WARRANTY, to the extent permitted by law.\n\ You may redistribute copies of this program\n\ under the terms of the GNU General Public License.\n\ For more information about these matters, see the file named COPYING."; static char const authorship_msgid[] = "\ written by Larry Wall and Paul Eggert"; void version (void) { printf ("%s %s\n%s\n\n%s\n\n%s\n", PACKAGE_NAME, PACKAGE_VERSION, copyright_string, free_software_msgid, authorship_msgid); }
extract the correct strings. These strings are actually referenced by a field name in the genshelloptOptions structure noted in the comments below. The literal text is defined in genshellopt_opt_strs. NOTE: the strings below are segmented with respect to the source string genshellopt_opt_strs. The strings above are handed off for translation at run time a paragraph at a time. Consequently, they are presented here for translation a paragraph at a time. ALSO: often the description for an option will reference another option by name. These are set off with apostrophe quotes (I hope). Do not translate option names. */ /* referenced via genshelloptOptions.pzCopyright */ puts(_("genshellopt 1\n\ Copyright (C) 1999-2014 Bruce Korb, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the GNU Lesser General Public License,\n\ version 2 or later <http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html>\n")); /* referenced via genshelloptOptions.pzCopyNotice */ puts(_("The genshellopt library is free software; you can redistribute it and/or\n\ modify it under the terms of the GNU Library General Public License as\n\ published by the Free Software Foundation; either version 2 of the License,\n\ or (at your option) any later version.\n\n")); puts(_("This library is distributed in the hope that it will be useful, but WITHOUT\n\ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n\ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public\n\ License for more details.\n\n")); puts(_("You should have received a copy of the GNU Library General Public License\n\ along with this library; if not, see\n\
Returns: None --*/ { printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION); } VOID Usage ( void ) { printf ("Usage: GenPage.exe [options] EfiLoaderImageName \n\n\ Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.\n\n\ Utility to generate the EfiLoader image containing a page table.\n\n\ optional arguments:\n\ -h, --help Show this help message and exit\n\ --version Show program's version number and exit\n\ -d [DEBUG], --debug [DEBUG]\n\ Output DEBUG statements, where DEBUG_LEVEL is 0 (min)\n\ - 9 (max)\n\ -v, --verbose Print informational statements\n\ -q, --quiet Returns the exit code, error messages will be\n\ displayed\n\ -s, --silent Returns only the exit code; informational and error\n\ messages are not displayed\n\ -o OUTPUT_FILENAME, --output OUTPUT_FILENAME\n\ Output file contain both the non-page table part and\n\ the page table\n\
* * Initial code by Alex Jakulin, Aug. 1995 * * Modified and optimized: Gadiel Seroussi, October 1995 - ... * * Modified and added Restart marker and input tables by: * David Cheng-Hsiu Chu, and Ismail R. Ismail march 1999 */ #include <time.h> #include "global.h" char *disclaimer = "\ This program is Copyright (c) University of British Columbia.\n\ All rights reserved. It may be freely redistributed in its\n\ entirety provided that this copyright notice is not removed.\n\ It may not be sold for profit or incorporated in commercial programs\n\ without the written permission of the copyright holder.\n\ "; /* I/O files */ FILE *in, *out; FILE *c_in[MAX_COMPONENTS]; FILE *c_out[MAX_COMPONENTS]; FILE *msgfile = stdout; /* Context quantization thresholds - initially unset */
* contians the user interface routines. * * Author: Mauricio A. Hernandez * Computer Science Department * Columbia University * University of Illinois at Springfield * * Copyright (c) 1996, 1997 by Mauricio A. Hernandez * All rights reserved. */ static char RCSid[] = "\ $Id: zipfgen_dbgen.c,v 2.0 1997/06/29 02:02:38 mauricio Exp mauricio $\ "; static char copyright[] = "\ Copyright (c) 1996, 1997 by Mauricio A. Hernandez. All rights reserved.\ "; #include <curses.h> #include <math.h> #include <string.h> #include <ctype.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> #include "gen_dbgen.h" #include "keyboard.h" #ifdef DEBUG #define DBG(args) args #endif
* of the GNU General Public License v2 or (at your option) any later version. */ #include <Python.h> #include <sanlock.h> #include <sanlock_resource.h> #include <sanlock_admin.h> #include <sanlock_direct.h> #ifndef __unused #define __unused __attribute__ ((unused)) #endif /* Sanlock module */ PyDoc_STRVAR(pydoc_sanlock, "\ Copyright (C) 2010-2011 Red Hat, Inc. All rights reserved.\n\ This copyrighted material is made available to anyone wishing to use,\n\ modify, copy, or redistribute it subject to the terms and conditions\n\ of the GNU General Public License v2 or (at your option) any later version."); PyObject *py_module; /* Sanlock exception */ static PyObject *py_exception; static void __set_exception(int en, char *msg) { char *err_name; PyObject *exc_tuple; if (en < 0 && en > -200) {
int main() { Copyright(); //输出程序信息 char *s = (char *)malloc(MAXLEN * sizeof(char)); //用来保存输入数据 char *backups_s = s; //备份s指针 用于释放内存 char *filepath = (char *)malloc(MAXLEN * sizeof(char)); //用来储存文件路径 char *backups_p = filepath; while (1) { Pre(); s = backups_s; Read_Argv(s); if (*s != '-') { gets(s); Error(); continue; } s ++; filepath = backups_p; if (Equal(s , "index")) { int t; scanf("%d" , &t); if (t == 1) printf("---Open the index function successfully.---\n"); else if (t == 0) printf("---Close the index function successfully.---\n"); else Error(); gets(s); continue; } else if (*(s + 1) != '\0') { gets(s); Error(); continue; } switch (*s) { case 'c' : Get_Path(filepath); Create_Table(filepath); break; case 'i' : s = backups_s; Get_Table(s); //第二个参数 表名 Get_Path(filepath); Import_Data(s , filepath); break; case 's' : Get_Path(filepath); Select(filepath); break; case 'u' : Get_Path(filepath); Update(filepath); break; case 'd' : Get_Path(filepath); Delete(filepath); break; case 'h' : Help(); break; case 'q' : Exit_pro(); free(backups_s); free(backups_p); Free(); return 0; default : gets(s); Error(); break; } gets(s); } return 0; }
int main(int argc, char **argv) { stl_file stl_in; float tolerance = 0; float increment = 0; float x_trans; float y_trans; float z_trans; float scale_factor = 0; float rotate_x_angle = 0; float rotate_y_angle = 0; float rotate_z_angle = 0; int c; char *program_name; char *binary_name = NULL; char *ascii_name = NULL; char *merge_name = NULL; char *off_name = NULL; char *dxf_name = NULL; char *vrml_name = NULL; int fixall_flag = 1; /* Default behavior is to fix all. */ int exact_flag = 0; /* All checks turned off by default. */ int tolerance_flag = 0; /* Is tolerance specified on cmdline */ int nearby_flag = 0; int remove_unconnected_flag = 0; int fill_holes_flag = 0; int normal_directions_flag = 0; int normal_values_flag = 0; int reverse_all_flag = 0; int write_binary_stl_flag = 0; int write_ascii_stl_flag = 0; int generate_shared_vertices_flag = 0; int write_off_flag = 0; int write_dxf_flag = 0; int write_vrml_flag = 0; int translate_flag = 0; int scale_flag = 0; int rotate_x_flag = 0; int rotate_y_flag = 0; int rotate_z_flag = 0; int mirror_xy_flag = 0; int mirror_yz_flag = 0; int mirror_xz_flag = 0; int merge_flag = 0; int help_flag = 0; int version_flag = 0; int iterations = 2; /* Default number of iterations. */ int increment_flag = 0; char *input_file = NULL; int ret = 0; enum {rotate_x = 1000, rotate_y, rotate_z, merge, help, version, mirror_xy, mirror_yz, mirror_xz, scale, translate, reverse_all, off_file, dxf_file, vrml_file }; struct option long_options[] = { {"exact", no_argument, NULL, 'e'}, {"nearby", no_argument, NULL, 'n'}, {"tolerance", required_argument, NULL, 't'}, {"iterations", required_argument, NULL, 'i'}, {"increment", required_argument, NULL, 'm'}, {"remove-unconnected", no_argument, NULL, 'u'}, {"fill-holes", no_argument, NULL, 'f'}, {"normal-directions", no_argument, NULL, 'd'}, {"normal-values", no_argument, NULL, 'v'}, {"no-check", no_argument, NULL, 'c'}, {"reverse-all", no_argument, NULL, reverse_all}, {"write-binary-stl", required_argument, NULL, 'b'}, {"write-ascii-stl", required_argument, NULL, 'a'}, {"write-off", required_argument, NULL, off_file}, {"write-dxf", required_argument, NULL, dxf_file}, {"write-vrml", required_argument, NULL, vrml_file}, {"translate", required_argument, NULL, translate}, {"scale", required_argument, NULL, scale}, {"x-rotate", required_argument, NULL, rotate_x}, {"y-rotate", required_argument, NULL, rotate_y}, {"z-rotate", required_argument, NULL, rotate_z}, {"xy-mirror", no_argument, NULL, mirror_xy}, {"yz-mirror", no_argument, NULL, mirror_yz}, {"xz-mirror", no_argument, NULL, mirror_xz}, {"merge", required_argument, NULL, merge}, {"help", no_argument, NULL, help}, {"version", no_argument, NULL, version}, {NULL, 0, NULL, 0} }; program_name = argv[0]; while((c = getopt_long(argc, argv, "et:i:m:nufdcvb:a:", long_options, (int *) 0)) != EOF) { switch(c) { case 0: /* If *flag is not null */ break; case 'e': exact_flag = 1; fixall_flag = 0; break; case 'n': nearby_flag = 1; fixall_flag = 0; break; case 't': tolerance_flag = 1; tolerance = atof(optarg); break; case 'i': iterations = atoi(optarg); break; case 'm': increment_flag = 1; increment = atof(optarg); break; case 'u': remove_unconnected_flag = 1; fixall_flag = 0; break; case 'f': fill_holes_flag = 1; fixall_flag = 0; break; case 'd': normal_directions_flag = 1; fixall_flag = 0; break; case 'v': normal_values_flag = 1; fixall_flag = 0; break; case 'c': fixall_flag = 0; break; case reverse_all: reverse_all_flag = 1; fixall_flag = 0; break; case 'b': write_binary_stl_flag = 1; binary_name = optarg; /* I'm not sure if this is safe. */ break; case 'a': write_ascii_stl_flag = 1; ascii_name = optarg; /* I'm not sure if this is safe. */ break; case off_file: generate_shared_vertices_flag = 1; write_off_flag = 1; off_name = optarg; break; case vrml_file: generate_shared_vertices_flag = 1; write_vrml_flag = 1; vrml_name = optarg; break; case dxf_file: write_dxf_flag = 1; dxf_name = optarg; break; case translate: translate_flag = 1; sscanf(optarg, "%f,%f,%f", &x_trans, &y_trans, &z_trans); break; case scale: scale_flag = 1; scale_factor = atof(optarg); break; case rotate_x: rotate_x_flag = 1; rotate_x_angle = atof(optarg); break; case rotate_y: rotate_y_flag = 1; rotate_y_angle = atof(optarg); break; case rotate_z: rotate_z_flag = 1; rotate_z_angle = atof(optarg); break; case mirror_xy: mirror_xy_flag = 1; break; case mirror_yz: mirror_yz_flag = 1; break; case mirror_xz: mirror_xz_flag = 1; break; case merge: merge_flag = 1; merge_name = optarg; break; case help: help_flag = 1; break; case version: version_flag = 1; break; default: usage(1, program_name); return 1; } } if(help_flag) { usage(0, program_name); return 0; } if(version_flag) { printf("ADMesh - version " VERSION "\n"); return 0; } if(optind == argc) { printf("No input file name given.\n"); usage(1, program_name); return 1; } else { input_file = argv[optind]; } printf("\ ADMesh version " VERSION ", Copyright (C) 1995, 1996 Anthony D. Martin\n\ ADMesh comes with NO WARRANTY. This is free software, and you are welcome to\n\ redistribute it under certain conditions. See the file COPYING for details.\n"); printf("Opening %s\n", input_file); stl_open(&stl_in, input_file); stl_exit_on_error(&stl_in); if(rotate_x_flag) { printf("Rotating about the x axis by %f degrees...\n", rotate_x_angle); stl_rotate_x(&stl_in, rotate_x_angle); } if(rotate_y_flag) { printf("Rotating about the y axis by %f degrees...\n", rotate_y_angle); stl_rotate_y(&stl_in, rotate_y_angle); } if(rotate_z_flag) { printf("Rotating about the z axis by %f degrees...\n", rotate_z_angle); stl_rotate_z(&stl_in, rotate_z_angle); } if(mirror_xy_flag) { printf("Mirroring about the xy plane...\n"); stl_mirror_xy(&stl_in); } if(mirror_yz_flag) { printf("Mirroring about the yz plane...\n"); stl_mirror_yz(&stl_in); } if(mirror_xz_flag) { printf("Mirroring about the xz plane...\n"); stl_mirror_xz(&stl_in); } if(scale_flag) { printf("Scaling by factor %f...\n", scale_factor); stl_scale(&stl_in, scale_factor); } if(translate_flag) { printf("Translating to %f, %f, %f ...\n", x_trans, y_trans, z_trans); stl_translate(&stl_in, x_trans, y_trans, z_trans); } if(merge_flag) { printf("Merging %s with %s\n", input_file, merge_name); /* Open the file and add the contents to stl_in: */ stl_open_merge(&stl_in, merge_name); } stl_repair(&stl_in, fixall_flag, exact_flag, tolerance_flag, tolerance, increment_flag, increment, nearby_flag, iterations, remove_unconnected_flag, fill_holes_flag, normal_directions_flag, normal_values_flag, reverse_all_flag, 1); if(generate_shared_vertices_flag) { printf("Generating shared vertices...\n"); stl_generate_shared_vertices(&stl_in); } if(write_off_flag) { printf("Writing OFF file %s\n", off_name); stl_write_off(&stl_in, off_name); if (stl_in.error) { stl_clear_error(&stl_in); ret = 1; } } if(write_dxf_flag) { printf("Writing DXF file %s\n", dxf_name); stl_write_dxf(&stl_in, dxf_name, "Created by ADMesh version " VERSION); if (stl_in.error) { stl_clear_error(&stl_in); ret = 1; } } if(write_vrml_flag) { printf("Writing VRML file %s\n", vrml_name); stl_write_vrml(&stl_in, vrml_name); if (stl_in.error) { stl_clear_error(&stl_in); ret = 1; } } if(write_ascii_stl_flag) { printf("Writing ascii file %s\n", ascii_name); stl_write_ascii(&stl_in, ascii_name, "Processed by ADMesh version " VERSION); if (stl_in.error) { stl_clear_error(&stl_in); ret = 1; } } if(write_binary_stl_flag) { printf("Writing binary file %s\n", binary_name); stl_write_binary(&stl_in, binary_name, "Processed by ADMesh version " VERSION); if (stl_in.error) { stl_clear_error(&stl_in); ret = 1; } } stl_stats_out(&stl_in, stdout, input_file); stl_close(&stl_in); if (ret) fprintf(stderr, "Some part of the procedure failed, see the above log for more information about what happened.\n"); return ret; }
extract the correct strings. These strings are actually referenced by a field name in the tcpcapinfoOptions structure noted in the comments below. The literal text is defined in tcpcapinfo_opt_strs. NOTE: the strings below are segmented with respect to the source string tcpcapinfo_opt_strs. The strings above are handed off for translation at run time a paragraph at a time. Consequently, they are presented here for translation a paragraph at a time. ALSO: often the description for an option will reference another option by name. These are set off with apostrophe quotes (I hope). Do not translate option names. */ /* referenced via tcpcapinfoOptions.pzCopyright */ puts(_("tcpcapinfo (Tcpreplay Suite)\n\ Copyright (C) 2000-2012 Aaron Turner and Fred Klassen, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the GNU General Public License,\n\ version 3 or later <http://gnu.org/licenses/gpl.html>\n")); /* referenced via tcpcapinfoOptions.pzCopyNotice */ puts(_("tcpcapinfo is free software: you can redistribute it and/or modify it under\n\ the terms of the GNU General Public License as published by the Free\n\ Software Foundation, either version 3 of the License, or (at your option)\n\ any later version.\n\n")); puts(_("tcpcapinfo is distributed in the hope that it will be useful, but WITHOUT\n\ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n\ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\n\ more details.\n\n")); puts(_("You should have received a copy of the GNU General Public License along\n\ with this program. If not, see <http://www.gnu.org/licenses/>.\n"));
extract the correct strings. These strings are actually referenced by a field name in the ntpsnmpdOptions structure noted in the comments below. The literal text is defined in ntpsnmpd_opt_strs. NOTE: the strings below are segmented with respect to the source string ntpsnmpd_opt_strs. The strings above are handed off for translation at run time a paragraph at a time. Consequently, they are presented here for translation a paragraph at a time. ALSO: often the description for an option will reference another option by name. These are set off with apostrophe quotes (I hope). Do not translate option names. */ /* referenced via ntpsnmpdOptions.pzCopyright */ puts(_("ntpsnmpd 4.2.8\n\ Copyright (C) 1970-2014 The University of Delaware, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the NTP License, copies of which\n\ can be seen at:\n")); puts(_(" <http://ntp.org/license>\n\ <http://opensource.org/licenses/ntp-license.php>\n")); /* referenced via ntpsnmpdOptions.pzCopyNotice */ puts(_("Permission to use, copy, modify, and distribute this software and its\n\ documentation for any purpose with or without fee is hereby granted,\n\ provided that the above copyright notice appears in all copies and that\n\ both the copyright notice and this permission notice appear in supporting\n\ documentation, and that the name The University of Delaware not be used in\n\ advertising or publicity pertaining to distribution of the software without\n\ specific, written prior permission. The University of Delaware makes no\n\ representations about the suitability this software for any purpose. It is\n\
#include <zmq.h> #endif #include "errmac.h" #include "zx.h" #include "zxid.h" #include "zxidutil.h" #include "c/zxidvers.h" #include "c/zx-data.h" #include "c/zx-const.h" #include "c/zx-ns.h" const char* help = "zxmqtest - ZX Message Queue tester - R" ZXID_REL "\n\ Copyright (c) 2010-2011 Sampo Kellomaki ([email protected]), All Rights Reserved.\n\ NO WARRANTY, not even implied warranties. Licensed under Apache License v2.0\n\ See http://www.apache.org/licenses/LICENSE-2.0\n\ Send well researched bug reports to the author. Home: zxid.org\n\ \n\ Usage: zxmqtest [options]\n\ -l Listener mode\n\ -r N Run test number N. 1 = IBM cert dec, 2 = IBM cert enc dec\n\ -i N Number of iterations to benchmark (default 1).\n\ -t SECONDS Timeout. Default: 0=no timeout.\n\ -c CIPHER Enable crypto on DTS interface using specified cipher. Use '?' for list.\n\ -k FDNUMBER File descriptor for reading symmetric key. Use 0 for stdin.\n\ -egd PATH Specify path of Entropy Gathering Daemon socket, default\n\ on Solaris: /tmp/entropy; Linux: /dev/urandom\n\ See http://www.lothar.com/tech/crypto/ or\n\ http://www.aet.tu-cottbus.de/personen/jaenicke/postfix_tls/prngd.html\n\
/* * main * * * Function: * Speech encoder main program * * Usage: encoder speech_file bitstream_file mode dtx mode_file * * Format for speech_file: * Speech is read from a binary file of 16 bits data. * * Format for ETSI bitstream file: * 1 word (2-byte) for the TX frame type * 244 words (2-byte) containing 244 bits. * Bit 0 = 0x0000 and Bit 1 = 0x0001 * 1 word (2-byte) for the mode indication * 4 words for future use, currently written as zero * * Format for 3GPP bitstream file: * Holds mode information and bits packed to octets. * Size is from 1 byte to 31 bytes. * * ETSI bitstream file format is defined using ETSI as preprocessor * definition * * mode : MR475, MR515, MR59, MR67, MR74, MR795, MR102, MR122 * mode_file : reads mode information from a file * Returns: * 0 */ int main (int argc, char * argv[]){ /* file strucrures */ FILE * file_speech = NULL; FILE * file_encoded = NULL; FILE * file_mode = NULL; /* input speech vector */ short speech[160]; /* counters */ int byte_counter, frames = 0, bytes = 0; /* pointer to encoder state structure */ int *enstate; /* requested mode */ enum Mode req_mode = MR122; int dtx = 0; /* temporary variables */ char mode_string[9]; long mode_tmp; /* bitstream filetype */ #ifndef ETSI unsigned char serial_data[32]; #else short serial_data[250] = {0}; #endif /* Process command line options */ if ((argc == 5) || (argc == 4)){ file_encoded = fopen(argv[argc - 1], "wb"); if (file_encoded == NULL){ Usage(argv); return 1; } file_speech = fopen(argv[argc - 2], "rb"); if (file_speech == NULL){ fclose(file_encoded); Usage(argv); return 1; } if (strncmp(argv[argc - 3], "-modefile=", 10) == 0){ file_mode = fopen(&argv[argc - 3][10], "rt"); if (file_mode == NULL){ Usage(argv); fclose(file_speech); fclose(file_encoded); return 1; } } else { mode_tmp = strtol(&argv[argc - 3][2], NULL, 0); for (req_mode = 0; req_mode < 8; req_mode++){ if (mode_tmp == modeConv[req_mode]) break; } if (req_mode == 8){ Usage(argv); fclose(file_speech); fclose(file_encoded); if (file_mode != NULL) fclose(file_mode); return 1; } } if (argc == 5){ if ((strcmp(argv[1], "-dtx") != 0)){ Usage(argv); fclose(file_speech); fclose(file_encoded); if (file_mode != NULL){ fclose(file_mode); } return 1; } else { dtx = 1; } } } else { Usage(argv); return 1; } enstate = Encoder_Interface_init(dtx); Copyright(); #ifndef VAD2 fprintf( stderr, "%s\n", "Code compiled with VAD option: VAD1"); #else fprintf( stderr, "%s\n", "Code compiled with VAD option: VAD2"); #endif #ifndef ETSI #ifndef IF2 /* write magic number to indicate single channel AMR file storage format */ bytes = fwrite(AMR_MAGIC_NUMBER, sizeof(char), strlen(AMR_MAGIC_NUMBER), file_encoded); #endif #endif /* read file */ while (fread( speech, sizeof (Word16), 160, file_speech ) > 0) { /* read mode */ if (file_mode != NULL){ req_mode = 8; if (fscanf(file_mode, "%9s\n", mode_string) != EOF) { mode_tmp = strtol(&mode_string[2], NULL, 0); for (req_mode = 0; req_mode < 8; req_mode++){ if (mode_tmp == modeConv[req_mode]){ break; } } } if (req_mode == 8){ break; } } frames ++; /* call encoder */ byte_counter = Encoder_Interface_Encode(enstate, req_mode, speech, serial_data, 0); bytes += byte_counter; fwrite(serial_data, sizeof (UWord8), byte_counter, file_encoded ); fflush(file_encoded); } Encoder_Interface_exit(enstate); #ifndef ETSI #ifdef IF2 fprintf ( stderr, "\n%s%i%s%i%s\n", "Frame structure AMR IF2: ", frames, " frames, ", bytes, " bytes."); #else fprintf ( stderr, "\n%s%i%s%i%s\n", "Frame structure AMR MIME file storage format: ", frames, " frames, ", bytes, " bytes."); #endif #else fprintf ( stderr, "\n%s%i%s\n", "Frame structure AMR ETSI: ", frames, " frames. "); #endif fclose(file_speech); fclose(file_encoded); if (file_mode != NULL) fclose(file_mode); return 0; }
GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Hyacc; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* * version.c * * Gives version number of the hyacc release. * * @Author: Xin Chen * @Date started: February 8, 2007 * @Last modified: October 27, 2007 * @Copyright (C) 2007 */ #include "y.h" char * HYACC_VERSION = "HYACC version 0.95 (2009)\n\ Copyright (C) 2007, 2008, 2009 Xin Chen\n\n\ Hyacc uses GNU GPL license. \n\ The parser engine hyaccpar uses BSD license. \n\ See the source for license information.\ "; void print_version() { printf("%s\n", HYACC_VERSION); }
/* Return the copyright string. This is updated manually. */ #include "Python.h" static char cprt[] = "\ Copyright (c) 2001, 2002, 2003 Python Software Foundation.\n\ All Rights Reserved.\n\ \n\ Copyright (c) 2000 BeOpen.com.\n\ All Rights Reserved.\n\ \n\ Copyright (c) 1995-2001 Corporation for National Research Initiatives.\n\ All Rights Reserved.\n\ \n\ Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.\n\ All Rights Reserved."; const char * Py_GetCopyright(void) { return cprt; }
* any later version. * * Geomview is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Geomview; see the file COPYING. If not, write * to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, * USA, or visit http://www.gnu.org. */ #if 0 static char copyright[] = "Copyright (C) 1992-1998 The Geometry Center\n\ Copyright (C) 1998-2000 Geometry Technologies, Inc."; #endif /* * GeomtoNoff.c * author: Brian T. Luense * date: August 18, 1994 */ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include "geomclass.h" #include "geom.h" #include "skelP.h" #include "ndmeshP.h"
/* ********************************************************************************************************* * 常量定义 ********************************************************************************************************* */ const char *logstr = "\ *****************************************************************\r\n\ * *\r\n\ * *\r\n\ * *\r\n\ * *\r\n\ * *\r\n\ * *\r\n\ * *\r\n\ * @Copyright (c) 2014, Locaris Technology Co., Ltd. *\r\n\ * All Rights Reserved *\r\n\ * *\r\n\ *****************************************************************"; __ALIGN_BEGIN USB_OTG_CORE_HANDLE USB_OTG_dev __ALIGN_END ; extern CDC_IF_Prop_TypeDef VCP_fops; /* ********************************************************************************************************* * 任务堆栈定义 ********************************************************************************************************* */ OS_STK App_TaskStartStk[APP_TASK_START_STK_SIZE]; OS_STK App_TaskShellStk[APP_TASK_SHELL_STK_SIZE];
/* Return the copyright string. This is updated manually. */ #include "Python.h" static char cprt[] = "\ Copyright (c) 2001-2011 Python Software Foundation.\n\ All Rights Reserved.\n\ \n\ Copyright (c) 2000 BeOpen.com.\n\ All Rights Reserved.\n\ \n\ Copyright (c) 1995-2001 Corporation for National Research Initiatives.\n\ All Rights Reserved.\n\ \n\ Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.\n\ All Rights Reserved."; const char * Py_GetCopyright(void) { return cprt; }
volatile unsigned long ulSystemTickMS = 0; ///< local time tick counter (increment every ms) volatile unsigned long ulSystemTickS = 0; ///< local time tick counter (increment every second) volatile BOOL bBlinkState; ///< alternating variable to control blinking characters volatile BOOL bNeedsBlinking; ///< flag to turn on blinking flag volatile BOOL bRefreshDisplay; ///< flag to redraw display volatile UCHAR ucUIInactiveCounter; ///< in seconds. Counts down volatile unsigned int uiPumpSwitchOffAfter; ///< 0 - stop pump, automatically decremented every 1S in timer volatile BOOL bPumpIsRunning; ///< flag to start/stop pump volatile unsigned int uiPIRTTL; ///< >0 if presence was detected (decremented every 1S in timer) #if (WITH_RTC_DRIFT_MEASURE) long lCalcTimeOfs; ///< calculated RTC time offset #endif NVM_SET_DEF stSettings; const CHAR copyright[] PROGMEM = "\ Copyright (C) 2013-2014 Wojciech Nizinski. All rights reserved. \ You can use this work only for reference. \ No part of this work may be redistributed or modified in any form or any means (source, binary, others) without prior written permission from Wojciech Nizinski\n";
least one file has been correctly read (i.e., we recognized the class). */ if (totals && format == format_bsd && totals_class != 0) show_bsd_totals (); return result; } /* Print the version information. */ static void print_version (FILE *stream, struct argp_state *state __attribute__ ((unused))) { fprintf (stream, "size (%s) %s\n", PACKAGE_NAME, PACKAGE_VERSION); fprintf (stream, gettext ("\ Copyright (C) %s Red Hat, Inc.\n\ This is free software; see the source for copying conditions. There is NO\n\ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\ "), "2012"); fprintf (stream, gettext ("Written by %s.\n"), "Ulrich Drepper"); } /* Handle program arguments. */ static error_t parse_opt (int key, char *arg, struct argp_state *state __attribute__ ((unused))) { switch (key) { case 'd':
if (level <= verbose_level) { char buf[1024]; va_list ap; va_start (ap, format); vsprintf (buf, format, ap); va_end (ap); fprintf (stderr, "%s: %s", htmlex_name, buf); } } /* shows the program usage information */ static void usage (void) { printf ("\ htmlex %s - a powerful hypertext markup language preprocessor\n\ Copyright (C) 2001, 2002, 2003 by David Capello\n\ \n\ Usage:\n\ htmlex [ OPTIONS ] [ FILES... ]\n\ \n\ Options:\n\ -c compiles all subsequent files (gets an output file name\n\ from '-o' or generates a name with .html extension, see -E)\n\ -o adds output files\n\ -a adds arguments for the input files\n\ -I adds search include paths (you can use old '-i' parameter)\n\ -E changes the HTML extension used by -c option (.html by default)\n\ -k kills comments (old htmlex behavior)\n\ -d calculates dependencies of the input files (output to STDOUT)\n\ -v activates the verbose mode (to see what htmlex does)\n\ -V activates very verbose mode (to debug .htex files)\n\
extract the correct strings. These strings are actually referenced by a field name in the ntpsnmpdOptions structure noted in the comments below. The literal text is defined in ntpsnmpd_opt_strs. NOTE: the strings below are segmented with respect to the source string ntpsnmpd_opt_strs. The strings above are handed off for translation at run time a paragraph at a time. Consequently, they are presented here for translation a paragraph at a time. ALSO: often the description for an option will reference another option by name. These are set off with apostrophe quotes (I hope). Do not translate option names. */ /* referenced via ntpsnmpdOptions.pzCopyright */ puts(_("ntpsnmpd 4.2.8p2\n\ Copyright (C) 1992-2015 The University of Delaware and Network Time Foundation, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the NTP License, copies of which\n\ can be seen at:\n")); puts(_(" <http://ntp.org/license>\n\ <http://opensource.org/licenses/ntp-license.php>\n")); /* referenced via ntpsnmpdOptions.pzCopyNotice */ puts(_("Permission to use, copy, modify, and distribute this software and its\n\ documentation for any purpose with or without fee is hereby granted,\n\ provided that the above copyright notice appears in all copies and that\n\ both the copyright notice and this permission notice appear in supporting\n\ documentation, and that the name The University of Delaware not be used in\n\ advertising or publicity pertaining to distribution of the software without\n\ specific, written prior permission. The University of Delaware and Network\n\ Time Foundation makes no representations about the suitability this\n\
{"Compiled date: ", 33}, {"Copyright (C) 2000-2002 Tatsuhiro Tsujikawa", 34}, {"\ The part of directory browser is a modified code, the original code was \ written by Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front \ Technologies.\n\ The original code is copyrighted by Peter Alm, Mikael Alm, Olle Hallnas, \ Thomas Nilsson and 4Front Technologies.", 35}, {"\ The part of MD5 checking is a modified code, the original code was written \ for GnuPG, copyrighted 1995, 1996, 1998, 1999 Free Software Foundation, Inc.", 36}, {"\ This program uses zlib, Copyright (C) 1995-1998 Jean-loup Gailly and Mark \ Adler", 37}, {"\ This program uses OpenSSL, Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.\ com)", 38}, {"Status (Ready/Error/Downloading/Stop/Complete/Lock)", 39}, {"Split?(Yes/No/split Parts)", 40}, {"Total ", 41}, {" URLs", 42}, {"Another Aria is not running. This option makes no effect.", 43}, {"Reading Server Template file...", 44}, {"Server Template status : good", 45}, {"Server Template status : error", 46}, {"Reading Command list file...", 47}, {"Command list status : good", 48}, {"Command list status : error", 49}, {"Reading Default item config file...", 50}, {"Default item config status: error >> using default config", 51}, {"Default item config status: good", 52},
You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "version.h" #include <tls.h> #include <gnu/libc-version.h> static const char __libc_release[] = RELEASE; static const char __libc_version[] = VERSION; static const char banner[] = "GNU C Library "PKGVERSION RELEASE" release version "VERSION", by Roland McGrath et al.\n\ Copyright (C) 2009 Free Software Foundation, Inc.\n\ This is free software; see the source for copying conditions.\n\ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n\ PARTICULAR PURPOSE.\n\ Compiled by GNU CC version "__VERSION__".\n" #include "version-info.h" #ifdef GLIBC_OLDEST_ABI "The oldest ABI supported: " GLIBC_OLDEST_ABI ".\n" #endif "For bug reporting instructions, please see:\n\ "REPORT_BUGS_TO".\n"; #include <unistd.h> extern void __libc_print_version (void); void
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD: src/usr.sbin/bluetooth/sdpd/main.c,v 1.1 2004/01/20 20:48:26 emax Exp $ */ #include <sys/cdefs.h> __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc.\ Copyright (c) 2006 Itronix, Inc.\ Copyright (c) 2004 Maksim Yevmenkin [email protected].\ All rights reserved."); __RCSID("$NetBSD: main.c,v 1.9 2011/08/31 13:32:41 joerg Exp $"); #include <errno.h> #include <grp.h> #include <pwd.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "sdpd.h"
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Geomview; see the file COPYING. If not, write * to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, * USA, or visit http://www.gnu.org. */ #if HAVE_CONFIG_H # include "config.h" #endif #if 0 static char copyright[] = "Copyright (C) 1992-1998 The Geometry Center\n\ Copyright (C) 1998-2000 Stuart Levy, Tamara Munzner, Mark Phillips"; #endif /* Authors: Charlie Gunn, Pat Hanrahan, Stuart Levy, Tamara Munzner, Mark Phillips */ #include "transform3.h" void Ctm3Orthographic( Transform3 T, float l, float r, float b, float t, float n, float f ) { Transform3 P; Tm3Orthographic( P, l, r, b, t, n, f ); Tm3Concat(P, T, T); }
Phil Hochstetler ([email protected]) Environment: Kernel mode only. Revision History: --*/ #include "halp.h" #include "w3.inc" UCHAR SequentCopyright[] = "\n\n\ Copyright (c) 1993,1994\n\ Sequent Computer Systems, Inc. All rights reserved.\n\ \n\ This software is furnished under a license and may be used\n\ only in accordance with the terms of that license and with the\n\ inclusion of the above copyright notice. This software may not\n\ be provided or otherwise made available to, or used by, any\n\ other person. No title to or ownership of the software is\n\ hereby transferred.\n\n"; ULONG HalpBusType; ULONG ProcessorsPresent; extern ADDRESS_USAGE HalpDefaultPcIoSpace; extern ADDRESS_USAGE HalpEisaIoSpace;