Home
last modified time | relevance | path

Searched refs:mtfd (Results 1 – 3 of 3) sorted by relevance

/freebsd/usr.bin/mt/
H A Dmt.c171 static int mt_locate(int argc, char **argv, int mtfd, const char *tape);
174 static int mt_xml_cmd(unsigned long cmd, int argc, char **argv, int mtfd,
181 static int mt_set_param(int mtfd, struct mt_status_data *status_data,
183 static int mt_protect(int argc, char **argv, int mtfd,
185 static int mt_param(int argc, char **argv, int mtfd, char *xml_str,
198 int ch, len, mtfd; in main() local
241 if ((mtfd = open(tape, comp->c_ronly ? O_RDONLY : O_RDWR)) < 0) in main()
288 if (ioctl(mtfd, comp->c_code, (caddr_t)&umn) < 0) in main()
324 if (ioctl(mtfd, comp->c_code, (caddr_t)&block) < 0) in main()
336 if (ioctl(mtfd, comp->c_code, (caddr_t)&block) < 0) in main()
[all …]
/freebsd/lib/libmt/
H A Dmtlib.h116 int mt_get_xml_str(int mtfd, unsigned long cmd, char **xml_str);
H A Dmtlib.c719 mt_get_xml_str(int mtfd, unsigned long cmd, char **xml_str) in mt_get_xml_str() argument
735 error = ioctl(mtfd, cmd, (caddr_t)&extget); in mt_get_xml_str()