similar to: Linking a library with init(argc,argv) function

Displaying 20 results from an estimated 100 matches similar to: "Linking a library with init(argc,argv) function"

2013 Feb 25
0
[syslinux:elflink] com32: Add com32_cmdline() which returns argv[ 1..argc-1]
On 02/23/2013 04:30 AM, syslinux-bot for Matt Fleming wrote: > Commit-ID: 41c29c26d70fde563d7c255872bbadad87a39dfa > Gitweb: http://www.syslinux.org/commit/41c29c26d70fde563d7c255872bbadad87a39dfa > Author: Matt Fleming <matt.fleming at intel.com> > AuthorDate: Fri, 22 Feb 2013 15:13:38 +0000 > Committer: Matt Fleming <matt.fleming at intel.com> >
2010 Sep 16
1
[RFC] function to parse string to argc/argv pair
Currently, I'm looking to improve rosh and would like to start using getopt(). I'd like to parse a string obtained by fgets() to be like the argc/argv pair created by __parse_argv but in a way that's more cross-platform (such that it can also be used by .lnx files rather than just COM32) and suitable to use in rosh and lua.c32. I've made a function and inlined a test program for
2009 Oct 29
2
Makevars, cc files in multiple directories
Hello, In the src folder of my R package I have a.cc b.cc f/g/x.cc my Makevars.in has all: $(SHLIB) upon installing only, a.o and b.o is build and the final dll is comprised of a.o and b.o How can I instruct $(SHLIB) to pick up its source files from all subdirectories (or maybe a subset, though here it will be all) in src ? Much thanks Saptarshi
2008 Mar 31
1
Compile dll in Windows XP
This is my first attempt to call a C function from R. I have installed Rtools,MinGW and Perl and I have included them in my system path. I am trying to compile a toy function that can be called in R but when I type "RCMD SHLIB foo.c" I receive the following message in my Command prompt: making foo.d from foo.c make: [foo.d] Error 255 (ignored) cat: foo.d: No such file or directory make:
2009 Mar 24
1
[PATCH] "Include" option for ssh configs
Hello, Attached is a patch to add support for an "include" file in ssh configs. It is written against openssh-5.2p1. ## ~/.ssh/config Include ~/.ssh/config.contrib ## end - Leading ~/ expands to $HOME according to getpwuid_r?. - Leading ~username expands to $HOME for username according to getpwnam_r. - Fallbacks to /home/$USER are implemented for when struct passwd.pw_dir is NULL?
2010 Jun 22
2
[LLVMdev] [patch] New feature: debug info for function memory ranges (-jit-emit-debug-function-range)
On 06/19/2010 14:03, Yuri wrote: > This new option (--jit-emit-debug-function-range) will allow to output > function information for memory ranges that functions occupy in memory > while they run in JIT. File format generated is like this: > ... > 0x5000000 0x5001000 function_name_is_here > ... > > This feature is useful for external tools like valgrind and >
2013 Sep 12
10
[PATCH] xen/build: Remove hacked up version of figlet
This hacked up version of figlet contributes a supprisingly large proportion of the Coverity issues found under xen/ (and therefore attributed against Xen) Figlet can be found in all distros, so make use of it. We keep xen.flf (being the Xen figlet font) and replace the hacked up octal transform with a short python script. The Xen Makefile has been tweaked in such a way that it still prints the
2010 Jan 29
1
Using win-builder with static libraries
Dear All, I am intending to build a package (pksmooth) on Linux to work on Windows. Some c++ functions need c++ libraries (numerical recipes) from a static library "libNR.a". Building the package on Linux for Linux is allright. However, when sending the 'pksmooth_1.0.tar.gz' to the online Windows builder (win-builder.r-project.org),the compilation doesn't take into account
2017 Oct 27
1
[Bug 13104] New: NULL deref do_server_sender when argc=0
https://bugzilla.samba.org/show_bug.cgi?id=13104 Bug ID: 13104 Summary: NULL deref do_server_sender when argc=0 Product: rsync Version: 3.1.3 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 Component: core Assignee: wayned at samba.org Reporter:
1998 Oct 13
0
no argv
Running programs (including set?id ones) without argv (execle(f,0,0)) causes many of them to die with a segmentation violation when they blindly try to access argv[0]. This could be exploited in denial-of-service attacks if the program has opened a lock file before segfaulting, though I haven''t found any yet. I can''t think of a way for this to give a root shell. -Topi
2006 Oct 31
0
6336149 *csh* core dump if argv is unset or reset
Author: nakanon Repository: /hg/zfs-crypto/gate Revision: 256327dbf767068c6616d7e339fe18c6f2e3bd36 Log message: 6336149 *csh* core dump if argv is unset or reset Files: update: usr/src/cmd/csh/sh.c
2015 Feb 12
0
[PATCH] gnulib: Define argv[0] as program_name for error.c on Darwin
--- lib/error.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/error.c b/lib/error.c index 6683197..36a3db7 100644 --- a/lib/error.c +++ b/lib/error.c @@ -113,9 +113,13 @@ int strerror_r (); # endif # endif +#if defined __APPLE__ && defined __MACH__ +#define program_name (((char **)*_NSGetArgv())[0]) +#else /* The calling program should define program_name and set it to
2015 Feb 12
0
Re: [PATCH] gnulib: Define argv[0] as program_name for error.c on Darwin
On 12 February 2015 at 18:50, Pino Toscano <ptoscano@redhat.com> wrote: [...] > We import gnulib as git submodule from the upstream gnulib.git, so > this should be sent to its mailing list; see also > https://www.gnu.org/software/gnulib/ > > (Personally, I'm not sure that the above patch would help, but I'll > leave the review to gnulib people on the right ml.)
2015 Feb 12
0
Re: [PATCH] gnulib: Define argv[0] as program_name for error.c on Darwin
On 12 February 2015 at 19:01, Pino Toscano <ptoscano@redhat.com> wrote: > On Thursday 12 February 2015 18:58:17 Margaret Lewicka wrote: [...] >> This was requested by Richard in <20150211220126.GV11603@redhat.com>; >> the hack^Wsolution is his, I am merely providing the patch. >> >> (Would not send it myself because a) I believe libguestfs's >>
2015 Feb 13
1
Re: [PATCH] gnulib: Define argv[0] as program_name for error.c on Darwin
On Thu, Feb 12, 2015 at 07:09:41PM +0000, Margaret Lewicka wrote: > On 12 February 2015 at 19:01, Pino Toscano <ptoscano@redhat.com> wrote: > > On Thursday 12 February 2015 18:58:17 Margaret Lewicka wrote: > [...] > >> This was requested by Richard in <20150211220126.GV11603@redhat.com>; > >> the hack^Wsolution is his, I am merely providing the patch. >
2014 Oct 01
0
-device ide-hd not found error when trying to launch vm using xml file create by virsh domxml-from-native qemu-argv demo.args command
Hi. When i try to launch VM with command virsh start vm1.It gives following error -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1: Bus 'ide.0' not found When I create the same qemu command from xml again. It show following addition parameter added by virsh in output qemu command 1) -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
2003 May 23
0
[LLVMdev] lli should not put .bc in argv[0]
When you run a program foo linked with gccld (i.e., by running the script "foo" it outputs which runs lli) it passes foo.bc instead of foo as the argv[0] for the program. This is surprising to the user, who is expecting that a program started by running "./foo" will call itself "./foo", not "./foo.bc". Fixed by removing ".bc" from the end of
2004 May 01
2
[Bug 857] off-by-one error in setting argv[0]
http://bugzilla.mindrot.org/show_bug.cgi?id=857 Summary: off-by-one error in setting argv[0] Product: Portable OpenSSH Version: 3.8.1p1 Platform: All OS/Version: Linux Status: NEW Severity: minor Priority: P3 Component: sshd AssignedTo: openssh-bugs at mindrot.org ReportedBy: Al.Smith at
2004 Aug 20
1
[Bug 857] off-by-one error in setting argv[0]
http://bugzilla.mindrot.org/show_bug.cgi?id=857 Al.Smith at gold.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From Al.Smith at gold.net 2004-08-21 03:43
2019 Apr 18
0
Re: [libvirt] Why virsh domxml-to-native qemu-argv changes PCI slot number
On Thu, Apr 18, 2019 at 04:23:05PM +0200, Andrea Bolognani wrote: > Moving to libvirt-users where it belongs. > > On Thu, 2019-04-18 at 06:47 +0000, Tal Attaly wrote: > > Hi, > > I have bridge type interface defined with slot 3 - > > <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> > > but