inienc.c (daf1cffce2e07931f27c6c6998652e90df6ba87e) inienc.c (2804a96a502283a0b41449bcfe2b049dbfc6dbae)
1/* $FreeBSD$ */
2/*
3 * Copyright (c) 2000 by Matthew Jacob
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 26 unchanged lines hidden (view full) ---

35#include <unistd.h>
36#include <stdlib.h>
37#include <stdio.h>
38#include <fcntl.h>
39#include <sys/ioctl.h>
40#include SESINC
41
42int
1/* $FreeBSD$ */
2/*
3 * Copyright (c) 2000 by Matthew Jacob
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 26 unchanged lines hidden (view full) ---

35#include <unistd.h>
36#include <stdlib.h>
37#include <stdio.h>
38#include <fcntl.h>
39#include <sys/ioctl.h>
40#include SESINC
41
42int
43main(a, v)
44 int a;
45 char **v;
43main(int a, char **v)
46{
47 int fd;
48
49 while (*++v) {
50 fd = open(*v, O_RDWR);
51 if (fd < 0) {
52 perror(*v);
53 continue;
54 }
55 if (ioctl(fd, SESIOC_INIT, NULL) < 0) {
56 perror("SESIOC_GETNOBJ");
57 }
58 (void) close(fd);
59 }
60 return (0);
61}
44{
45 int fd;
46
47 while (*++v) {
48 fd = open(*v, O_RDWR);
49 if (fd < 0) {
50 perror(*v);
51 continue;
52 }
53 if (ioctl(fd, SESIOC_INIT, NULL) < 0) {
54 perror("SESIOC_GETNOBJ");
55 }
56 (void) close(fd);
57 }
58 return (0);
59}