summaryrefslogtreecommitdiff
path: root/hurd/hurd_types.h
AgeCommit message (Collapse)Author
2022-09-12acpi: Link translator to libacpica and provide RPCsDamien Zammit
Provides two new acpi RPCs to sleep the machine and to get the irq of any pci device. ACPI mode is enabled by default when the translator is started. NB: Merging this commit means libacpica is a build dep. Message-Id: <20220912103837.556815-2-damien@zamaudio.com>
2020-11-30hurd_types: Add const_string_t typeSamuel Thibault
This will allow to relieve constraints in callers, e.g. dir_lookup("") would otherwise produce a warning with gcc-11 since char[1024] would mean that dir_lookup would read all 1024 characters while it is not. * hurd/hurd_types.h (const_string_t): New type.
2019-10-29fs: Support for file record lockingSvante Signell
2019-02-01 Svante Signell <svante.signell@gmail.com> * Update copyright years. 2018-01-05 Svante Signell <svante.signell@gmail.com> * Update copyright years. * fs.defs: Add new argument rendezvous: mach_port_send_t to RPC file_record_lock. 2017-01-05 Svante Signell <svante.signell@gmail.com> * Update copyright years and headers. 2016-05-23 Svante Signell <svante.signell@gmail.com> * fs.defs: Added description. * hurd_types.defs: Make struct flock_t seven integers long since l_start and l_len are 64bit. * hurd_types.h: typedef flock_t as flock64. 2001-04-10 Neal H Walfield <neal@cs.uml.edu> * fs.defs: New RPC file_record_lock. * hurd_types.defs: Import <fcntl.h>.
2019-07-27diskfs.h: Expose 64bit typesSamuel Thibault
We build hurd with LFS64, so we should always expose LFS64 types, so callers do not have to build with -D_FILE_OFFSET_BITS=64. * libdiskfs/diskfs.h (struct peropen): Make `filepointer' field type `loff_t' instead of `off_t'. (diskfs_cached_ifind): Make `inum' parameter `ino64_t' instead of `ino_t'. (diskfs_cached_lookup_context): Likewise. * hurd/shared.h (strcut shared_io): Make `read_size', `prenotify_size', `postnotify_size', `readnotify_size', `rd_file_pointer', `wr_file_pointer', `xx_file_pointer', `file_size' fields type `loff_t' instead of `off_t'.
2019-03-02Add shutdown RPC && ACPI specific disappear routineDamien Zammit
* Makefile (prog-subdirs): Add shutdown. * hurd/hurd_types.defs (shutdown_t): New type. * hurd/hurd_types.h (shutdown_t): New type. * hurd/shutdown.defs: New file. * shutdown: New directory.
2019-03-02ACPI tables translatorDamien Zammit
Exposes x86 ACPI tables as a netfs on a mount point * acpi: New directory. * Makefile (prog-subdirs): Add acpi. * hurd/hurd_types.h (FSTYPE_ACPI): New macro.
2018-10-30PCI ArbiterJoan Lledó
2018-03-04Avoid using loff_tSamuel Thibault
It may not be available depending on standard selection. * hurd/hurd_types.h (off_array_t, const_off_array_t): Use __loff_t instead of loff_t.
2018-01-28Add const MIG typesSamuel Thibault
* hurd/default_pager_types.h (const_recnum_array_t, const_vm_size_array_t): New types. * hurd/hurd_types.h (const_data_t, const_intarray_t, const_fd_mask_t, const_portarray_t, const_pidarray_t, const_idarray_t, const_off_array_t, *const_procinfo_t): New types.
2018-01-08Add a file_exec_file_name RPCEmilio Pozuelo Monfort
* hurd/fs.defs (file_exec): Deprecate in favor of... (file_exec_paths): ...this new RPC. * TODO: Update. * doc/hurd.texi: Update RPC name. * hurd/hurd_types.h: Update RPC name. * libdiskfs/boot-start.c: Update RPC name. * configure.ac: Check for presence of RPC stubs file_exec_paths exec_exec_paths. * exec/hashexec.c (check_hashbang): When file_exec_paths is available, use it instead of file_exec. * startup/startup.c (run, run_for_real, start_child): Likewise. * utils/login.c (main): Likewise. * libfshelp/start-translator-long.c (fshelp_start_translator_long): Likewise. * libdiskfs/file-exec.c (diskfs_S_file_exec): Move code to new function diskfs_S_file_exec_paths and call it. (diskfs_S_file_exec_paths): New function, use exec_exec_paths when available instead of exec_exec * libnetfs/file-exec.c (netfs_S_file_exec, netfs_S_file_exec_paths): Likewise. * trans/fakeroot.c (netfs_S_file_exec, netfs_S_file_exec_paths): Likewise. * libtrivfs/file-exec.c (trivfs_S_file_exec_paths): New function.
2016-12-19procfs: provide magic retry response for /proc/selfJustus Winter
* hurd/hurd_types.h: Document the magic retry string `pid'. * hurd/paths.h (_HURD_MAGIC): New macro. * procfs/main.c: Remove all code related to faking /proc/self. * procfs/main.h: Likewise. * procfs/rootdir.c: Likewise. Instead, return the magic retry response `pid' for the `self' node.
2014-06-15hurd: fix receiver lookup in termctty_open_terminalJustus Winter
* hurd/hurd_types.h (ctty_t): New type definition. * hurd/term.defs (ctty_t): New type definition. * term/mig-decls.h: New file. * term/mig-mutate.h: Add mutators, includes. * term/term.h: Add include guards. * term/users.c (S_termctty_open_terminal): Fix receiver lookup. * boot/boot.c (S_termctty_open_terminal): Likewise.
2014-04-09hurd: add a new type interrupt_t for the interrupt protocolJustus Winter
* hurd/hurd_types.defs (interrupt_t): New type. * hurd/hurd_types.h (interrupt_t): Likewise. * hurd/interrupt.defs (interrupt_operation): Use the new type.
2014-04-05hurd: add a new type for the exec_startup protocolJustus Winter
* hurd/hurd_types.defs (exec_startup_t): New type. * hurd/hurd_types.h (exec_startup_t): Likewise. * hurd/exec_startup.defs: Honor EXEC_STARTUP_IMPORTS. (exec_startup_get_info): Use the new type as receiver.
2013-02-28Add the timespec_t Hurd typeRichard Braun
This type matches the standard struct timespec, and allows passing time values with nanosecond precision in RPCs. * hurd/hurd_types.defs (timespec_t): New MIG type. * hurd/hurd_types.h: Include <time.h>. (timespec_t): New C type, aliasing struct timespec.
2011-08-20fix common misspellingsJonathan Neuschäfer
* Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
2002-06-27hurd/Marcus Brinkmann
2002-06-26 Marcus Brinkmann <marcus@gnu.org> * fs_notify.defs: Add MsgOption for send timeout. (dir_changed): Changed to simpleroutine. Change type of first argument to fs_notify_t. Add TICKNO argument. (file_changed): Likewise. * hurd_types.defs (fs_notify_t): New type. * hurd_types.h (fs_notify_t): Likewise. libdiskfs/ 2002-06-26 Marcus Brinkmann <marcus@gnu.org> * Makefile (DIST_FILES): Variable removed. (MIGSTUBS): Use fs_notifyUser.o, not ourfs_notifyUser.o. * ourfs_notify.defs: File removed. * diskfs.h (struct node): New members DIRMOD_TICK and FILEMOD_TICK. * node-make.c (diskfs_make_node): Initialize DIRMOD_TICK and FILEMOD_TICK. * dir-chg.c: Include "fs_notify_U.h" instead "ourfs_notify_U.h". (diskfs_S_dir_notice_changes): Use new dir_changed invocation instead nowait_dir_changed. (diskfs_notice_dirchange): Likewise. Increase tick number. Ignore send timeout error. * file-chg.c: Include "fs_notify_U.h" instead "ourfs_notify_U.h". (diskfs_S_file_notice_changes): Use new file_changed invocation instead nowait_file_changed. (diskfs_notice_filechange): Likewise. Increase tick number. Ignore send timeout error. console/ 2002-06-27 Marcus Brinkmann <marcus@gnu.org> * Makefile (MIGSTUBS): Add fs_notifyUser.o. (MIGSFLAGS): New variable. * console.c: Include "fs_notify_U.h". (struct modreq): New structure. (struct cons): New members DIRMOD_REQS and DIRMOD_TICK. (cons_notice_dirchange): New function. (vcons_lookup): Call cons_notice_dirchange. (netfs_S_dir_notice_changes): New function. (main): Initialize new members in CONS. * display.c (nowait_file_changed): Update to new interface (new argument TICKNO). (do_mach_notify_msg_accepted): Call nowait_file_changed with new argument. (display_notice_changes): Likewise. (display_notice_filechange): Likewise.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* hurd_types.defs (loff_t, ino64_t): New types, 64 bits. (off_t): Type removed. (off_array_t): Use loff_t instead of off_t as base type. * hurd_types.h (off_array_t): Likewise. [_FILE_OFFSET_BITS != 64] (io_statbuf_t, fsys_statfsbuf_t): Define using struct stat64/statfs64 instead of struct stat/statfs. * io.defs (io_identity): Use ino64_t for FILENO. * fs.defs (file_set_size): off_t -> loff_t * fs_notify.defs (file_changed): Likewise. * io.defs (io_write, io_read, io_seek): Likewise. * io_request.defs: Likewise for those RPCs' *_request variants. * io_reply.defs: Likewise for those RPCs' *_reply variants.
2002-06-052002-06-05 Roland McGrath <roland@frob.com>Roland McGrath
* hurd_types.h (struct procinfo): New member `taskevents'. (PI_FETCH_TASKEVENTS): New macro.
2002-05-082002-05-07 Roland McGrath <roland@frob.com>Roland McGrath
* msg.defs (msg_report_wait): int -> mach_msg_id_t * hurd_types.h: Include <mach/message.h>. (struct procinfo): int -> mach_msg_id_t for rpc_block.
2002-03-05doc/Marcus Brinkmann
2002-03-05 Marcus Brinkmann <marcus@gnu.org> * hurd.texi (Diskfs Callbacks): Refer to dir_lookup, not dir_pathtrans. Reported by James A Morrison <ja2morri@student.math.uwaterloo.ca>. fstests/ 2002-03-05 Marcus Brinkmann <marcus@gnu.org> * fstests.c (main): Call dir_lookup, not dir_pathtrans. Reported by James A Morrison <ja2morri@student.math.uwaterloo.ca>. hurd/ 2002-03-05 Marcus Brinkmann <marcus@gnu.org> * fs.defs: Refer to dir_lookup, not dir_pathtrans, in comments. * fsys.defs: Likewise. * hurd_types.h (enum retry_type): Likewise. Reported by James A Morrison <ja2morri@student.math.uwaterloo.ca>. libdiskfs/ 2002-03-05 Marcus Brinkmann <marcus@gnu.org> * diskfs.h: Refer to dir_lookup, not dir_pathtrans, in comment. * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. Reported by James A Morrison <ja2morri@student.math.uwaterloo.ca>. libfshelp/ 2002-03-05 Marcus Brinkmann <marcus@gnu.org> * fshelp.h: Refer to dir_lookup, not dir_pathtrans, in comment. Reported by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
2001-06-162001-06-15 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* hurd_types.h: New macro, FS_TRANS_ORPHAN.
2000-11-152000-11-15 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* hurd_types.h: Doc fix reported by Neal H Walfield (neal@cs.uml.edu), STORAGE_NULL is actually STORAGE_ZERO.
1999-04-271999-04-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* hurd_types.h (EXEC_SIGTRAP): New macro.
1998-12-271998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* hurd_types.h (enum file_storage_class): New values STORAGE_REMAP, STORAGE_COPY; moved with their comments from libstore/store.h.
1998-11-16Wed Oct 28 22:49:18 1998 Joel N. Weber II <devnull@methedrine.ai.mit.edu>Roland McGrath
* hurd_types.h: Added FSTYPE_HTTP, FSTYPE_MEMFS, and FSTYPE_ISO9660.
1998-08-12Tue Aug 11 21:12:06 1998 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* hurd_types.h (dir_changed_type, file_changed_type): Doc fix.
1996-05-06Frob comments on enum file_storage_class.Miles Bader
1996-05-06(HURD_RELEASE): Update to 0.0.Michael I. Bushnell
1996-05-06(struct procinfo): Add exitstatus and sigcode members.Michael I. Bushnell
(FSTYPE_SOCKET): Doc fix. (retry_type) [FS_RETRY_REAUTH]: Doc fix. (file_storage_class): Add STORAGE_NULL, STORAGE_CONCAT, STORAGE_INTERLEAVE, and STORAGE_LAYER. (struct fsys_statfsbuf): Delete type. (fsys_statfsbuf_t): Now based upon struct statfs.
1996-05-06(struct procinfo): Add exitstatus and sigcode members.Michael I. Bushnell
1996-05-03(EXEC_INHERITED): Macro removed.Roland McGrath
1996-05-03(EXEC_TRACED): Macro removed.Roland McGrath
(INIT_TRACEMASK): New enum constant.
1995-10-31Add missing */.Roland McGrath
1995-10-30(struct procinfo): New (buried) member `died'.Michael I. Bushnell
1995-10-30(PI_FETCH_TASKINFO, PI_FETCH_THREADS, PI_FETCH_THREAD_BASIC,Michael I. Bushnell
PI_FETCH_THREAD_SCHED, PI_FETCH_THREAD_WAITS): New flags. (procinfo): New (buried) member `rpc_block'.
1995-10-30(enum file_storage_class): Add STORAGE_TASK. Drop all the MUTATEDMichael I. Bushnell
bits. (STORAGE_MUTATED): New flag.
1995-10-30(enum file_storage_class): Added new classes STORAGE_MEMORY andMichael I. Bushnell
STORAGE_MEMORY_MUTATED. Doc fixes.
1995-10-30(PI_LOGINLD, PI_WAITING, PI_TRACED, PI_GETMSG): New flags.Michael I. Bushnell
1995-10-06(off_array_t): New type.Miles Bader
1995-10-03(struct fsys_statfsbuf): fsys_stb_bsize -> fsys_stb_iosize.Michael I. Bushnell
fsys_stb_fsize -> fsys_stb_bsize.
1995-09-26(file_storage_class): New type.Michael I. Bushnell
1995-09-17(EXEC_STACK_ARGS): New macro.Roland McGrath
1995-07-17(pf_t): New type.Miles Bader
1995-01-17(EXEC_INHERITED): New macro.Roland McGrath
1995-01-16(EXEC_TRACED): New macro.Roland McGrath
1994-08-26entered into RCSMichael I. Bushnell
1994-08-25Formerly hurd_types.h.~94~Michael I. Bushnell
1994-07-08Formerly hurd_types.h.~93~Michael I. Bushnell
1994-06-16Formerly hurd_types.h.~92~Roland McGrath