9fans

9fans

Fans of Plan 9

Member Since 7 years ago

Experience Points
0
follower
Lessons Completed
0
follow
Best Reply Awards
5
repos
Activity
Dec
29
3 weeks ago
Activity icon
fork

ilanpillemer forked 9fans/go

⚡ Packages and commands for using Plan 9 from Go
ilanpillemer MIT License Updated
fork time in 3 weeks ago
Dec
28
3 weeks ago
started
started time in 3 weeks ago
Dec
27
3 weeks ago
Activity icon
fork

amirrezaask forked 9fans/go

⚡ Packages and commands for using Plan 9 from Go
amirrezaask MIT License Updated
fork time in 3 weeks ago
pull request

djmoch pull request 9fans/go

djmoch
djmoch

acmego: Add Python formatter

Enable formatting of Python code with acmego -f.

Activity icon
fork

djmoch forked 9fans/go

⚡ Packages and commands for using Plan 9 from Go
djmoch MIT License Updated
fork time in 3 weeks ago
Activity icon
issue

benghancock issue comment 9fans/plan9port

benghancock
benghancock

Compiler throws a warning for u.h sizeof

/home/sn0w/plan9port/include/u.h:65:42: warning: expression does not compute the number of elements in this array; element type is ‘struct __jmp_buf_tag’, not ‘long int’ [-Wsizeof-array-div] 65 | typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)]; | ^ /home/sn0w/plan9port/include/u.h:65:42: note: add parentheses around the second ‘sizeof’ to silence this warning

benghancock
benghancock

I ran into the same issue, so figured I'd chime in on this thread even though it's been open for a while. First things first though: Thanks very much for plan9port! I came to know the joys of using Acme thanks to this project.

I ran the INSTALL script on a machine running openSUSE the other day and saw a stream of repeated compiler warnings, the most common of which was this one, excerpted with context:

>>> cd /usr/local/plan9/src/cmd/devdraw; mk -k install
9c -I/usr/include x11-load.c
/usr/local/plan9/include/u.h:65:42: warning: expression does not compute the number of elements in this array; element type is ‘struct __jmp_buf_tag’, not ‘long int’ [-Wsizeof-array-div]
   65 | typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
      |                                          ^
/usr/local/plan9/include/u.h:65:42: note: add parentheses around the second ‘sizeof’ to silence this warning

