aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/portinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* libshouldbeinlibc: Port to x86_64Sergey Bugaev2023-05-101-7/+7
| | | | Message-Id: <20230508213136.608575-2-bugaevc@gmail.com>
* Use default pager MiG stubs from Hurd instead of gnumachFlavio Cruz2023-04-071-1/+1
| | | | | | | | | | | | Hurd code relies on gnumach default_pager.defs headers when making calls using the default pager RPC. Those stubs were checked in back in the 90s and are essentially unused because gnumach does not implement or use that interface. Instead use the Hurd interface directly. This is safe since the Hurd stubs are a super set of the gnumach stubs. Later, we won't need to install the gnumach stubs anymore through glibc. Message-Id: <ZC5WqPKfCCiE8D29@jupiter.tail36e24.ts.net>
* Modernize code by removing use of old style definitions.Flavio Cruz2023-04-031-2/+2
| | | | | Also add -Werror=old-style-definition to enforce new code. Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
* Fix *printf specifier for user space mach ports.Flavio Cruz2022-12-061-4/+4
| | | | | mach_port_t are mach_port_name_t and thus require %u instead of %lu. Message-Id: <Y42RELMbulK4xaKM@reue>
* portinfo: Do not compare port to anything when it is MACH_PORT_DEADSamuel Thibault2022-01-041-1/+4
| | | | | Otherwise it would successfully compare to any port that happens to be MACH_PORT_DEAD, e.g. the bootstrap port.
* portinfo: Use benign RPCs to discover what ports are all aboutSamuel Thibault2022-01-041-26/+419
| | | | | | | | Most servers have at least one RPC which is benign enough to be used to identify whether a port supports the server and provides some useful information to identify what the port is about. This adds support for most of these, allowing to identify auth ports, file descriptors, sockets, etc.
* fix compiler warnings in hurd/libshouldbeinlibcFlavio Cruz2015-12-291-4/+4
|
* 2002-05-08 Roland McGrath <roland@frob.com>Roland McGrath2002-05-081-12/+12
| | | | * portinfo.c (print_port_info): Use %z formats for port names.
* 1999-07-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-0/+3
| | | | | | | * portinfo.h: Don't include <sys/types.h>, <sys/mman.h>. This is an exported header, and its decls don't need them. * portinfo.c: Include them here instead. * xportinfo.c: And here.
* 1999-07-11 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-111-3/+3
| | | | | | | | | | | | | * ugids-argp.c (parse_opt): Clarify if-then-else structure by adding more braces. * portinfo.c (print_port_info): Cast first arg of munmap correctly. (print_task_ports_info): Likewise. * xportinfo.c (print_xlated_task_ports_info): Likewise. * idvec-auth.c (idvec_merge_auth): Likewise. * portxlate.c (port_name_xlator_create): Likewise. (port_name_xlator_free): Likewise.
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-031-7/+4
| | | | | | | | | | * fsysops.c (fsys_get_readonly): Use munmap instead of vm_deallocate. * idvec-auth.c (idvec_merge_auth): Likewise. * portinfo.c (print_port_info): Likewise. (print_task_ports_info): Likewise. * portxlate.c (port_name_xlator_create): Likewise. (port_name_xlator_free): Likewise. * xportinfo.c (print_xlated_task_ports_info): Likewise.
* Add braces to silence gcc warnings.Roland McGrath1998-10-201-12/+14
|
* Fix function name typo.Miles Bader1996-03-291-2/+2
|
* Initial revisionMiles Bader1996-03-291-0/+156