version 1.2, 1998/04/26 22:27:25 |
version 1.3, 1998/04/30 13:46:18 |
|
|
/* $OpenBSD$ */ |
/* $OpenBSD$ */ |
/* $NetBSD: audioctl.c,v 1.12 1997/10/19 07:44:12 augustss Exp $ */ |
/* $NetBSD: audioctl.c,v 1.14 1998/04/27 16:55:23 augustss Exp $ */ |
|
|
/* |
/* |
* Copyright (c) 1997 The NetBSD Foundation, Inc. |
* Copyright (c) 1997 The NetBSD Foundation, Inc. |
|
|
*/ |
*/ |
|
|
#include <stdio.h> |
#include <stdio.h> |
|
#include <stdlib.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <err.h> |
#include <err.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
int fd, i, ch; |
int fd, i, ch; |
int aflag = 0, wflag = 0; |
int aflag = 0, wflag = 0; |
struct stat dstat, ostat; |
struct stat dstat, ostat; |
char *file = "/dev/audioctl"; |
char *file; |
char *sep = "="; |
char *sep = "="; |
|
|
|
file = getenv("AUDIOCTLDEVICE"); |
|
if (file == 0) |
|
file = "/dev/audioctl"; |
|
|
prog = *argv; |
prog = *argv; |
|
|
while ((ch = getopt(argc, argv, "af:nw")) != -1) { |
while ((ch = getopt(argc, argv, "af:nw")) != -1) { |