Re: [9fans] equality sign in Rc

2017-05-16 Thread Giacomo
anyone answer this question? Rc run commands ;-) Giacomo

Re: [9fans] Git/fs: Possibly Usable

2019-04-03 Thread Giacomo
diffs the changed files. > git/merge: Yup, what it says on the label. Should > also be a script around git/fs. > git/log:Need to figure out how to make it filter > by files. > /n/git/HEAD:add /n/git/head subtree which points > to the current commit. > >...And a whole bunch more. Impressive! I didn't imagine one could implement git in so few lines of C! Thanks for challenging my assumptions! I'd like to port it to Jehanne but I cannot find a license in the repository, so in theory it's "all rights reserved" under most jurisdictions. What's your take on this? Did you intend to put it under public domain instead? Maybe MIT? Or LPL? Giacomo

Re: [9fans] Git/fs: Possibly Usable

2019-04-03 Thread Giacomo
On April 3, 2019 4:02:49 PM UTC, o...@eigenstate.org wrote: >Don't particularly care. At some point I'd like to commit it to 9front, >but I can relicense it then. > >Do you have a preference? Probably MIT or a BSD. But I can also live with any copyleft of your choice. Giacomo

Re: [9fans] Plan 9 on Xen 3.0

2008-10-27 Thread giacomo
> virtualization is fine. But my recommendation is that you use lguest > or kvm -- not xen. Xen is painful to set up and run. > > ron Any problem with intel x86_64? I knew lguest could guest linux only! Giacomo

[9fans] Plan 9 on Microsoft Virtual PC

2010-01-29 Thread Giacomo Tesio
g with the glenda user. BUT, after the rio start I got the attached error. I'll use QEMU as I read it should work, but I hope this feedback could help. Giacomo <>

Re: [9fans] Plan 9 on Microsoft Virtual PC

2010-01-29 Thread Giacomo Tesio
lar procedure worked on QEMU, but it's by far slower. If you managed to get a Plan9 working Microsoft Virtual PC please tell me the procedure you used, the hd settings, the partitions and how you configured the mbr... Thanks a lot! Giacomo On Fri, Jan 29, 2010 at 4:46 PM, Patrick Kel

[9fans] A few questions about 9p

2015-01-29 Thread Giacomo Tesio
read (obviously I'm just talking about single files, not directory). When I should clunk the afid? What about encryption? Is it completely delegated to the transport layer? Thanks for your help! Giacomo

Re: [9fans] A few questions about 9p

2015-01-29 Thread Giacomo Tesio
Il 29/Gen/2015 11:12 "Charles Forsyth" ha scritto: > > > On 29 January 2015 at 09:04, Giacomo Tesio wrote: >> >> What's the meaning of qids? I see that responses often include them but request messages do not. > > see intro(5) or intro(9P) depe

Re: [9fans] A few questions about 9p

2015-01-29 Thread Giacomo Tesio
Actually I wasn't able to understand when the afid was supposed to be clunk reading attach 5. I was in doubt that the afid had to be the last fid clunked. Giacomo Il 29/Gen/2015 15:56 ha scritto: > size[4] Tattach tag[2] fid[4] afid[4] uname[s] aname[s] > size

[9fans] wstat and atomic directory change

2015-01-30 Thread Giacomo Tesio
usly I'm not referring to Plan 9 file servers (I guess this would be a non retrocompatbile change), but I'm considering if such interpretation would be wrong (according to the official specifications). A server supporting such behaviour could be considered a 9p2000 conformant server? Giacomo

Re: [9fans] wstat and atomic directory change

2015-01-30 Thread Giacomo Tesio
this could be a typo in the intro(5) man page, or in my understanding of its phrasing. Still, using this protocol "feature" to enable atomic directory change could be useful in my use cases, but I don't want to build yet another 9p2000 extension. Giacomo 2015-01-30 15:13 GMT+0

Re: [9fans] wstat and atomic directory change

2015-02-03 Thread Giacomo Tesio
kind of operations? Thanks for your patience... :-) Giacomo 2015-01-30 23:49 GMT+01:00 Anthony Sorace : > > > On Jan 30, 2015, at 10:59 , Giacomo Tesio wrote: > > > > It surely would not be conformant to Plan 9 systems, but to the protocol? > > No. Joel has it rig

[9fans] 9p2000 agent supporting multiple clients on a single connection

2015-02-03 Thread Giacomo Tesio
tions that I saw were synchronous, allowing only one client per connection. Where can I find an implementation of these features? I guess it would be a really instructive read. Giacomo

Re: [9fans] wstat and atomic directory change

2015-02-04 Thread Giacomo Tesio
requires delving into the namespace to tell that the directories are > still under the > same mount, and some non-uniform operations. > Good point. But thus, what are the alternatives? Giacomo

Re: [9fans] wstat and atomic directory change

2015-02-04 Thread Giacomo Tesio
structure at the end of a directory entry. However this solution probably has not been adopted to enable safe concurrency in the file creation and removal. However this asymmetry shows that directories cannot be (pratically) handled in the same way of files. Giacomo 2015-02-04 15:06 GMT+01:00 erik

Re: [9fans] wstat and atomic directory change

2015-02-04 Thread Giacomo Tesio
ge real files is not my actual issue here. I'm wondering for a synthetic filesystem in which, when you move a folder in a special directory, something magic happens. As far as I can see, it is not possible with a 9p2000 fileservice, is it? Giacomo 2015-02-04 20:23 GMT+01:00 erik quanstrom :

Re: [9fans] wstat and atomic directory change

2015-02-05 Thread Giacomo Tesio
2015-02-05 5:26 GMT+01:00 : > > But why we don't have Tmove for example? > > http://9front.org/img/tmove.jpg > > ROFTL! :-D

Re: [9fans] wstat and atomic directory change

2015-02-05 Thread Giacomo Tesio
transfers your > entire disk contents to the cloud: would you like it to be perceived > as trivial? What happens if you interrupt it? Worse, what happens if > you can't interrupt it? I won't be drammatic: you can always unplug the enthernet! :-D Btw, I see the point. Giacomo

Re: [9fans] wstat and atomic directory change

2015-02-05 Thread Giacomo Tesio
about the arguments that lead to such decision? Giacomo 2015-02-05 9:21 GMT+01:00 Giacomo Tesio : > 2015-02-05 5:13 GMT+01:00 : >> >> > But why we don't have Tmove for example? >> >> Because its semantics are much, much more complex and the users need >> to

Re: [9fans] wstat and atomic directory change

2015-02-05 Thread Giacomo Tesio
e, is it? > > i don't see why you can't make a magic directory that works that way. > How? Which 9p message would trigger the magic? I just see 2 options: 1. Have a control file 2. Use custom wstat with full path to move But if both are wrong, I'm lost. Giacomo

[9fans] telnet to port (and webfs debug)

2015-02-12 Thread Giacomo Tesio
lly forge an http request. However I can't understand hot to specify a port reading man telnet. What's plan9 equivalent of telnet www.google.com 80 Giacomo

Re: [9fans] telnet to port (and webfs debug)

2015-02-12 Thread Giacomo Tesio
Yes hget is an rc script running on webfs. Giacomo Il 12/Feb/2015 13:14 "Quintile" ha scritto: > I have s feeling that get is a script that accesses webfs, and maybe the > 9front mothers does the same. are you running webfs? > > -Steve > > > > > > &

Re: [9fans] telnet to port (and webfs debug)

2015-02-13 Thread Giacomo Tesio
host in /usr/glenda/.hgrc). Giacomo 2015-02-12 17:27 GMT+01:00 : > the httpproxy variable is read by webfs on startup only. webfs is usually > started in your $home/lib/profile to provide http client service. > > just setting httpproxy before running hget or mothra has no > effect

Re: [9fans] telnet to port (and webfs debug)

2015-02-13 Thread Giacomo Tesio
I'll find my way to acme and plan9 I'll send you a patch... Thanks you all for your help! Giacomo 2015-02-13 10:11 GMT+01:00 : > heres how it should look like (tuttle.9hal: is my proxy servr): > > term% httpproxy=http://tuttle.9hal: webfs -d; hget http://goo

Re: [9fans] telnet to port (and webfs debug))

2015-02-13 Thread Giacomo Tesio
Once it works, you can add it at the beginning of your lib/profile. Note that, strangely enough, hg ignores the .hgrc in your home directory. The hgrc(8) speak about Unix (and Windows) but since GNU is Not U... ehm... Plan9 is not Unix (:-D), I can't say where to write it. Giacomo 2015-0

[9fans] pkg(1) and tbz2

2015-02-19 Thread Giacomo Tesio
. I noted that all files in http://9front.org/pkg/386/ are tbz. I'd like to know if (and how) I could install the tar.gz and tar.bz2 packages from that repo or I have to manually download them, repackage as with pkg/create and then install from a local pkgpath. Thanks for your help! Giacomo

Re: [9fans] pkg(1) and tbz2

2015-02-19 Thread Giacomo Tesio
So have I any hope to compile them? Giacomo 2015-02-19 12:24 GMT+01:00 Álvaro Jurado : > I don't think it can work with pkg. > Note that it isn't a "repo" and has only 72 KB/s max uploading rate. So it > means that will be very slow and > none of that packages w

Re: [9fans] pkg(1) and tbz2

2015-02-19 Thread Giacomo Tesio
Ops. Sorry I thought I was writing to 9front. Thanks for your help! Giacomo Il 19/Feb/2015 12:49 "Álvaro Jurado" ha scritto: > First, you need a gcc to compile gcc. There is a complete set here > <https://drive.google.com/folderview?id=0B6YNt0aHfaA0am1oNGNSR3pXU1U&us

[9fans] rc: pwd in $prompt

2015-02-26 Thread Giacomo Tesio
Hi, I'm a bit dumb, but reading rc(1) I can't grasp how I can have the current dir printed in prompt. Is it possible at all? Giacomo

Re: [9fans] rc: pwd in $prompt

2015-02-26 Thread Giacomo Tesio
Ops... Thanks! :-) Giacomo 2015-02-26 11:08 GMT+01:00 Álvaro Jurado : > http://www.plan9.bell-labs.com/wiki/plan9/Tip_o%27_the_day/index.html > > "To set your prompt in rc to reflect your current directory add this to your > profile" part. > > Álvaro Jurado Cuevas &

[9fans] drawterm sources

2015-03-02 Thread Giacomo Tesio
impler solution? Buying a three-button mouse is quite hard in Italy, and above all its usage is not viable on my couch... :-) Thanks for your help! Giacomo

Re: [9fans] drawterm sources

2015-03-02 Thread Giacomo Tesio
Thanks a lot! :-D Giacomo 2015-03-02 11:55 GMT+01:00 yy : > On 2 March 2015 at 11:06, Giacomo Tesio wrote: >> - where I can find the most updated sources of drawterm? (links from >> http://swtch.com/drawterm/ seem to be broken) > > https://bitbucket.org/rsc/drawterm > &

[9fans] unexpected tabs in man pages after font change

2015-03-04 Thread Giacomo Tesio
ource (why the hell we still use troff for manual pages? :-D) I can see no command that explain this behaviour. Any tip to fix them? Giacomo [image: Immagine in linea 1]

Re: [9fans] unexpected tabs in man pages after font change

2015-03-04 Thread Giacomo Tesio
ve to inform troff about the glyphs sizes... but how? Giacomo 2015-03-04 17:13 GMT+01:00 Giacomo Tesio : > Hi, I've just installed a compact sans font (from > http://input.fontbureau.com/ ) and manual pages started to look broken. > > As you can see in the screenshot (man 2 con

Re: [9fans] unexpected tabs in man pages after font change

2015-03-04 Thread Giacomo Tesio
Well... docx, obviously! :-D Seriously, a markdown/asciidoc like language would be far easier to write and update. We could even compile it to troff, we we had to print it. However, this is not a rant specific to plan9. Linux is not better from this point of view. Giacomo 2015-03-04 22:31 GMT

Re: [9fans] unexpected tabs in man pages after font change

2015-03-04 Thread Giacomo Tesio
Well, while a bit offtopic... what do you mean by "programmatically". And btw, programs don't write man pages... yet. Giacomo 2015-03-04 23:39 GMT+01:00 Stanley Lieber : > troff is great. easy to maintain programmatically. > > sl >

Re: [9fans] unexpected tabs in man pages after font change

2015-03-04 Thread Giacomo Tesio
age can be generated from code. They are a specialized kind of prose. What I can't undestand I why we still need troff for them. It's almost like using a teletype to chat! :-) Giacomo

Re: [9fans] unexpected tabs in man pages after font change

2015-03-05 Thread Giacomo Tesio
could be due to troff assuming fixed with font and inserting spaces instead of tabs. And its a pity, because probably libframe would align tabs properly. But this is just a guess, I had no time to check the troff code for this second issue. Giacomo Il 05/Mar/2015 15:23 "erik quanstrom"

[9fans] col.c: one line fix for variable-width font

2015-03-06 Thread Giacomo Tesio
amp;& *(p-2) == ' ') { This is a better fix that redefining col in /rc/bin/man since this way col correctly replace spaces with tabs when appropriate. It just stops to replace single spaces at positions multiple of 8 with tabs. Giacomo PS: col.c ignores $tabstop. This could be some

Re: [9fans] col.c: one line fix for variable-width font

2015-03-06 Thread Giacomo Tesio
n use a 3 column acme to browse /sys/src/ && read the code && browse man pages. This should also reduce the man output size more than col. Giacomo 2015-03-06 17:33 GMT+01:00 erik quanstrom : > On Fri Mar 6 04:57:18 PST 2015, giac...@tesio.it wrote: > > > if ((++

Re: [9fans] col.c: one line fix for variable-width font

2015-03-06 Thread Giacomo Tesio
ehm... well... actually I could try with vnc... :-) Giacomo 2015-03-06 18:22 GMT+01:00 Giacomo Tesio : > Actually I'm using drawterm, as a sort of remote desktop connection. But I > can't see the problem you are talking about. > The clients (either windows or linux)

Re: [9fans] 2c(2) error

2015-03-10 Thread Giacomo Tesio
Ehm... obviously I was talking about 2c(1)... Too much coffe, today... :-D 2015-03-10 16:53 GMT+01:00 Giacomo Tesio : > 2c(2) states: > > Array initializers can specify the indices of the array in >> square brackets, as >> int a[] = { [3] 1, [10] 5 }; >>

[9fans] 2c(2) error

2015-03-10 Thread Giacomo Tesio
should have index 2 and 9. Moreover if the tenth element is actually referred by index 10, why the array should hold eleven elements? A simple check shows that actually the array has 11 elements and the one initialized are the forth and the eleventh. Giacomo diff -r 51285ae4f545 sys/man/1/2c --- a/

Re: [9fans] Very old bug in db(1)

2015-03-19 Thread Giacomo Tesio
ay to cope with such old and small bugs, is to report them on 9fans (and other related mailing lists), possibly with a patch. This way, any other user that hit the bug (and find your email) can apply the patch and fix them in his $home/bin (or somewhere else) and then bind -b it to /bin. Giacomo

Re: [9fans] Very old bug in db(1)

2015-03-19 Thread Giacomo Tesio
dHat or Suse. In the Plan9 ecosystem, while looks that some are quite upsets about such differences, it's hard to grasp them from the outside. Giacomo

[9fans] jas' cpython

2015-03-25 Thread Giacomo Tesio
chive? Giacomo

Re: [9fans] jas' cpython

2015-03-25 Thread Giacomo Tesio
Thanks David! 2015-03-25 12:12 GMT+01:00 David du Colombier <0in...@gmail.com>: > > How should I extract files from an .arch archive? > > disk/mkext -d / < cpython-src.arch > > -- > David du Colombier > >

Re: [9fans] using git

2015-03-30 Thread Giacomo Tesio
good to keep track of the progress of the project. My two cents. Giacomo 2015-03-28 15:00 GMT+01:00 Paul Lalonde : > I'd like to hear it too - much to learn from others' process. > Paul > > On Sat, Mar 28, 2015 at 4:16 AM Charles Forsyth > wrote: > >>

Re: [9fans] using git

2015-03-30 Thread Giacomo Tesio
quot;workedhere", "shittorefactortomorrow" and so on). Giacomo 2015-03-30 11:48 GMT+02:00 Giacomo Tesio : > As I use both git and hg, I really miss the feature-branching in hg > (obviously, you can, if you try hard enough, use feature branching with hg > too, but git makes it so

Re: [9fans] using git

2015-03-30 Thread Giacomo Tesio
ement a native gitfs over that, in C, using the network fs available in Plan9. Compared to hgfs, a bit more design of the fs structure would probably be needed to capture the concept of branch in a hierarchical filesystem. How much you would estimate such development? Giacomo 2015-03-30 18:1

Re: [9fans] small VFD display

2015-06-10 Thread Giacomo Tesio
watch?v=qlRTbl_IB-s (and this site http://2045.com/ !) I've just found it, and suddenly I realized that all the crazy ideas I've got in the past were quite realistic, after all. :-D Giacomo

Re: [9fans] Harvey OS: A new OS inspired heavily by Plan 9

2015-07-27 Thread Giacomo Tesio
Il 27/Lug/2015 23:47, "Skip Tavakkolian" <9...@9netics.com> ha scritto: > > > you are aware of the 9fans' fetish for movies > > and rabbits ...and feticists. ;-)

[9fans] read9pmsg usage

2015-08-10 Thread Giacomo Tesio
plan9/blob/master/sys/src/cmd/ip/ftpfs/ftpfs.c#L273-L279 I'm a bit confused about this. What's the proper use of the 0 return value? Giacomo

Re: [9fans] read9pmsg usage

2015-08-10 Thread Giacomo Tesio
2015-08-10 16:22 GMT+02:00 erik quanstrom : > on plan 9 systems 0 writes are not discarded. > Interesting! Is this "by design"? And what is the intended usage of 0 writes? BTW, so fcall(2) is misleading, a 0 read can not be used to identify an EOF, right? Giacomo

Re: [9fans] read9pmsg usage

2015-08-10 Thread Giacomo Tesio
;I'm alive but boring". I can't see how a reliable communication (a cpu connection for example) can survive this mismatch. I'm probably missing something. Giacomo

Re: [9fans] read9pmsg usage

2015-08-11 Thread Giacomo Tesio
2015-08-11 17:48 GMT+02:00 Charles Forsyth : > > On 10 August 2015 at 15:11, Giacomo Tesio wrote: > >> /* >> * reading from a pipe or a network device >> * will give an error after a few eof reads. >> * however, we cannot tell the difference >> * betw

Re: [9fans] read9pmsg usage

2015-08-12 Thread Giacomo Tesio
rsyth : > As a further historical note, originally 9P required a stream that > preseved record boundaries, and the reliable datagram protocol IL/IP and > pipes did that. > So, seem that ignoring zeros is simply wrong. A residual from the past... Giacomo

Re: [9fans] pthreads

2015-09-01 Thread Giacomo Tesio
2008-12-16 23:16 GMT+01:00 Steve Simon : > I have a distant memory that somone implemented some of POSIX pthreads > on plan9, i.e. I want to compile programs that use pthreads under APE. > > anyone got any pointers? > Hi Steve, did you find anything (even incomplete) back then? Giacomo

[9fans] u9fs sources

2015-09-01 Thread Giacomo Tesio
Hi, anybody knows where the u9fs sources are currently maintained? I have just found https://bitbucket.org/plan9-from-bell-labs/u9fs but it's only linked by an old googlecode repo: I was unable to find any official link in the bell labs pages. Giacomo

Re: [9fans] u9fs sources

2015-09-02 Thread Giacomo Tesio
ment and testing. > > Lucio. > I shouldn't need any hardware (a Xen domU should be enough), but in case I'll write you when I'm ready to work on this. Can you share links to the most updated sources for NetBSD? Giacomo

[9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-05 Thread Giacomo Tesio
p == nil) just after rfork, and after a few (apparently?) successful spawns, the assert fails. What I need is a sort of thread-local storage for the MyStruct*, so that each child process can find it's own dedicated MyStruct. I know that could get this with an hashtable based on the pid, but I'd prefer to avoid the book keeping if possible. Giacomo

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-05 Thread Giacomo Tesio
... and given getpid(2) implementation, a pid based table could be quite expensive, since MyStruct is accessed very very often. 2015-09-05 16:03 GMT+02:00 Giacomo Tesio : > 2011-05-20 3:30 GMT+02:00 erik quanstrom : > >> one note is that while i'm aware of privalloc(2), i di

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-05 Thread Giacomo Tesio
Nice example thanks. May be my problem is that p is global in my case? Giacomo Il 05/Set/2015 18:50, "erik quanstrom" ha scritto: > by the way, the following program runs without asserting for me > with or without the waits. > > - erik > > --- > > #include &g

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-06 Thread Giacomo Tesio
ctly what happened. I misread privalloc(2), and assumed that privalloc()ed addresses were somehow reset on rfork. This is probably something to explicitly state the man page. Thanks you all! Giacomo

Re: [9fans] off topic - a good Git reference

2015-10-12 Thread Giacomo Tesio
ar effect as fsync (see stat(5)). > Thus Plan9 HAS fsync! :-o And it also has server-defined semantics! Very impressive! Giacomo

Re: [9fans] Compiling ken-cc on Linux

2015-11-27 Thread Giacomo Tesio
pile many different language optimized for many different OS and architectures on many different OS and architecture. Alternative compilers, like tcc, only build C on very few architectures / os with almost no optimization: they are much smaller, but still not standard compliant. How can it be? Giacomo

Re: [9fans] Compiling ken-cc on Linux

2015-11-27 Thread Giacomo Tesio
2015-11-27 13:42 GMT+01:00 : > On Fri, Nov 27, 2015 at 09:13:20AM +0100, Giacomo Tesio wrote: > > > > I know nothing about compilers, but actually gcc and clang dimension and > > complexity is astonishing. > > It's not astonishing: it's research. They want to

[9fans] segbrk(2) vs friends

2015-12-07 Thread Giacomo Tesio
t is actually deprecated. Do you know any paper that can explain its design and intent? Giacomo

[9fans] FP register usage in Plan9 assembler

2016-02-01 Thread Giacomo Tesio
should be equivalent to .align 4 .globl insb insb: mov%ebp,%edx mov0x10(%rsp),%rdi mov0x18(%rsp),%ecx cld rep insb retq Again I cannot find a definition of address and count, but both seem to be be valued as 8, why? Giacomo

Re: [9fans] FP register usage in Plan9 assembler

2016-02-01 Thread Giacomo Tesio
umentation/abi.pdf and always pushes parameters to the stack? Giacomo 2016-02-01 23:48 GMT+01:00 : > FP is a translated to a varying offset to SP depending on where in the > program > you are. arguments on the stack are padded to 8 bytes on amd64, the first > argument > is n

Re: [9fans] FP register usage in Plan9 assembler

2016-02-01 Thread Giacomo Tesio
I kinda agree, but I'm too incompetent in the matter. :-) However, I was simply asking if, on amd64, kencc uses the 6 registers that the abi deserves to the parameters. As far as I've understood only BP is used (for the first argument, if integer). Can you confirm? Giacomo 2016-

[9fans] startboot signature

2016-02-17 Thread Giacomo Tesio
Out of curiosity, why the startboot function in port/initcode.c is `void startboot(char *argv0, char **argv)` given the argv0 is ignored? I see that this simplify various main() in init9.s but I wonder why not simply use `void startboot(char **argv)` Giacomo

[9fans] Libc locks documentation

2016-03-24 Thread Giacomo Tesio
iven their use of rendezvous I can't find anything related. Can you provide me some references? Giacomo

Re: [9fans] Libc locks documentation

2016-03-25 Thread Giacomo Tesio
Thanks Charles! Giacomo 2016-03-25 17:38 GMT+01:00 Charles Forsyth : > If you look for "condition variables" for event notification, > you'll find relevant material, such as this paper > https://www.cs.berkeley.edu/~brewer/cs262/Mesa.pdf > which has a few references

Re: [9fans] The Plan 9/"right" way to do Facebook

2016-04-01 Thread Giacomo Tesio
ent, now we can even start to ignore the information from the physical world, while accepting the virtual information that someone else feed us. Giacomo 2016-04-01 22:00 GMT+02:00 : > lu...@proxima.alt.za writes: > > > I don't even remember the name of the feature, but I used a tool

Re: [9fans] The Plan 9/"right" way to do Facebook

2016-04-03 Thread Giacomo Tesio
e challenging mainstream opinions (this is Plan9, isn't it? :-D), I'm afraid of people doubting about evident facts or simply ignoring them: climatic changes? unsustainable distribution of wealth? parents negating their kids misbehavior? inadequate legal systems for the current world? and so on... Giacomo entirely off topic, sorry

[9fans] create/create race

2016-05-24 Thread Giacomo Tesio
reate(2) syscall? Giacomo

[9fans] devsegment usage examples

2016-08-31 Thread Giacomo Tesio
Hi, I'm looking for an usage example of devsegment. I cannot find anything neither in bhro's plan9 nor in 9front. Can anybody share a real usage world example? Giacomo

Re: [9fans] devsegment usage examples

2016-08-31 Thread Giacomo Tesio
is it designed to solve? Moreover, Zinq's graphics use a very smart approach, but it's specific to 9front evolution of the device with the "fixed" type. I'm also looking for the general use case, when segments are not used for DMA, as designed in the original Plan9. Giaco

Re: [9fans] create/create race

2016-11-30 Thread Giacomo Tesio
e create syscall does not simply return an error if the file already exists? You might save me a few headache... Thanks for your help! Giacomo 2016-05-24 23:25 GMT+02:00 Giacomo Tesio : > I'm pretty curious about the create(2)/create(5) race described in a > comment in namec (see h

Re: [9fans] create/create race

2016-11-30 Thread Giacomo Tesio
(file, mode|OTRUNC)) < 0 || > (fd = create(file, mode, perm)) < 0 || > (fd = open(file, mode|OTRUNC)) < 0 || > error... > } > > This is precisely the current create(2) call and the nasty > race is clear. > > Why the initial open() would be needed if c

Re: [9fans] create/create race

2016-11-30 Thread Giacomo Tesio
2016-11-30 16:08 GMT+01:00 Charles Forsyth : > > On 30 November 2016 at 15:02, Giacomo Tesio wrote: > >> >> But reading that thread I can't actually see why the OEXCL path has been >> taken instead of eliminating the race mapping the syscall to the 9p me

Re: [9fans] create/create race

2016-11-30 Thread Giacomo Tesio
arles perfectly described them, something that break without it, so that I can dive deeper into the matter. Giacomo

Re: [9fans] create/create race

2016-11-30 Thread Giacomo Tesio
Thanks Charles! This is exactly the kind of info I was looking for. Giacomo 2016-11-30 22:53 GMT+01:00 Charles Forsyth : > > On 30 November 2016 at 21:51, Charles Forsyth > wrote: > >> that the whole path name is re-evaluated 3 times > > > That doesn't happen

[9fans] A heartfelt thanks... :-)

2017-01-05 Thread Giacomo Tesio
help. Thanks. Giacomo

Re: [9fans] A heartfelt thanks... :-)

2017-01-06 Thread Giacomo Tesio
2017-01-06 10:34 GMT+01:00 Anthony Martin : > Ciao Giacomo, > Ciao Anthony, ottime domande! :-) Let's start from the easy ones: > Oh, and where are the man pages? /doc/hacking is missing. Man pages in Jehanne will be readable in source form. Cat should be enough to render th

Re: [9fans] Porting Idris to 9front

2017-01-13 Thread Giacomo Tesio
code compiled and runs on 9front. I generated the c > code on linux though. > Can you detail the process? I'd like to give it a try on Jehanne (which is built with gcc). Giacomo

[9fans] out of bound access in libsec

2017-01-17 Thread Giacomo Tesio
verified that the code is more or less the same on 9front. I "fixed" the first with an assert, but I'm not sure wherther passing sizeof(m->u.finished.verify) to memset in the second is the correct solution. Am I missing something? Giacomo

[9fans] memory leaks in libmp

2017-01-17 Thread Giacomo Tesio
stop to annoy the list. Giacomo

Re: [9fans] memory leaks in libmp

2017-01-18 Thread Giacomo Tesio
simple reasoning I did during triage was: consider a pointer to a struct holding both buf and its length: mptole(num, s->buf, s->len, nil) it will cause the leak if the struct was just zeroed. In this case I prefer the assert fail to the leak, so that I, as a dumb guy, would notice the issue

[9fans] Why getenv replaces \0 with spaces in the returned value?

2017-01-18 Thread Giacomo Tesio
< ep; p++) if(*p == '\0') *p = ' '; ans[s] = '\0'; } Anybody know why this replacement is done? It does not seem a good fix to read/write or read/truncate races, but I can't find a better explanation. Giacomo

Re: [9fans] Why getenv replaces \0 with spaces in the returned value?

2017-01-18 Thread Giacomo Tesio
Yes that would be a plausible explanation but actually rc does not use getenv: it reads /env/ files directly. I've tried to remove the loop and I can't see any issue. Giacomo 2017-01-18 21:13 GMT+01:00 Charles Forsyth : > Yes, it's the lists. Nothing will cope with \0 in a C

[9fans] NSAVE/NRSTR use case in libap

2017-05-03 Thread Giacomo Tesio
cation actually using such semantics (either ported to Plan9 or not). Giacomo

Re: [9fans] Reimplementing Plan 9 in Go (Was: Re: [9front] bio io functions)

2017-05-05 Thread Giacomo Tesio
You might find https://lsub.org/ls/clive.html interesting. Giacomo 2017-05-05 15:25 GMT+02:00 Dave MacFarlane : > On Fri, May 5, 2017 at 6:21 AM, Stanley Lieber wrote: >> >> Plan 9 has not yet been re-implemented in Go. >> >> sl >> > > I started trying to

Re: [9fans] Reimplementing Plan 9 in Go (Was: Re: [9front] bio io functions)

2017-05-06 Thread Giacomo Tesio
I agree that in a network, several different os should be able to work together seemlessy. But despite my efforts in Jehanne I don't think the key to achieve this is a os, nor a language. IMHO the key is a better general purpose protocol, as simple as 9p but able to replace http. Giacomo

[9fans] Blocking on write

2017-05-15 Thread Giacomo Tesio
Hi, to write a test I'm looking for an easy way to have a write() blocking forever. Is there any fs/device in Plan9 that can easily provide such behaviour? Giacomo

Re: [9fans] Blocking on write

2017-05-15 Thread Giacomo Tesio
Thanks Charles! Giacomo 2017-05-15 12:32 GMT+02:00 Charles Forsyth : > > On 15 May 2017 at 11:05, Giacomo Tesio wrote: >> >> Is there any fs/device in Plan9 that can easily provide such behaviour? > > > Bind #| to a name and fill up one of the data files (blocks at

Re: [9fans] Blocking on write

2017-05-15 Thread Giacomo Tesio
open, and still works, as you can see in the attached test. Shouldn't the waserror code check that the queue has been actually closed? Giacomo 2017-05-15 15:36 GMT+02:00 Giacomo Tesio : > Thanks Charles! > > > Giacomo > > 2017-05-15 12:32 GMT+02:00 Charles Forsyth : >&g

Re: [9fans] equality sign in Rc

2017-05-15 Thread Giacomo Tesio
Actually a --fu variable is not that useful in Plan 9: % --fu=bar % echo $--fu rc: null list in concatenation % echo "$--fu" rc: null list in concatenation % ls /env '/env/*' /env/--fu ... So rc can create a variable starting with more than one '-', but can't use it. So I wonder if there is a de

Re: [9fans] equality sign in Rc

2017-05-15 Thread Giacomo Tesio
r than the loss. Am I missing an obvious use case? Or maybe the changes to rc's code would be too complex? Giacomo Il 15/Mag/2017 18:39, "Charles Forsyth" ha scritto: > > On 15 May 2017 at 17:30, Giacomo Tesio wrote: > >> % echo "$--fu" >> rc: nu

  1   2   >