~ubuntu-branches/ubuntu/quantal/zaptel/quantal

« back to all changes in this revision

Viewing changes to patlooptest.c

  • Committer: Bazaar Package Importer
  • Author(s): Tzafrir Cohen
  • Date: 2008-08-28 22:58:23 UTC
  • mfrom: (11.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080828225823-r8bdunirm8hmc76m
Tags: 1:1.4.11~dfsg-2
* Patch xpp_fxs_power: Fixed an issue with hook detection of the Astribank
  FXS module.
* Don't fail init.d script if fxotune fails. This may happen if running it
  when Asterisk is already running.
* Bump standards version to 3.8.0.0 .
* Ignore false lintian warning ("m-a a-i" has "a a").
* Patch xpp_fxo_cid_always: do always pass PCM if that's what the user
  asked.
* Patch vzaphfc_proc_root_dir: fix vzaphfc on 2.6.26.
* Patch wcte12xp_flags: Proper time for irq save flags.
* Patch headers_2627: Fix location of semaphore.h for 2.6.27 .
* Patch xpp_fxs_dtmf_leak: Don't play DTMFs to the wrong channel.
* Patch wctdm_fix_alarm: Fix sending channel alarms.
* Patch device_class_2626: Fix building 2.6.26 (Closes: #493397).
* Using dh_lintian for lintian overrides, hence requiring debhelper 6.0.7.
* Lintian: we know we have direct changes. Too bad we're half-upstream :-(
* Fix doc-base section names. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#include <string.h>
4
4
#include <errno.h>
5
5
#include <stdio.h>
6
 
#include <linux/types.h>
7
 
#include <linux/ppp_defs.h> 
8
6
#include <sys/ioctl.h>
9
7
#include <unistd.h>
10
8
#include <stdlib.h>
11
9
#include <time.h>
12
10
 
13
11
#ifdef STANDALONE_ZAPATA
14
 
#include "zaptel.h"
 
12
#include "kernel/zaptel.h"
15
13
#else
16
 
#include <linux/zaptel.h>
 
14
#include <zaptel/zaptel.h>
17
15
#endif
18
16
 
19
17
#define BLOCK_SIZE 2039
44
42
        int timeout=0;
45
43
        time_t start_time=0;
46
44
        if (argc < 2 || argc > 3 ) {
47
 
                fprintf(stderr, "Usage: %s <zaptel device (optional timeout)>\n",argv[0]);
 
45
                fprintf(stderr, "Usage: %s <zaptel device> [timeout]\n",argv[0]);
48
46
                exit(1);
49
47
        }
50
48
        fd = open(argv[1], O_RDWR, 0600);