Frama-C-discuss mailing list archives
This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- Subject: [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- From: dmentre at linux-france.org (David MENTRE)
- Date: Tue, 3 Mar 2009 15:18:39 +0100
- In-reply-to: <3d13dcfc0903030532s3aaf318bo55c49a7c95638002@mail.gmail.com>
- References: <3d13dcfc0903020703h71d0de3au20312f6464a6116e@mail.gmail.com> <49AC04BC.20303@inria.fr> <3d13dcfc0903020827x7f097cfen65198f80f920db48@mail.gmail.com> <20090303092841.1380894e@is005115> <3d13dcfc0903030108u4d575141n11abb777ad0840f1@mail.gmail.com> <3d13dcfc0903030532s3aaf318bo55c49a7c95638002@mail.gmail.com>
On Tue, Mar 3, 2009 at 14:32, David MENTRE <dmentre at linux-france.org> wrote: > ?1. I still have a bug with main(): > ? ? dev-random-pass-gen.c:71: Bug: unsupported variadic functions > ? ? Dropping definition of function main > > I have followed you recommendation, i.e. I declare main() as: > ?int main(int argc, char *argv[]) Here is the smallest program that triggers the issue: === #include <stdlib.h> #include <fcntl.h> void main(void) { static int rand_fd = -1; rand_fd = open("/dev/urandom", O_RDONLY); } === Apparently, this is the call to open() (which is itself variadic), that triggers the issue. Yours, d.
- References:
- [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- From: Claude.Marche at inria.fr (Claude Marché)
- [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- From: virgile.prevosto at cea.fr (Virgile Prevosto)
- [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- Prev by Date: [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- Next by Date: [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- Previous by thread: [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- Next by thread: [Frama-c-discuss] Best approach when specifying regular C functions from stdlib?
- Index(es):