home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.slackware      I think its the one without Selinux crap      87,272 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 86,167 of 87,272   
   Henrik Carlqvist to Joseph Rosevear   
   Re: Need advice about fixing PROC mount    
   18 Feb 23 10:26:21   
   
   From: Henrik.Carlqvist@deadspam.com   
      
   On Sat, 18 Feb 2023 01:17:58 +0000, Joseph Rosevear wrote:   
      
   > On Sat, 7 Jan 2023 07:06:37 -0000 (UTC), Jasen Betts wrote:   
   >> What's the difference between mount() and /bin/mount   
   >   
   > I'm going to try *again* to reply (having trouble):   
   >   
   > Because I write bash code, your question looks to me like you are asking   
   > for the difference between a shell function called mount and the mount   
   > executable at /bin/mount.   
   >   
   > For example you could write a function definition, source it, and then   
   > use it to perform the real (or modified) /bin/mount.  Here is such a   
   > function defintion with no modification:   
      
   Actually, it is exactly as you say that the mount command described by:   
      
   man 8 mount   
      
   is the executable /bin/mount   
      
   But, the mount call described by the man page:   
      
   man 2 mount   
      
   is not some bash function you are supposed to write yourself but the C   
   API system call to the Linux kernel. Lew in his original post   
   (crossposted to 4 different newsgroups) were writing a C program called   
   demo.c. From such a C program it is best to use the C API and call   
   mount(), but it would also be possible to call system("/bin/mount ...");   
      
   regards Henrik   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca