search for: envp

Displaying 20 results from an estimated 344 matches for "envp".

2007 May 21
0
cups, firefox + acrobat (getting strange output)
...3:27:58 -0300] [Job 21957] argv[4]="1" D [18/May/2007:13:27:58 -0300] [Job 21957] argv[5]="job-uuid=urn:uuid:0e6020a2-f222-3c34-48f7-098275afe369" D [18/May/2007:13:27:58 -0300] [Job 21957] argv[6]="/var/spool/cups/d21957-001" D [18/May/2007:13:27:58 -0300] [Job 21957] envp[0]="CUPS_CACHEDIR=/var/cache/cups" D [18/May/2007:13:27:58 -0300] [Job 21957] envp[1]="CUPS_DATADIR=/usr/share/cups" D [18/May/2007:13:27:58 -0300] [Job 21957] envp[2]="CUPS_DOCROOT=/usr/share/doc/cups-1.2.8" D [18/May/2007:13:27:58 -0300] [Job 21957] envp[3]="CUP...
2006 Nov 01
1
Samba can't spool to CUPS. Data not sent to printer
...="44" [Job 44] argv[2]="ftp" [Job 44] argv[3]="smbprn.00000037 Remote Downlevel Document" [Job 44] argv[4]="1" [Job 44] argv[5]="job-uuid=urn:uuid:4a3994ce-9af4-361b-67ce-68d236e2c908" [Job 44] argv[6]="/var/spool/cups/d00044-001" [Job 44] envp[0]="CUPS_CACHEDIR=/var/cache/cups" [Job 44] envp[1]="CUPS_DATADIR=/usr/share/cups" [Job 44] envp[2]="CUPS_DOCROOT=/usr/share/doc/cups" [Job 44] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts" [Job 44] envp[4]="CUPS_REQUESTROOT=/var/spool/cups" [Job 44...
2005 Jan 16
0
Printing from Windows is printing PS commands instead of job!
...ted as PS commands instead of the actual output. Yes, I'm using the Adobe PS drivers, but the Postscript Imager driver in Windows XP does the same thing. I have debugging turned on in CUPS and I believe the problem whilttles down to this line: D [15/Jan/2005:18:06:01 -0600] StartJob: envp[9]="CONTENT_TYPE=application/vnd.cups-raw" So, CUPS is thinking this is raw output - no wonder it's not filtering it appropriately. What I can't seem to figure out is, why? Why isn't CUPS seeing the job as a PS job? I've looked at the file itself and it seems to loo...
2006 Jul 26
0
Printing ALMOST works
...one,none D [25/Jul/2006:14:52:26 +0100] banner_page = 0 D [25/Jul/2006:14:52:26 +0100] StartJob: argv = "HP5610","36","root","smbprn.00000024 Test Page","1","","/var/spool/cups/d00036-001" D [25/Jul/2006:14:52:26 +0100] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin" D [25/Jul/2006:14:52:26 +0100] StartJob: envp[1]="SOFTWARE=CUPS/1.1" D [25/Jul/2006:14:52:26 +0100] StartJob: envp[2]="USER=root" D [25/Jul/2006:14:52:26 +0100] StartJob: envp[3]="CHARSET=utf-8" D [25/Jul/2006:14:5...
2006 Jul 31
0
Help - Printer driver problem?
...one,none D [25/Jul/2006:14:52:26 +0100] banner_page = 0 D [25/Jul/2006:14:52:26 +0100] StartJob: argv = "HP5610","36","root","smbprn.00000024 Test Page","1","","/var/spool/cups/d00036-001" D [25/Jul/2006:14:52:26 +0100] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin" D [25/Jul/2006:14:52:26 +0100] StartJob: envp[1]="SOFTWARE=CUPS/1.1" D [25/Jul/2006:14:52:26 +0100] StartJob: envp[2]="USER=root" D [25/Jul/2006:14:52:26 +0100] StartJob: envp[3]="CHARSET=utf-8" D [25/Jul/2006:14:5...
2019 Jan 26
2
How to pass arbitrary arguments to runFunctionAsMain?
...Function *main = v->FindFunctionNamed("main"); errs() << " Function " << main->getName().str() << "\n"; std::vector<std::string> parameters; parameters.insert(parameters.begin(), "argv"); const char* const* envp; for (int i=1; i<argc;i++) parameters.push_back(argv[i]); v->runFunctionAsMain(main, parameters, envp); Is it correct or should I construct parameters in another way? Thanks a lot Alberto -------------- next part -------------- An HTML attachment was scrubbed... URL: <ht...
2006 Oct 16
2
CUPS Problem
...00] job-sheets=none,none D [15/Oct/2006:14:53:53 -0600] banner_page = 0 D [15/Oct/2006:14:53:53 -0600] StartJob: argv = "psc_1200","21","root","(stdin)","1","","/var/spool/cups/d00021-001" D [15/Oct/2006:14:53:53 -0600] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin" D [15/Oct/2006:14:53:53 -0600] StartJob: envp[1]="SOFTWARE=CUPS/1.1" D [15/Oct/2006:14:53:53 -0600] StartJob: envp[2]="USER=root" D [15/Oct/2006:14:53:53 -0600] StartJob: envp[3]="CHARSET=utf-8" D [15/Oct/2006:14:5...
2005 Aug 01
2
[LLVMdev] [patch] gccld not passing -export-dynamic to gcc for link
...file from the +/// GenerateNative - generates a native executable file from the /// specified assembly source file. /// /// Inputs: @@ -365,6 +364,7 @@ const std::vector<std::string> &Libraries, const sys::Path &gcc, char ** const envp, bool Shared, + bool ExportAllAsDynamic, const std::string &RPath, const std::string &SOName, bool Verbose) { @@ -400,6 +400,7 @@ args.push_back(InputFilename.c_str()); if (Sha...
2013 Mar 20
0
[LLVMdev] Problems with parallelizing lli
..../../tools/lli/lli.cpp 2012-04-18 10:34:12.000000000 +0200 +++ lli.cpp 2013-03-20 22:01:39.713989939 +0100 @@ -175,34 +175,23 @@ #endif } -//===----------------------------------------------------------------------===// -// main Driver function -// -int main(int argc, char **argv, char * const *envp) { - sys::PrintStackTraceOnErrorSignal(); - PrettyStackTraceProgram X(argc, argv); - - LLVMContext &Context = getGlobalContext(); - atexit(do_shutdown); // Call llvm_shutdown() on exit. - - // If we have a native target, initialize it to ensure it is linked in and - // usable by the JIT....
2003 Jan 14
1
myths about upwards growing stacks
...as that the URL for latest version is out of date: klibc is archived at: ftp://ftp.zytor.com/pub/linux/libs/klibc/ the `libs/' is superfluous. more importantly, this piece of code in klibc/arch/README is wrong: #if STACK_GROWS_UP argc = (int)*argptr--; argv = (char **)argptr; envp = argv-(argc+1); #else argc = (int)*argptr++; argv = (char **)argptr; envp = argv+(argc+1); #endif i'm not sure why people think that having an upwards-growing stack means that argc, argv & envp all change places, but they don't. see include/asm-parisc/processor.h for complete d...
2012 Jul 02
0
[klibc:master] [VAR] Sanitise environment variable names on entry
...d-off-by: maximilian attems <max at stro.at> --- usr/dash/var.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/usr/dash/var.c b/usr/dash/var.c index 027beff..dc90249 100644 --- a/usr/dash/var.c +++ b/usr/dash/var.c @@ -136,7 +136,8 @@ INIT { initvar(); for (envp = environ ; *envp ; envp++) { - if (strchr(*envp, '=')) { + p = endofname(*envp); + if (p != *envp && *p == '=') { setvareq(*envp, VEXPORT|VTEXTFIXED); } }
2013 Feb 21
3
[PATCH] virtio-blk: emit udev event when device is resized
...b/drivers/block/virtio_blk.c @@ -539,6 +539,8 @@ static void virtblk_config_changed_work(struct work_struct *work) struct virtio_device *vdev = vblk->vdev; struct request_queue *q = vblk->disk->queue; char cap_str_2[10], cap_str_10[10]; + char event[] = "RESIZE=1"; + char *envp[] = { event, NULL }; u64 capacity, size; mutex_lock(&vblk->config_lock); @@ -568,6 +570,7 @@ static void virtblk_config_changed_work(struct work_struct *work) set_capacity(vblk->disk, capacity); revalidate_disk(vblk->disk); + kobject_uevent_env(&disk_to_dev(vblk->dis...
2013 Feb 21
3
[PATCH] virtio-blk: emit udev event when device is resized
...b/drivers/block/virtio_blk.c @@ -539,6 +539,8 @@ static void virtblk_config_changed_work(struct work_struct *work) struct virtio_device *vdev = vblk->vdev; struct request_queue *q = vblk->disk->queue; char cap_str_2[10], cap_str_10[10]; + char event[] = "RESIZE=1"; + char *envp[] = { event, NULL }; u64 capacity, size; mutex_lock(&vblk->config_lock); @@ -568,6 +570,7 @@ static void virtblk_config_changed_work(struct work_struct *work) set_capacity(vblk->disk, capacity); revalidate_disk(vblk->disk); + kobject_uevent_env(&disk_to_dev(vblk->dis...
2013 Oct 03
0
[LLVMdev] libclang JIT frontend
...gv0) { // This just needs to be some symbol in the binary; C++ doesn't // allow taking the address of ::main however. void *MainAddr = (void*) (intptr_t) GetExecutablePath; return llvm::sys::Path::GetMainExecutable(Argv0, MainAddr); } static int Execute(llvm::Module *Mod, char * const *envp) { llvm::InitializeNativeTarget(); std::string Error; OwningPtr<llvm::ExecutionEngine> EE( llvm::ExecutionEngine::createJIT(Mod, &Error)); if (!EE) { llvm::errs() << "unable to make execution engine: " << Error << "\n"; return 255...
2009 Jul 17
3
[LLVMdev] [PATCH 1/2] Trailing whitespace.
...directories to search; try them. @@ -142,14 +142,14 @@ static void SetMemoryLimits (unsigned size) #endif } -int -Program::ExecuteAndWait(const Path& path, +int +Program::ExecuteAndWait(const Path& path, const char** args, const char** envp, const Path** redirects, unsigned secondsToWait, unsigned memoryLimit, - std::string* ErrMsg) + std::string* ErrMsg) { if (!path.canExecute()) { if (ErrMsg) @@ -174,7 +...
2005 Aug 02
0
[LLVMdev] [patch] gccld not passing -export-dynamic to gcc for link
...able file from the specified +/// assembly source file. /// /// Inputs: /// InputFilename - The name of the output bytecode file. @@ -365,6 +364,7 @@ const std::vector<std::string> &Libraries, const sys::Path &gcc, char ** const envp, bool Shared, + bool ExportAllAsDynamic, const std::string &RPath, const std::string &SOName, bool Verbose) { @@ -400,6 +400,7 @@ args.push_back(InputFilename.c...
2006 Sep 18
1
BSD Auth: set child environment variables requested by login script [PATCH]
...quot; #endif #include "monitor_wrap.h" + +/* + * Set child environment variables starting with "X_BSD_AUTH". + * After the call to auth_close(), these variables are in the + * current environment if the login script has requested them. + */ +void +bsdauth_child_set_env(char ***envp, u_int *envsizep) +{ + extern char **environ; + char name[8*1024]; /* MAXSPOOLSIZE in auth_session_t */ + char *value; + u_int i, namelen; + + for (i = 0; environ[i] != NULL; i++) { + namelen = strcspn(environ[i], "="); + if (namelen + 1 > sizeof(name)) + continue; + snprintf(name...
2018 Jan 03
1
[PATCH] virtio_blk: print capacity at probe time
...c void virtblk_update_capacity(struct virtio_blk *vblk, bool resize) { - struct virtio_blk *vblk = - container_of(work, struct virtio_blk, config_work); struct virtio_device *vdev = vblk->vdev; struct request_queue *q = vblk->disk->queue; char cap_str_2[10], cap_str_10[10]; - char *envp[] = { "RESIZE=1", NULL }; unsigned long long nblocks; u64 capacity; @@ -402,13 +400,24 @@ static void virtblk_config_changed_work(struct work_struct *work) STRING_UNITS_10, cap_str_10, sizeof(cap_str_10)); dev_notice(&vdev->dev, - "new size: %llu %d-byte logi...
2015 Sep 02
1
[Patch] Fix NAME variable in subnet-* scripts for local subnets.
Hi, attached is a patch that fixes that the NAME variable in subnet-up/down scripts for local subnets is not set. The reason for this was that there was a "hole" in the envp array in src/subnet.c:subnet_update(). If the subnet was local, envp[6] was NULL and the evaluation stoped there. Actually, the name string was leaking. This is easily fixed by changing the order in the array. I wasn't sure if the github repo linked on the webpage is still used, since there see...
2017 Jun 06
4
LLD support for ld64 mach-o linker synthesised symbols
...64-xnu-musl */ typedef void (*__init_fn)(int, char **, char **, char **); extern __init_fn __init_start __asm("section$start$__DATA$__mod_init_func"); extern __init_fn __init_end __asm("section$end$__DATA$__mod_init_func”); static void __init_mod(int argc, char **argv, char **envp, char **applep) { for (__init_fn *p = &__init_start; p < &__init_end; ++p) { (*p)(argc, argv, envp, applep); } } Michael. [1] https://github.com/opensource-apple/xnu/blob/dc0628e187c3148723505cf1f1d35bb948d3195b/bsd/kern/kern_exec.c#L1072-L1111 <https...