| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
get_privileged_ports adds a port ref, so we have to deallocate it.
|
|
|
|
|
| |
Signed-off-by: Zhaoming Luo <zhmingluo@163.com>
Message-ID: <20241213005831.748151-1-zhmingluo@163.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A /hurd/rtc translator will be created as, users can create a /dev/rtc
device using the following command:
```
sudo settrans -c /dev/rtc /hurd/rtc
```
* Makefile: add rtc-cmos server into the compile chain
* hurd/pioctl.defs: new file. Interfaces for rtc ioctl operations
* hurd/rtc.h: new file. Interfaces for rtc device
* rtc/Makefile: new file. Makefile for rtc server
* rtc/main.c: new file. Initialisation for rtc translator
* rtc/mig-mutate.h: new file. Type translation for rtc server
* rtc/rtc-cmos_pioctl-ops.c: new file. The rtc-cmos server-side implementation
Signed-off-by: Zhaoming Luo <zhmingluo@163.com>
Message-ID: <20241211005415.507656-2-zhmingluo@163.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Until we make gnumach fully parallel, we need a way to execute
on slave processor set on smp-enabled gnumach.
For example:
$ /sbin/smp /bin/bash
$
will launch a shell that executes commands only within slave pset,
consisting of all processors except processor 0.
We can thus test parallelism on Hurd in a controlled way.
Message-ID: <20241126103747.353948-1-damien@zamaudio.com>
|
| |
|
|
|
|
|
|
| |
Reviewed-by: Sergey Bugaev <bugaevc@gmail.com>
Message-ID: <20241208045237.1607-1-zhmingluo@163.com>
|
|
|
|
| |
Message-ID: <20241207045245.1457-1-zhmingluo@163.com>
|
|
|
|
|
|
|
|
|
|
| |
We discard any written data, but we still need to set *amount. Not doing
that is undefined behavior, and causes the write to appear to fail. This
is the cause of a libzstd test failure on GNU/Hurd in particular.
Reported-by: Diego Nieto Cid <dnietoc@gmail.com>
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-ID: <20241204113402.540235-1-bugaevc@gmail.com>
|
|
|
|
|
|
|
|
| |
Since libmachdev cannot currently serve netfs as well as trivfs on a
path, we need to allow connecting to the bootstrapped acpi server
to shut down the machine.
Message-ID: <20241110084135.3859485-3-damien@zamaudio.com>
|
|
|
|
|
|
|
|
| |
The acpi server needs to survive after the shutdown notification,
so it can serve S_acpi_sleep() RPC to actually shut down the machine.
Therefore we need to keep the server alive and not respond to the
trivfs goaway request.
Message-ID: <20241110084135.3859485-2-damien@zamaudio.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I don't think ioctls.h is a good place looking for the subsystem id
calculation, instead hurd/ioctls.defs, it contains the following codes:
```
/* Calculate the MiG subsystem (i.e. first message ID)
for the RPCs produced by ioctl requests in the given group. */
#define IOC_GROUP_SUBSYSTEM(group) (100000 + ((group) - 'f') * 4000)
```
Message-ID: <20241108031619.312288-1-zhmingluo@163.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This compiles in and enables the new framebuffer codepath
in the vga driver, if detected.
Message-ID: <20241028080849.3196116-3-damien@zamaudio.com>
|
|
|
|
|
|
|
|
|
|
|
| |
When bootloader sets a linear framebuffer mode and passes
the required info to Hurd via multiboot info table, we
can use this framebuffer as is.
Otherwise, fall back to EGA text mode as before.
This is just the new framebuffer code as a separate commit.
Message-ID: <20241028080849.3196116-2-damien@zamaudio.com>
|
|
|
|
|
|
| |
Adding the missing NULL sentinel pointer allows
delete key to function without crashing pc_kbd driver.
Message-ID: <20241028080849.3196116-1-damien@zamaudio.com>
|
|
|
|
|
|
|
|
|
| |
Come across NETIF_FOREACH in /usr/include/lwip/lwip/netif.h, but I'm not
sure if it affects some self-contained stuff.
netif.h belongs to liblwip-dev.
Message-ID: <tencent_3A8C7926D4CB059A970F2B5046C547149409@qq.com>
|
|
|
|
| |
Message-ID: <20241023003509.2994709-1-damien@zamaudio.com>
|
|
|
|
| |
Adding a line of missing comment
|
|
|
|
|
|
|
|
|
| |
As the acpi translator requires libirqhelp, we cannot fail when
libirqhelp cannot connect to acpi translator, break the egg/chicken.
acpi translator will only call the irqhelp api with fixed gsi during startup,
so won't require itself to be started yet.
Message-ID: <20241023003446.2994643-1-damien@zamaudio.com>
|
|
|
|
|
|
| |
This change is required when the libacpica library is updated
to link with hurd library irqhelp.
Message-ID: <20241021032136.2915779-2-damien@zamaudio.com>
|
|
|
|
|
|
| |
libmachdev implements the mach_i386 routines, so we have to implement
this one.
Message-ID: <3pe32mbui3x3gueiyk5ybzrj54gkbwddlk6kqjconwg7jnxlc6@kgsaffiftak2>
|
|
|
|
| |
This reverts commit a698c6dafb63de4e69450b63ba7f4b71892c27e4.
|
|
|
|
|
|
| |
We avoid using repeated definitions and also update kd_event with the
new 64bit compatible fields (rpc_time_value).
Message-ID: <Y7zdiy1QtUz4RSY3@jupiter.tail36e24.ts.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We do a few things here:
- Move search_path to the scope where it is used to make dependencies
more clear.
- Have a separate variable to store the file name we eventually need to
free and move the free logic to happen in a single place.
Both of this allows us to still free the name even if a fault is generated and
also avoids a compiler warning as we try to assign a 'const char*'
file_name_exec to a 'char *', making it more clear to what exactly we
need to free. I also believe 'error' in line 245 was not initialized in
case 'file_name_exec' is used and this fixes that too.
Message-ID: <20240121210757.1900938-1-flaviocruz@gmail.com>
|
|
|
|
| |
Message-ID: <20240121210757.1900938-4-flaviocruz@gmail.com>
|
|
|
|
| |
Message-ID: <20240121210757.1900938-3-flaviocruz@gmail.com>
|
|
|
|
|
| |
Not needed since b2c97e251bb470e6f967c716081675a96dbde59c
Message-ID: <20240121210757.1900938-2-flaviocruz@gmail.com>
|
|
|
|
|
| |
/hurd/remap --version was claiming to be fakeroot
Message-ID: <621e135a-f272-43e8-9c10-35804abb1ed5@xobnur.uk>
|
| |
|
| |
|
|
|
|
| |
We don't actually want to write these anyway.
|
|
|
|
| |
We need to mask out before shifting the bits.
|
| |
|
|
|
|
|
| |
mach_open_devstream creates a fully-buffered stream by default.
This prevents from seeing various messages.
|
| |
|
|
|
|
| |
In case the user is using a debug kernel, they will get to see these.
|
|
|
|
| |
It now provides a pkg-config file instead of libgcrypt-config
|
|
|
|
| |
Message-ID: <3pmgbk2myx4phdb6wcso54solmybulrvbytols5md3nri2p2qp@xjmfmpvwjp6t>
|
|
|
|
|
|
|
|
|
| |
top of sylink/device/fifo/socket files.
While these are short-circuited translators and simply change st_mode,
actual translators can be set on top. We want `showtrans` to
show the actual passive translator, not the short-circuited one.
Message-ID: <b3ujoovkmz3iagqkmv6lyzgqsv3g5u2wiaqwktlttbalyd7oak@6qeiiupzzmag>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This issue come from ruby language community. Below test program
hang up when only run on Linux.
% uname -mrsv
Linux 2.6.26-2-486 #1 Sat Dec 26 08:37:39 UTC 2009 i686
% ruby -rsocket -ve '
BasicSocket.do_not_reverse_lookup = true
serv = TCPServer.open("127.0.0.1", 0)
s1 = TCPSocket.open("127.0.0.1", serv.addr[1])
s2 = serv.accept
s2.close
s1.write("a") rescue p $!
s1.write("a") rescue p $!
Thread.new {
s1.write("a")
}.join'
ruby 1.9.3dev (2010-07-06 trunk 28554) [i686-linux]
#<Errno::EPIPE: Broken pipe>
[Hang Here]
FreeBSD, Solaris, Mac doesn't. because Ruby's write() method call
select() internally. and tcp_poll has a bug.
SUS defined 'ready for writing' of select() as following.
| A descriptor shall be considered ready for writing when a call to an output
| function with O_NONBLOCK clear would not block, whether or not the function
| would transfer data successfully.
That said, EPIPE situation is clearly one of 'ready for writing'.
We don't have read-side issue because tcp_poll() already has read side
shutdown care.
| if (sk->sk_shutdown & RCV_SHUTDOWN)
| mask |= POLLIN | POLLRDNORM | POLLRDHUP;
So, Let's insert same logic in write side.
- reference url
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/31065
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/31068
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
|
|
|
| |
Callers are not expecting to get EPIPE, and rather a real EOF, like is done
in S_io_read.
|
|
|
|
|
|
|
|
|
| |
* ftpfts/ftpfs: use appropriate function signature for interrupt_check.
* pfinet/Makefile: turn off warnings in Linux driver code that are now
errors in GCC 14.
* pfinet/glue-include/linux/socket.h: remove duplicate functions. These
are implemented in linux-src/net/core/iovec.c.
Message-ID: <pnx5mho5ipgabehscwu2ogk5l7zfjsxpmjz37fuplgbtohwtjj@ofhr2r5xvqm6>
|
|
|
|
|
| |
Compilation fails otherwise due to -Werror=implicit-function-declaration
Message-ID: <uuxfc5gjinlekgdyjzxesz72t6dabbl6s2f2n2fi7iw2bi5nl5@js7sx73kagmd>
|
|
|
|
|
| |
If netdde is restarting, it may have not finished probing devices, give
it some time.
|
|
|
|
|
| |
The bootstrap filesystem doesn't have to be ext2fs
Message-ID: <8932f426-8ab5-4344-81a6-52a90dfada09@runbox.com>
|
|
|
|
|
| |
The field length check should check for field overflow.
Message-ID: <8e69aefc-8c08-4189-a5b9-974303427597@xobnur.uk>
|
|
|
|
|
|
| |
Add a helper library for attaching interrupt handlers in userspace.
Message-ID: <20240326045846.1661099-2-damien@zamaudio.com>
|