My knowledge of C is very shallow, but following the message in the warning, I tried making this change (which I see is already a PR in #520)

diff --git a/include/u.h b/include/u.h
index 856e10f4..3d779483 100644
--- a/include/u.h
+++ b/include/u.h
@@ -62,7 +62,7 @@ extern "C" {
 #define _NEEDUINT 1
 #define _NEEDULONG 1

-typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
+typedef long p9jmp_buf[sizeof(sigjmp_buf)/(sizeof(long))];

 #if defined(__linux__)
 #      include <sys/types.h>

Re-executing ./INSTALL afterward successfully silences this warning, and things still seem to work fine (though I admittedly only tested Acme).

Here's the version of gcc I was running:

gcc version 11.2.1 20211124 [revision 7510c23c1ec53aa4a62705f0384079661342ff7b] (SUSE Linux)

OS information

$ lsb_release -a
LSB Version:    n/a
Distributor ID: openSUSE
Description:    openSUSE Tumbleweed
Release:        20211223
Codename:       n/a

Acme also worked without the change, and I'm not sure if the change would have other effects elsewhere, but I thought I would share this info in case it's helpful.

Thanks again!

Dec
26
4 weeks ago
started
started time in 3 weeks ago
started
started time in 3 weeks ago
started
started time in 3 weeks ago
Dec
23
1 month ago
started
started time in 4 weeks ago
Activity icon
fork

researcher-1123 forked 9fans/plan9port

⚡ Plan 9 from User Space
researcher-1123 Updated
fork time in 4 weeks ago
pull request

agzg pull request 9fans/9fans.github.io

agzg
agzg

edit repository link

No repository at https://9fans.github.io/plan9port. An attempt to clone using this link:

$ git clone https://9fans.github.io/plan9port plan9
Cloning into 'plan9'...
fatal: repository 'https://9fans.github.io/plan9port/' not found
Activity icon
fork

agzg forked 9fans/9fans.github.io

⚡ 9fans.github.io site
agzg Updated
fork time in 4 weeks ago
started
started time in 4 weeks ago
Dec
22
1 month ago
Activity icon
fork

Rubo3 forked 9fans/plan9port

⚡ Plan 9 from User Space
Rubo3 Updated
fork time in 1 month ago
Activity icon
fork

Rubo3 forked 9fans/plan9port

⚡ Plan 9 from User Space
Rubo3 Updated
fork time in 1 month ago
started
started time in 1 month ago
Dec
21
1 month ago
Activity icon
issue

amirrezaask issue 9fans/go

amirrezaask
amirrezaask

Adding persian/arabic language support

started
started time in 1 month ago
started
started time in 1 month ago
started
started time in 1 month ago
Dec
20
1 month ago
Activity icon
fork

neosimsim forked 9fans/go

⚡ Packages and commands for using Plan 9 from Go
neosimsim MIT License Updated
fork time in 1 month ago
Activity icon
fork

rick-org forked 9fans/go

⚡ Packages and commands for using Plan 9 from Go
rick-org MIT License Updated
fork time in 1 month ago
Activity icon
fork

madina-col-organization forked 9fans/go

⚡ Packages and commands for using Plan 9 from Go
madina-col-organization MIT License Updated
fork time in 1 month ago
Dec
19
1 month ago
started
started time in 1 month ago
Dec
18
1 month ago
Activity icon
issue

fhs issue comment 9fans/plan9port

fhs
fhs

Add wayland support to devdraw

There isn't a great way to move the mouse that I've found, so that is left unimplemented. Everything else seems to work fairly well under sway, and I would believe this to hold true for most other wlroots compositors. I would be interested in reports for those running the wayland variants of gnome of KDE, I have been unable to test under those compositors.

fhs
fhs

Seem to be working in sway after the following change. A bit disappointed it doesn't handle scaling on high dpi display -- that's the main reason I'd want to use wayland natively.

diff --git a/src/cmd/devdraw/wl-screen.c b/src/cmd/devdraw/wl-screen.c
index 3710b43c..e5a32ead 100644
--- a/src/cmd/devdraw/wl-screen.c
+++ b/src/cmd/devdraw/wl-screen.c
@@ -149,6 +149,7 @@ gfx_main(void)
 {
        clientruning = 1;
        gfx_started();
+       for(;;) sleep(3600*1000);
 }

 Memimage*
Dec
17
1 month ago
Activity icon
fork

palmamartin forked 9fans/go

⚡ Packages and commands for using Plan 9 from Go
palmamartin MIT License Updated
fork time in 1 month ago
push

rogpeppe push 9fans/go

rogpeppe
rogpeppe

acme/acmego: allow append at 0

When a line is being added to the start of a document (a classic example being when gofmt adds a //go:build line), the diff logic was ignoring it and thus always thinking that the file needed changes without ever actually applying the changes.

rogpeppe
rogpeppe

Merge pull request #89 from rogpeppe-contrib/018-acmego-fix-zero-append

acme/acmego: allow append at 0

commit sha: 392faaeddcc07ad9f8a59a1c80aefee7b0e6aec5

push time in 1 month ago
pull request

rogpeppe pull request 9fans/go

rogpeppe
rogpeppe

acme/acmego: allow append at 0

When a line is being added to the start of a document (a classic example being when gofmt adds a //go:build line), the diff logic was ignoring it and thus always thinking that the file needed changes without ever actually applying the changes.

pull request

rogpeppe pull request 9fans/go

rogpeppe
rogpeppe

acme/acmego: allow append at 0

When a line is being added to the start of a document (a classic example being when gofmt adds a //go:build line), the diff logic was ignoring it and thus always thinking that the file needed changes without ever actually applying the changes.