我試圖安裝在C++程序的ISO文件在Linux安裝的ISO使用SYS/mount.h
我知道Linux的命令來實現這一點,即安裝鄰環〜/ Test.iso到/ mnt/myISO
但安裝(2)手冊頁狀態的原型如下安裝:
int mount(const char *source, const char *target,
const char *filesystemtype, unsigned long mountflags,
const void *data);
我怎麼在這裏指定了循環選項?
-
此外,有良好的(/可接受)實踐一般,在Linux的編程使用系統調用殼由C++實現的任務,如這些?
在某些情況下,腳本是更好,但它實際上取決於你的目標是什麼。 – 2012-07-07 20:32:41
如果內存服務,循環選項會傳遞給'losetup'。 – user7116 2012-07-07 20:34:31
@JesusRamos在我的問題的後半部分,我的意思是問,使用C++ system()函數調用相關的linux命令(不是創建shell腳本)是一種很好/可接受的做法。在這種情況下, m創建一個用於安裝ISO的GUI。 – flak37 2012-07-07 20:44:50