smartmontools  SVN Rev 4559
Utility to control and monitor storage systems with "S.M.A.R.T."
Enumerations | Functions | Variables
os_openbsd.cpp File Reference
#include "config.h"
#include "int64.h"
#include "atacmds.h"
#include "scsicmds.h"
#include "utility.h"
#include "os_openbsd.h"
#include <errno.h>
Include dependency graph for os_openbsd.cpp:

Go to the source code of this file.


enum  warnings { BAD_SMART, MAX_MSG, BAD_SMART, MAX_MSG }


void printwarning (int msgNo, const char *extra)
int guess_device_type (const char *dev_name)
int get_dev_names (char ***names, const char *prefix)
int make_device_names (char ***devlist, const char *name)
int deviceopen (const char *pathname, char *type)
int deviceclose (int fd)
int ata_command_interface (int fd, smart_command_set command, int select, char *data)
int do_scsi_cmnd_io (int fd, struct scsi_cmnd_io *iop, int report)
void print_smartctl_examples ()


const char * os_openbsd_cpp_cvsid
static const char * net_dev_prefix = "/dev/"
static const char * net_dev_ata_disk = "wd"
static const char * net_dev_scsi_disk = "sd"
static const char * net_dev_scsi_tape = "st"

Enumeration Type Documentation

enum warnings

Definition at line 33 of file os_openbsd.cpp.

Function Documentation

int ata_command_interface ( int  fd,
smart_command_set  command,
int  select,
char *  data 

Definition at line 179 of file os_openbsd.cpp.

int deviceclose ( int  fd)

Definition at line 173 of file os_openbsd.cpp.

int deviceopen ( const char *  pathname,
char *  type 

Definition at line 159 of file os_openbsd.cpp.

int do_scsi_cmnd_io ( int  fd,
struct scsi_cmnd_io iop,
int  report 

Definition at line 358 of file os_openbsd.cpp.

int get_dev_names ( char ***  names,
const char *  prefix 

Definition at line 92 of file os_openbsd.cpp.

int guess_device_type ( const char *  dev_name)

Definition at line 65 of file os_openbsd.cpp.

int make_device_names ( char ***  devlist,
const char *  name 

Definition at line 148 of file os_openbsd.cpp.

void print_smartctl_examples ( )

Definition at line 418 of file os_openbsd.cpp.

void printwarning ( int  msgNo,
const char *  extra 

Definition at line 39 of file os_openbsd.cpp.

Variable Documentation

const char* net_dev_ata_disk = "wd"

Definition at line 59 of file os_openbsd.cpp.

const char* net_dev_prefix = "/dev/"

Definition at line 58 of file os_openbsd.cpp.

const char* net_dev_scsi_disk = "sd"

Definition at line 60 of file os_openbsd.cpp.

const char* net_dev_scsi_tape = "st"

Definition at line 61 of file os_openbsd.cpp.

const char* os_openbsd_cpp_cvsid
Initial value:
= "$Id: os_openbsd.cpp 4431 2017-08-08 19:38:15Z chrfranke $"
Definition: os_openbsd.h:29

Definition at line 30 of file os_openbsd.cpp.