Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • siv-mode
  • delete-des-compat
  • delete-rsa_blind
  • aes-struct-layout
  • master-updates
  • release-3.4-fixes
  • struct-layout
  • attribute-deprecated
  • rename-data-symbols
  • x86_64-sha_ni-sha256
  • ecc-params-tweak
  • delete-old-aes
  • cmac-support
  • x86_64-sha_ni-sha1
  • gcm-ctr-opt
  • ctr-opt
  • skein
  • api-opaque-fix
  • curve448
  • nettle_3.4.1_release_20181204
  • nettle_3.4.1rc1
  • nettle_3.4_release_20171119
  • nettle_3.4rc2
  • nettle_3.4rc1
  • nettle_3.3_release_20161001
  • nettle_3.2_release_20160128
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
  • nettle_2.7.1_release_20130528
  • nettle_2.7_release_20130424
  • nettle_2.6_release_20130116
  • nettle_2.5_release_20120707
  • converted-master-branch-to-git
  • nettle_2.4_release_20110903
  • nettle_2.3_release_20110902
40 results

md5-compress.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    getopt.c 33.10 KiB
    /* Getopt for GNU.
       NOTE: getopt is part of the C library, so if you don't know what
       "Keep this file name-space clean" means, talk to drepper@gnu.org
       before changing it!
       Copyright (C) 1987-2014 Free Software Foundation, Inc.
       This file is part of the GNU C Library.
    
       The GNU C Library is free software; you can redistribute it and/or
       modify it under the terms of the GNU Lesser General Public
       License as published by the Free Software Foundation; either
       version 2.1 of the License, or (at your option) any later version.
    
       The GNU C Library 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 the GNU C Library; if not, see
       <http://www.gnu.org/licenses/>.  */
    
    /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
       Ditto for AIX 3.2 and <stdlib.h>.  */
    #ifndef _NO_PROTO
    # define _NO_PROTO
    #endif
    
    #ifdef HAVE_CONFIG_H
    # include <config.h>
    #endif
    
    #include <stdio.h>
    
    /* Comment out all this code if we are using the GNU C Library, and are not
       actually compiling the library itself.  This code is part of the GNU C
       Library, but also included in many other GNU distributions.  Compiling
       and linking in this code is a waste when using the GNU C library
       (especially if it is a shared library).  Rather than having every GNU
       program understand `configure --with-gnu-libc' and omit the object files,
       it is simpler to just do this in the source for each such file.  */
    
    #define GETOPT_INTERFACE_VERSION 2
    #if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2
    # include <gnu-versions.h>
    # if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION
    #  define ELIDE_CODE
    # endif
    #endif
    
    #ifndef ELIDE_CODE
    
    
    /* This needs to come after some library #include
       to get __GNU_LIBRARY__ defined.  */
    #ifdef	__GNU_LIBRARY__
    /* Don't include stdlib.h for non-GNU C libraries because some of them
       contain conflicting prototypes for getopt.  */
    # include <stdlib.h>
    # include <unistd.h>
    #endif	/* GNU C library.  */
    
    #include <string.h>
    
    #ifdef VMS
    # include <unixlib.h>
    #endif
    
    #ifdef _LIBC
    # include <libintl.h>
    #else