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

Annotation of src/usr.bin/patch/util.h, Revision 1.11

1.11    ! otto        1: /*     $OpenBSD: util.h,v 1.10 2003/07/28 18:35:36 otto Exp $  */
        !             2:
        !             3: /*
        !             4:  * patch - a program to apply diffs to original files
        !             5:  *
        !             6:  * Copyright 1986, Larry Wall
        !             7:  *
        !             8:  * Redistribution and use in source and binary forms, with or without
        !             9:  * modification, are permitted provided that the following condition is met:
        !            10:  * 1. Redistributions of source code must retain the above copyright notice,
        !            11:  * this condition and the following disclaimer.
        !            12:  *
        !            13:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
        !            14:  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
        !            15:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        !            16:  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
        !            17:  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        !            18:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        !            19:  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
        !            20:  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
        !            21:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
        !            22:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
        !            23:  * SUCH DAMAGE.
        !            24:  *
        !            25:  * -C option added in 1998, original code by Marc Espie, based on FreeBSD
        !            26:  * behaviour
        !            27:  */
1.1       deraadt    28:
1.10      otto       29: char           *fetchname(const char *, int, int);
                     30: int            backup_file(const char *);
                     31: int            move_file(const char *, const char *);
                     32: int            copy_file(const char *, const char *);
                     33: void           say(const char *, ...)
1.8       deraadt    34:                    __attribute__((__format__(__printf__, 1, 2)));
1.10      otto       35: void           fatal(const char *, ...)
1.8       deraadt    36:                    __attribute__((__format__(__printf__, 1, 2)));
1.10      otto       37: void           pfatal(const char *, ...)
1.8       deraadt    38:                    __attribute__((__format__(__printf__, 1, 2)));
1.10      otto       39: void           ask(const char *, ...)
                     40:                    __attribute__((__format__(__printf__, 1, 2)));
                     41: char           *savestr(const char *);
1.5       deraadt    42: void           set_signals(int);
                     43: void           ignore_signals(void);
1.10      otto       44: void           makedirs(const char *, bool);
1.5       deraadt    45: void           version(void);
1.7       otto       46: void            my_exit(int) __attribute__((noreturn));