liyujie
2025-08-28 786ff4f4ca2374bdd9177f2e24b503d43e7a3b93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
 * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
 * Universitaet Berlin.  See the accompanying file "COPYRIGHT" for
 * details.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
 */
 
/* $Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/toast.h,v 1.4 1995/03/07 21:26:16 jutta Exp $ */
 
#ifndef    TOAST_H
#define    TOAST_H                /* Guard against multiple includes */
 
#include "config.h"
 
#include <sys/types.h>
#include <sys/stat.h>
 
#include <stdio.h>
#include <ctype.h>
#include <signal.h>
 
#include <errno.h>
#ifndef    HAS_ERRNO_DECL
    extern int    errno;
#endif
 
#ifdef    HAS_LIMITS_H
#include <limits.h>
#endif
 
#ifdef    HAS_FCNTL_H
# include <fcntl.h>
#endif
 
#ifdef    HAS_UTIME
# ifdef    HAS_UTIME_H
#  include <utime.h>
# endif
#endif
 
#include "gsm.h"
 
#ifndef    S_ISREG
#define    S_ISREG(x)    ((x) & S_IFREG)
#endif    /* S_ISREG */
 
 
# define    READ    "rb"
# define    WRITE    "wb"
#ifdef  O_BINARY
# define    O_WRITE_EXCL    O_WRONLY|O_CREAT|O_EXCL|O_BINARY
#else
# define    O_WRITE_EXCL    O_WRONLY|O_CREAT|O_EXCL
#endif
 
#ifndef SIGHANDLER_T
#define SIGHANDLER_T    void    /* what does a signal handler return? */
#endif
 
 
#ifdef    HAS_STRING_H
#include    <string.h>
#else
#    ifdef HAS_STRINGS_H
#    include <strings.h>
#    else
#        include "proto.h"
 
       extern int    strlen    P((char *));
       extern char *    strcpy  P((char *, char *));
       extern char *    strcat  P((char *,  char *));
       extern char *    strrchr P((char *, int));
 
#        include "unproto.h"
#    endif
#endif
 
 
#ifdef    HAS_STDLIB_H
#include    <stdlib.h>
#else
#    include "proto.h"
#    ifdef    HAS_MALLOC_H
#    include <malloc.h>
#    else
       extern char    * malloc P((unsigned));
#    endif
   extern int    exit P((int));
#    include "unproto.h"
#endif
 
 
#ifdef    HAS_UNISTD_H
#    include    <unistd.h>
#endif
 
/*
 *    This suffix is tacked onto/removed from filenames
 *    similar to the way freeze and compress do it.
 */
#define    SUFFIX_TOASTED        ".gsm"
 
#include    "proto.h"
 
extern int     audio_init_input P((void)), audio_init_output P((void));
extern int    ulaw_input   P((gsm_signal*)), ulaw_output   P((gsm_signal *));
extern int    alaw_input   P((gsm_signal*)), alaw_output   P((gsm_signal *));
extern int    linear_input P((gsm_signal*)), linear_output P((gsm_signal *));
 
#endif        /* TOAST_H */