Re: assert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, that's fair, I guess.  If a given C runtime lacks something compatible, do we then need to do for that environment exactly what we would otherwise do in general?

Matt

----- Original Message -----
> From: "Adam C. Emerson" <aemerson@xxxxxxxxxx>
> To: "Yehuda Sadeh-Weinraub" <ysadehwe@xxxxxxxxxx>
> Cc: "Sage Weil" <sweil@xxxxxxxxxx>, "Matt Benjamin" <mbenjamin@xxxxxxxxxx>, "John Spray" <jspray@xxxxxxxxxx>, "Ceph
> Development" <ceph-devel@xxxxxxxxxxxxxxx>, "Mark Nelson" <mnelson@xxxxxxxxxx>
> Sent: Wednesday, August 24, 2016 1:10:00 PM
> Subject: Re: assert
> 
> On 24/08/2016, Yehuda Sadeh-Weinraub wrote:
> > Will that work on any system we compile on?
> 
> Yes and no. As given it will work on GNU libc. For FreeBSD we would
> need to change the name of the function we chunk in to __assert and
> the order of arguments is different. So, to do it portably, we'd need
> a shim for each C library we're ported to. There aren't /that/ many C
> libraries in the world so it's not a difficult thing to make work, but
> it is a bit fiddly.
> 
> --
> Senior Software Engineer           Red Hat Storage, Ann Arbor, MI, US
> IRC: Aemerson@{RedHat, OFTC, Freenode}
> 0x80F7544B90EDBFB9 E707 86BA 0C1B 62CC 152C  7C12 80F7 544B 90ED BFB9
> 

-- 
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-707-0660
fax.  734-769-8938
cel.  734-216-5309
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux