diff options
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/fs.defs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/hurd/fs.defs b/hurd/fs.defs index 48a33e32..52cad43f 100644 --- a/hurd/fs.defs +++ b/hurd/fs.defs @@ -38,6 +38,7 @@ INTR_INTERFACE using exec_newtask or exec_loadtask as appropriate. */ routine file_exec ( exec_file: file_t; + RPT exec_task: task_t; flags: int; argv: data_t; @@ -51,6 +52,7 @@ routine file_exec ( /* Change owner and/or group */ routine file_chown ( chown_file: file_t; + RPT new_owner: uid_t; new_group: gid_t); @@ -76,21 +78,25 @@ That hem hath holpen whan that they were theeke. */ routine file_chauthor ( chauth_file: file_t; + RPT new_author: uid_t); /* Change mode bits */ routine file_chmod ( chmod_file: file_t; + RPT new_mode: mode_t); /* Change file flags */ routine file_chflags ( chflags_file: file_t; + RPT new_flags: int); /* Change access and modify times */ routine file_utimes ( utimes_file: file_t; + RPT new_atime: time_value_t; new_mtime: time_value_t); @@ -99,11 +105,13 @@ routine file_utimes ( areas of the file up to NEW_SIZE. */ routine file_set_size ( trunc_file: file_t; + RPT new_size: off_t); /* Apply/manipulate advisory lock */ routine file_lock ( lock_file: file_t; + RPT flags: int); /* Return current lock status. Mystatus tells what kind of lock the @@ -111,6 +119,7 @@ routine file_lock ( (including the caller). */ routine file_lock_stat ( lock_file: file_t; + RPT out mystatus: int; out otherstatus: int); @@ -123,32 +132,38 @@ routine file_lock_stat ( written directly. */ routine file_check_access ( file: file_t; + RPT out allowed: int); /* Notice changes to file FILE. Send notification messages (see msg.defs) to PORT as they occur. */ routine file_notice_changes ( file: file_t; + RPT port: mach_port_send_t); /* Return control port for this filesystem */ routine file_getcontrol ( file: file_t; + RPT out control: mach_port_send_t); /* Return filesystem status */ routine file_statfs ( file: file_t; + RPT out info: fsys_statfsbuf_t); /* Sync the individual file */ routine file_sync ( file: file_t; + RPT wait: int); /* Sync the entire filesystem */ routine file_syncfs ( file: file_t; + RPT wait: int; do_children: int); @@ -157,6 +172,7 @@ routine file_syncfs ( and the meanings of the other fields for a particular type. */ routine file_get_storage_info ( file: file_t; + RPT out class: int; out addresses: off_array_t; out address_units: size_t; @@ -168,6 +184,7 @@ routine file_get_storage_info ( This returns a potentially unauthenticated node. */ routine file_getlinknode ( file: file_t; + RPT out linknode: mach_port_send_t); /* Return a file handle for this file. This can be used by NFS and such. @@ -175,6 +192,7 @@ routine file_getlinknode ( filesystem cannot be NFS mounted. */ routine file_getfh ( file: file_t; + RPT out filehandle: data_t, dealloc); /* Operations supported on directories */ @@ -189,6 +207,7 @@ routine file_getfh ( reauthenticated port) with RETRY_NAME passed for FILE_NAME. */ routine dir_lookup ( start_dir: file_t; + RPT file_name: string_t; flags: int; mode: mode_t; @@ -206,6 +225,7 @@ routine dir_lookup ( data regardless. */ routine dir_readdir ( dir: file_t; + RPT out data: data_t, dealloc; entry: int; nentries: int; @@ -215,17 +235,20 @@ routine dir_readdir ( /* Create directory */ routine dir_mkdir ( directory: file_t; + RPT name: string_t; mode: mode_t); /* Remove directory */ routine dir_rmdir ( directory: file_t; + RPT name: string_t); /* Remove non-directory */ routine dir_unlink ( directory: file_t; + RPT name: string_t); /* Create a hard link. @@ -236,6 +259,7 @@ routine dir_unlink ( communicate by a private protocol and allow hard links between them. */ routine dir_link ( dir: file_t; + RPT file: file_t; name: string_t); @@ -243,6 +267,7 @@ routine dir_link ( about EXDEV. */ routine dir_rename ( olddirectory: file_t; + RPT oldname: string_t; newdirectory: file_t; newname: string_t); @@ -254,6 +279,7 @@ routine dir_rename ( O_CREAT and O_TRUNC are assumed even if not specified. */ routine dir_mkfile ( directory: file_t; + RPT flags: int; mode: mode_t; out newnode: mach_port_send_t); @@ -262,6 +288,7 @@ routine dir_mkfile ( (see msg.defs) to PORT as they occur. */ routine dir_notice_changes ( directory: file_t; + RPT port: mach_port_send_t); /* To get or set the translator currently running on a file, use @@ -282,6 +309,7 @@ routine dir_notice_changes ( if there is one and it is to be killed. */ routine file_set_translator ( file: file_t; + RPT passive_flags: int; active_flags: int; oldtrans_flags: int; @@ -291,16 +319,19 @@ routine file_set_translator ( /* Return the stored permanent translator for this file. */ routine file_get_translator ( file: file_t; + RPT out translator: data_t, dealloc); /* Return the translator control port to the active translator (if any) for this file. */ routine file_get_translator_cntl ( file: file_t; + RPT out translator_cntl: mach_port_send_t); /* Return the options describing the way the receiving filesystem is running. (Suitable as an arg for fsys_set_options). */ routine file_get_fs_options ( file: file_t; + RPT out options: data_t); |