search for: addmntent

Displaying 3 results from an estimated 3 matches for "addmntent".

2001 Nov 06
0
[PATCH] nomtab support
..."Can't open " MOUNTED); - return 1; - } + if (!no_mtab) { + if ((fd = open(MOUNTED"~", O_RDWR|O_CREAT|O_EXCL, 0600)) == -1){ + fprintf(stderr, "Can't get "MOUNTED"~ lock file"); + return 1; + } + close(fd); - if (addmntent(mtab, &ment) == 1) - { - fprintf(stderr, "Can't write mount entry"); - return 1; - } - if (fchmod(fileno(mtab), 0644) == -1) - { - fprintf(stderr, "Can't set perms on "MOUNTED); -...
2008 Sep 05
0
initial mntent.h, mount features, ipconfig fixes
...N 128 /* from DHCP RFC 2131 */ struct netdev { commit 5c5809f953c2182d9bad39932eaa6a1de4231e5f Author: maximilian attems <max at stro.at> Date: Fri Sep 5 22:18:09 2008 +0200 [klibc] mount: read /proc/mounts preferably as klibc mount doesn't write into /etc/mtab (no addmntent() too), better checkout the kernel view first. may be interchanged again later.. Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/utils/mount_main.c b/usr/utils/mount_main.c index 89e75d7..ee08720 100644 --- a/usr/utils/mount_main.c +++ b/usr/utils/mount_ma...
2008 Sep 07
1
[git pull v2] initial mntent.h, mount features, ipconfig fixes
...N 128 /* from DHCP RFC 2131 */ struct netdev { commit 6fa665bc70d5f87282a3518595e39cc6cac99050 Author: maximilian attems <max at stro.at> Date: Fri Sep 5 22:18:09 2008 +0200 [klibc] mount: read /proc/mounts preferably as klibc mount doesn't write into /etc/mtab (no addmntent() too), better checkout the kernel view first. may be interchanged again later.. Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/utils/mount_main.c b/usr/utils/mount_main.c index 89e75d7..ee08720 100644 --- a/usr/utils/mount_main.c +++ b/usr/utils/mount_ma...