diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-10-03 21:32:16 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-10-03 21:32:16 +0200 |
commit | fb0a19fb706b4d46d640ea3eef4cd170290a1a59 (patch) | |
tree | dae675fa70249097ad8c129b3868cb9a0d04e03e | |
parent | bec507f32c1ee0322c5e834671d8e3e8ebd1a72b (diff) |
Fix build
-rw-r--r-- | nsmux.c | 26 | ||||
-rw-r--r-- | nsmux.h | 24 |
2 files changed, 25 insertions, 25 deletions
@@ -77,7 +77,7 @@ FILE *nsmux_dbg; error_t netfs_attempt_create_file (struct iouser *user, - struct node *dir, char *name, mode_t mode, struct node **node) + struct node *dir, const char *name, mode_t mode, struct node **node) { LOG_MSG ("netfs_attempt_create_file"); @@ -458,7 +458,7 @@ error_t /*Looks up `name` under `dir` for `user`*/ error_t netfs_attempt_lookup - (struct iouser * user, struct node * dir, char *name, struct node ** node) + (struct iouser * user, struct node * dir, const char *name, struct node ** node) { LOG_MSG ("netfs_attempt_lookup"); @@ -476,7 +476,7 @@ error_t create a proxy node and return it in `node`.*/ error_t netfs_attempt_lookup_improved - (struct iouser * user, struct node * dir, char *name, int flags, + (struct iouser * user, struct node * dir, const char *name, int flags, int lastcomp, node_t ** node, file_t * file, int proxy) { LOG_MSG ("netfs_attempt_lookup_improved: '%s'", name); @@ -590,7 +590,7 @@ error_t } /*finalize */ /*Performs a usual lookup */ - error_t lookup (char *name, /*lookup this */ + error_t lookup (const char *name, /*lookup this */ int flags, /*lookup `name` in the this way */ int proxy /*should a proxy node be created */ ) @@ -747,7 +747,7 @@ error_t error_t netfs_S_dir_lookup (struct protid * diruser, - char *filename, + const char *filename, int flags, mode_t mode, retry_type * do_retry, @@ -1343,7 +1343,7 @@ out: /*---------------------------------------------------------------------------*/ /*Deletes `name` in `dir` for `user`*/ error_t - netfs_attempt_unlink (struct iouser * user, struct node * dir, char *name) + netfs_attempt_unlink (struct iouser * user, struct node * dir, const char *name) { LOG_MSG ("netfs_attempt_unlink"); @@ -1356,7 +1356,7 @@ error_t netfs_attempt_rename (struct iouser * user, struct node * fromdir, - char *fromname, struct node * todir, char *toname, int excl) + const char *fromname, struct node * todir, const char *toname, int excl) { LOG_MSG ("netfs_attempt_rename"); @@ -1368,7 +1368,7 @@ error_t /*Attempts to create a new directory*/ error_t netfs_attempt_mkdir - (struct iouser * user, struct node * dir, char *name, mode_t mode) + (struct iouser * user, struct node * dir, const char *name, mode_t mode) { LOG_MSG ("netfs_attempt_mkdir"); @@ -1378,7 +1378,7 @@ error_t /*---------------------------------------------------------------------------*/ /*Attempts to remove directory `name` in `dir` for `user`*/ error_t - netfs_attempt_rmdir (struct iouser * user, struct node * dir, char *name) + netfs_attempt_rmdir (struct iouser * user, struct node * dir, const char *name) { LOG_MSG ("netfs_attempt_rmdir"); @@ -1424,7 +1424,7 @@ error_t /*Attempts to turn `node` into a symlink targetting `name`*/ error_t netfs_attempt_mksymlink - (struct iouser * cred, struct node * node, char *name) + (struct iouser * cred, struct node * node, const char *name) { LOG_MSG ("netfs_attempt_mksymlink"); @@ -1449,7 +1449,7 @@ error_t /*Attempts to set the passive translator record for `file` passing `argz`*/ error_t netfs_set_translator - (struct iouser * cred, struct node * node, char *argz, size_t arglen) + (struct iouser * cred, struct node * node, const char *argz, size_t arglen) { LOG_MSG ("netfs_set_translator"); @@ -1507,7 +1507,7 @@ error_t netfs_attempt_syncfs (struct iouser * cred, int wait) error_t netfs_attempt_link (struct iouser * user, - struct node * dir, struct node * file, char *name, int excl) + struct node * dir, struct node * file, const char *name, int excl) { LOG_MSG ("netfs_attempt_link"); @@ -1578,7 +1578,7 @@ error_t error_t netfs_attempt_write (struct iouser * cred, - struct node * node, loff_t offset, size_t * len, void *data) + struct node * node, loff_t offset, size_t * len, const void *data) { /*Write the supplied data into the file and return the result */ return io_write (node->nn->port, data, *len, offset, len); @@ -74,7 +74,7 @@ extern fshelp_fetch_root_callback2_t _netfs_translator_callback2; error_t netfs_attempt_create_file (struct iouser *user, - struct node *dir, char *name, mode_t mode, struct node **node); + struct node *dir, const char *name, mode_t mode, struct node **node); /*---------------------------------------------------------------------------*/ /*Returns an error if the process of opening a file should not be allowed to complete because of insufficient permissions*/ @@ -112,7 +112,7 @@ error_t /*Looks up `name` under `dir` for `user`*/ error_t netfs_attempt_lookup - (struct iouser *user, struct node *dir, char *name, struct node **node); + (struct iouser *user, struct node *dir, const char *name, struct node **node); /*---------------------------------------------------------------------------*/ /*Performs an advanced lookup of file `name` under `dir`. If the lookup of the last component of the path is requested (`lastcomp` is @@ -122,14 +122,14 @@ error_t proxy node and return it in `node`.*/ error_t netfs_attempt_lookup_improved - (struct iouser * user, struct node * dir, char *name, int flags, + (struct iouser * user, struct node * dir, const char *name, int flags, int lastcomp, node_t ** node, file_t * file, int proxy); /*---------------------------------------------------------------------------*/ /*Responds to the RPC dir_lookup*/ error_t netfs_S_dir_lookup (struct protid *diruser, - char *filename, + const char *filename, int flags, mode_t mode, retry_type * do_retry, @@ -138,23 +138,23 @@ error_t /*---------------------------------------------------------------------------*/ /*Deletes `name` in `dir` for `user`*/ error_t - netfs_attempt_unlink (struct iouser *user, struct node *dir, char *name); + netfs_attempt_unlink (struct iouser *user, struct node *dir, const char *name); /*---------------------------------------------------------------------------*/ /*Attempts to rename `fromdir`/`fromname` to `todir`/`toname`*/ error_t netfs_attempt_rename (struct iouser *user, struct node *fromdir, - char *fromname, struct node *todir, char *toname, int excl); + const char *fromname, struct node *todir, const char *toname, int excl); /*---------------------------------------------------------------------------*/ /*Attempts to create a new directory*/ error_t netfs_attempt_mkdir - (struct iouser *user, struct node *dir, char *name, mode_t mode); + (struct iouser *user, struct node *dir, const char *name, mode_t mode); /*---------------------------------------------------------------------------*/ /*Attempts to remove directory `name` in `dir` for `user`*/ error_t - netfs_attempt_rmdir (struct iouser *user, struct node *dir, char *name); + netfs_attempt_rmdir (struct iouser *user, struct node *dir, const char *name); /*---------------------------------------------------------------------------*/ /*Attempts to change the owner of `node` for user `cred` to `uid`:`gid`*/ error_t @@ -173,7 +173,7 @@ error_t /*Attempts to turn `node` into a symlink targetting `name`*/ error_t netfs_attempt_mksymlink - (struct iouser *cred, struct node *node, char *name); + (struct iouser *cred, struct node *node, const char *name); /*---------------------------------------------------------------------------*/ /*Attempts to turn `node` into a device; type can be either S_IFBLK or S_IFCHR*/ error_t @@ -183,7 +183,7 @@ error_t /*Attempts to set the passive translator record for `file` passing `argz`*/ error_t netfs_set_translator - (struct iouser *cred, struct node *node, char *argz, size_t arglen); + (struct iouser *cred, struct node *node, const char *argz, size_t arglen); /*---------------------------------------------------------------------------*/ /*Attempts to call chflags for `node`*/ error_t @@ -206,7 +206,7 @@ error_t netfs_attempt_syncfs (struct iouser *cred, int wait); error_t netfs_attempt_link (struct iouser *user, - struct node *dir, struct node *file, char *name, int excl); + struct node *dir, struct node *file, const char *name, int excl); /*---------------------------------------------------------------------------*/ /*Attempts to create an anonymous file related to `dir` with `mode`*/ error_t @@ -227,7 +227,7 @@ error_t error_t netfs_attempt_write (struct iouser *cred, - struct node *node, loff_t offset, size_t * len, void *data); + struct node *node, loff_t offset, size_t * len, const void *data); /*---------------------------------------------------------------------------*/ /*Frees all storage associated with the node*/ void netfs_node_norefs (struct node *np); |