Thread View: pl.comp.os.linux.programowanie
1 messages
1 total messages
Started by porparek
Sat, 14 Feb 2015 21:59
pusty katalog /proc
Author: porparek
Date: Sat, 14 Feb 2015 21:59
Date: Sat, 14 Feb 2015 21:59
46 lines
2594 bytes
2594 bytes
Witajcie
Po starcie systemu katalog /proc jest pusty.
Sytem jest maksymalnie okrojony. Nawet trudno to nazwac systemem. Jest to po prostu jadro, pare katalogow i okrojony init.
Jadro jest najnowsze stabilne. Konfiguracja jadra standardowa po wykonaniu make menuconfig. W szczegolnosci:
grep PROC .config:
CONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
CONFIG_PROC_PID_CPUSET=y
CONFIG_ARCH_PROC_KCORE_TEXT=y
CONFIG_ACPI_PROCFS=y
# CONFIG_ACPI_PROCFS_POWER is not set
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_PROCESSOR=y
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
CONFIG_NF_CONNTRACK_PROCFS=y
CONFIG_NF_CONNTRACK_PROC_COMPAT=y
CONFIG_PROC_EVENTS=y
CONFIG_SCSI_PROC_FS=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_RTC_INTF_PROC=y
# CONFIG_STE_MODEM_RPROC is not set
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_VMCORE=y
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_KEYS_DEBUG_PROC_KEYS=y
/etc/fstab zawiera:
proc /proc procfs rw,noauto 0 0
Do tego w inicie wolam funkcje biblioteczna:
const char* opts = "mode=0700, uid=0";
unsigned long mountFlags = MS_NODEV;
mount("proc", "/proc", "procfs", mountFlags, opts);
lub
mount("none", "/proc", "procfs", mountFlags, opts);
Wolanie "mount" zwraca blad "brak urzadzenia"
Napiszcie co robie zle.
dzieki wszystkim za pomoc
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads