From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] [GSOC] plan9 which arch code to use?
Date: Wed, 7 May 2014 05:42:26 -0400 [thread overview]
Message-ID: <fe415a2c9a2ed61954941db4021a1eda@brasstown.quanstro.net> (raw)
In-Reply-To: <CAOw7k5g7OsL35zuuh094=k+jW_x4qz_PgiQKZTW2nWPqpXgGNA@mail.gmail.com>
!/bin/upas/marshal -s 'Re: [9fans] [GSOC] plan9 which arch code to use?' -R /mail/fs/mbox/1815 9fans@9fans.net
> > On 7 May 2014 10:05, erik quanstrom <quanstro@quanstro.net> wrote:
> >
> > > the comment is wrong. it's "int ainc(int*)"
> >
> >
> > h% grep ainc /sys/include/libc.h
> > long ainc(long*);
> >
> > h% grep ainc /n/sources/plan9/sys/include/libc.h
> > long ainc(long*);
>
> shouldn't that be aincl? these definitions were added to
> libc.h very late in the game (2013), and iirc, the only
> place ainc was actually used was the 64-bit kernel, and
> its definition was int ainc(int*).
sent too soon. so this allows a reference count to be just
an int. i also felt int ainc(int*) fit better with the other
atom(2) functions, which have a suffix of 32, 64, l or p added
when the argument is not an int.
so what i did assumes that there could be an aincl, aincp,
ainc32, ainc64, but there just isn't.
the definition "long ainc(long*)" seems to assume there is
only one ainc. and i can't see why the argument should be
a long. that would make it 64-bits in an lp64 model, which
may not be what was intended.
- erik
next prev parent reply other threads:[~2014-05-07 9:42 UTC|newest]
Thread overview: 89+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-06 21:00 yan cui
2014-05-06 21:33 ` cinap_lenrek
2014-05-06 21:48 ` yan cui
2014-05-06 21:47 ` Charles Forsyth
2014-05-06 21:53 ` yan cui
2014-05-06 21:56 ` Charles Forsyth
2014-05-06 21:59 ` Charles Forsyth
2014-05-06 22:02 ` cinap_lenrek
2014-05-06 22:05 ` Charles Forsyth
2014-05-07 5:14 ` lucio
2014-05-07 5:38 ` David du Colombier
2014-05-07 6:59 ` lucio
2014-05-07 8:38 ` Riddler
2014-05-07 8:59 ` Charles Forsyth
2014-05-07 9:05 ` erik quanstrom
2014-05-07 9:10 ` Charles Forsyth
2014-05-07 9:16 ` erik quanstrom
2014-05-07 9:42 ` erik quanstrom [this message]
2014-05-07 9:23 ` David du Colombier
2014-05-07 9:25 ` erik quanstrom
2014-05-07 9:31 ` David du Colombier
2014-05-07 11:13 ` lucio
2014-05-07 11:30 ` Charles Forsyth
2014-05-07 14:36 ` erik quanstrom
2014-05-07 17:51 ` lucio
2014-05-07 18:22 ` erik quanstrom
2014-05-08 5:39 ` lucio
2014-05-07 8:45 ` Charles Forsyth
2014-05-07 9:12 ` erik quanstrom
2014-05-07 9:20 ` Charles Forsyth
2014-05-07 9:21 ` erik quanstrom
2014-05-07 12:59 ` Kurt H Maier
2014-05-07 13:36 ` Charles Forsyth
2014-05-07 14:39 ` erik quanstrom
2014-05-06 22:09 ` Kurt H Maier
2014-05-07 0:40 ` erik quanstrom
2014-05-07 1:01 ` Charles Forsyth
2014-05-07 1:12 ` Kurt H Maier
2014-05-07 1:39 ` Charles Forsyth
2014-05-07 1:14 sl
2014-05-07 18:29 sl
2014-05-07 18:48 ` erik quanstrom
2014-05-08 5:56 ` lucio
2014-05-08 8:58 ` cinap_lenrek
2014-05-08 11:20 ` lucio
2014-05-08 12:07 ` erik quanstrom
2014-05-08 12:46 ` lucio
2014-05-08 13:15 ` Charles Forsyth
2014-05-08 13:48 ` Kurt H Maier
2014-05-08 14:07 ` lucio
2014-05-08 14:04 ` lucio
2014-05-08 14:15 ` erik quanstrom
2014-05-08 14:51 ` lucio
2014-05-08 14:56 ` Charles Forsyth
2014-05-08 15:16 ` lucio
2014-05-08 10:55 ` erik quanstrom
2014-05-07 18:56 sl
2014-05-07 19:53 ` erik quanstrom
2014-05-07 19:57 sl
2014-05-07 20:06 ` erik quanstrom
2014-05-07 20:11 ` Jacob Todd
2014-05-07 20:19 ` Lyndon Nerenberg
2014-05-08 12:11 ` lucio
2014-05-07 20:56 sl
2014-05-07 21:17 ` Anthony Sorace
2014-05-07 21:33 ` Lyndon Nerenberg
2014-05-08 11:57 ` lucio
2014-05-08 12:03 ` erik quanstrom
2014-05-08 12:39 ` lucio
2014-05-07 21:38 sl
2014-05-07 22:32 ` Charles Forsyth
2014-05-07 22:39 ` Bakul Shah
2014-05-08 1:38 ` Kurt H Maier
2014-05-08 8:41 ` Charles Forsyth
2014-05-08 14:06 ` erik quanstrom
2014-05-08 14:14 ` balaji
2014-05-08 14:20 ` Charles Forsyth
2014-05-07 22:46 ` Anthony Sorace
2014-05-07 23:01 ` Charles Forsyth
2014-05-07 23:51 ` erik quanstrom
2014-05-07 22:36 sl
2014-05-07 23:29 sl
2014-05-07 23:42 ` andrey mirtchovski
2014-05-07 23:37 sl
2014-05-08 13:45 erik quanstrom
2014-05-08 13:55 ` Kurt H Maier
2014-05-08 16:35 ` Jeremy Jackins
2014-05-08 17:16 ` Kurt H Maier
2014-05-08 17:47 ` Jeremy Jackins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fe415a2c9a2ed61954941db4021a1eda@brasstown.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).