[BACK]Return to insults.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / sudo

Annotation of src/usr.bin/sudo/insults.h, Revision 1.1.1.1

1.1       millert     1: /*
                      2:  * Copyright (c) 1994-1996,1998-1999 Todd C. Miller <Todd.Miller@courtesan.com>
                      3:  * All rights reserved.
                      4:  *
                      5:  * Redistribution and use in source and binary forms, with or without
                      6:  * modification, are permitted provided that the following conditions
                      7:  * are met:
                      8:  *
                      9:  * 1. Redistributions of source code must retain the above copyright
                     10:  *    notice, this list of conditions and the following disclaimer.
                     11:  *
                     12:  * 2. Redistributions in binary form must reproduce the above copyright
                     13:  *    notice, this list of conditions and the following disclaimer in the
                     14:  *    documentation and/or other materials provided with the distribution.
                     15:  *
                     16:  * 3. The name of the author may not be used to endorse or promote products
                     17:  *    derived from this software without specific prior written permission.
                     18:  *
                     19:  * 4. Products derived from this software may not be called "Sudo" nor
                     20:  *    may "Sudo" appear in their names without specific prior written
                     21:  *    permission from the author.
                     22:  *
                     23:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
                     24:  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
                     25:  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
                     26:  * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
                     27:  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
                     28:  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
                     29:  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
                     30:  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
                     31:  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
                     32:  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     33:  *
                     34:  * $Sudo: insults.h,v 1.43 1999/07/31 16:19:46 millert Exp $
                     35:  */
                     36:
                     37: #ifndef _SUDO_INSULTS_H
                     38: #define _SUDO_INSULTS_H
                     39:
                     40: #ifdef USE_INSULTS
                     41:
                     42: /*
                     43:  * Use one or more set of insults as determined by configure
                     44:  */
                     45:
                     46: char *insults[] = {
                     47:
                     48: # ifdef HAL_INSULTS
                     49: #  include "ins_2001.h"
                     50: # endif
                     51:
                     52: # ifdef GOONS_INSULTS
                     53: #  include "ins_goons.h"
                     54: # endif
                     55:
                     56: # ifdef CLASSIC_INSULTS
                     57: #  include "ins_classic.h"
                     58: # endif
                     59:
                     60: # ifdef CSOPS_INSULTS
                     61: #  include "ins_csops.h"
                     62: # endif
                     63:
                     64:     (char *) 0
                     65:
                     66: };
                     67:
                     68: /*
                     69:  * How may I insult you?  Let me count the ways...
                     70:  */
                     71: #define NOFINSULTS (sizeof(insults) / sizeof(insults[0]) - 1)
                     72:
                     73: /*
                     74:  * return a pseudo-random insult.
                     75:  */
                     76: #define INSULT         (insults[time(NULL) % NOFINSULTS])
                     77:
                     78: #endif /* USE_INSULTS */
                     79:
                     80: #endif /* _SUDO_INSULTS_H */