- Unison Kernel
- Pthread Cancellation
- Message Queues
- Conditional Variables
- Memory Allocation
- Directory Services
- Unison I/O Library
- Unison STDIO Library
- STDIO Library Calls
- Do-nothing Stubs
- STDIO Library Calls
- Unison LIBC Library
- Unison I/O Servers
- Graphics, Camera, Video, Audio
- Network Protocols
- TCP and UDP Server - tcpd
- DHCP Client Service - dhcp client
- DHCP Server - dhcpd
- Telnet Server - telnetd
- Tiny FTP Server - tftpd
- Point to Point - pppd
- Network Translation - NAT with PAT
- Tiny HTTP Server - thttpd
- Tiny HTTP Server with TLS
- POP3 Server
- Simple Mail Transfer Protocol Services (SMTP)
- Bootp Protocol
- File Transfer Protocol Server (FTP)
- File Transfer Client Services
- RPC / XDR
- DNS Client
- HTTP/HTTPS Client
- REST Client
- AutoIP Service - autoip client
- mDNS server - mdnsd
- SNTP Client
- SNMP Agent - Snmpd server
- SSL/TLS library
- SSH server
- IP security
- Power Control
- Serial I/O
- System Services
- Universal Serial Bus (USB)
- Remedy Tools for Unison
mount – mount a file system
- int mount(const char *spec ,
- const char *dir ,
- int mflag );
- int umount(const char *dir);
The mount() function requests that a removable file system contained on the block special file identified by spec be mounted on the directory identified by dir. The spec and dir arguments are pointers to path names.
The umount() function unmounts the file system mounted at dir.
The mflag flag is used to control write permission on the mounted file system: If set to FS_RDONLY, writing is forbidden; otherwise writing is permitted according to individual file accessibility. After a successful call to mount(), all references to the file dir refer to the root directory on the mounted file system.
Upon successful completion a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error.
This function is a member of Unison’s IOLIB family of functions. IOLIB is implemented as a message passing and generalized interface layer. Each Unison I/O server is responsible for its own error reporting.
For an exact list of error codes returned by a particular server, refer to that server’s documentation in the Unison Programmer’s Guide for each specific platform.
Servers may implement these errors codes in response to this function.
mount() fails if one or more of the following are true:
- dir is currently mounted or is otherwise busy. Or, the device associated with spec is currently mounted. Or, there are no more mount table entries.
- spec, dir, or datalen points outside the allocated address space of the process.
- The super block has an invalid magic number or the fstyp is invalid.
- Components of path require hopping to multiple remote machines and the file system type does not allow it.
- The length of an argument is too large.
- One of the named arguments does not exist or is a null pathname.
- spec is remote and cannot be mounted.
- path points to a remote machine and the link to that machine is no longer active.
- The device associated with spec does not exist.
- spec is write protected and mflag requests write permission.
- The file system state in the super-block is not
The mflag parameter is, currently, ignored by the FATFS implementation.