shared-objects

AS3: Store array in shared object

妖精的绣舞 提交于 2019-12-06 13:35:15
问题 I have searched for an answer to this question for quite a while but can't seem to find a definite one. Basically what I am trying to do is take an Array and store it within a shared object, and then read what is stored in the object and put it back into an array list when the script is started (hope this makes sense). At the moment I am led to believe that shared objects can only store multiple variables, so I am not sure how I would go about adding an array to one. The array itself is

.so with numerals after that, how to match them in find_library in cmake ? Error in linking shared objects which are found as sub-dependencies

£可爱£侵袭症+ 提交于 2019-12-06 02:00:24
Given ls -lrt /usr/lib/libvpx* results lrwxrwxrwx 1 root root 15 Feb 9 2012 /usr/lib/libvpx.so.1.0 ->libvpx.so.1.0.0 lrwxrwxrwx 1 root root 15 Feb 9 2012 /usr/lib/libvpx.so.1 -> libvpx.so.1.0.0 -rw-r--r-- 1 root root 646120 Feb 9 2012 /usr/lib/libvpx.so.1.0.0 ls -lrt /usr/lib/libschroedinger* results lrwxrwxrwx 1 root root 29 Feb 8 2012 /usr/lib/libschroedinger-1.0.so.0 ->libschroedinger-1.0.so.0.11.0 -rw-r--r-- 1 root root 774044 Feb 8 2012 /usr/lib/libschroedinger-1.0.so.0.11.0 ls -lrt /usr/lib/libgsm* results lrwxrwxrwx 1 root root 16 Nov 5 2009 /usr/lib/libgsm.so.1 -> libgsm.so.1.0.12 -rw

Exceptions on Linux from a shared object (.so)

孤人 提交于 2019-12-05 17:36:22
I have a test program called ftest. It loads .so files that contain tests and runs the tests that it finds in there. One of these tests loads and runs a .so that contains a Postgres database driver for our O/RM. When the Postgres driver throws an exception which is defined in that .so file (or one that it links to, but ftest does not link to) and is caught by the test framework the exception destructor triggers a segfault. This segfault happens whenever the compiled exception is in a .so that has been dynamically loaded (using dload). This sort of thing works fine in Windows which has the same

Program can't load after setting the setuid bit on

穿精又带淫゛_ 提交于 2019-12-05 06:55:42
Consider this scenario in which an executable A.bin uses libY.so and libZ.so. A.c, Y.c and Z.c are all written in C. Z.c and Y.c are compiled into respective .so files. This is the directory structure of the files $home/bin/A.bin $home/lib/libY.so $home/lib/libZ.so When I run A.bin as normal user, A.bin runs normally as expected. Note: $LD_LIBRARY_PATH contains $home/lib I changed some code in A.c adding some functionality which needs admin privileges(like binding to a port less than 1000). I set the setuid bit for A.bin, libY.so and libZ.so to rwsrwsrws, and change the ownership of the files

AS3: Store array in shared object

情到浓时终转凉″ 提交于 2019-12-04 20:59:21
I have searched for an answer to this question for quite a while but can't seem to find a definite one. Basically what I am trying to do is take an Array and store it within a shared object, and then read what is stored in the object and put it back into an array list when the script is started (hope this makes sense). At the moment I am led to believe that shared objects can only store multiple variables, so I am not sure how I would go about adding an array to one. The array itself is declared as shown here: var lvl1highScores:Array = new Array(); And it can be added to by the user every

ActionScript 3 SharedObjects don't persist across different swfs?

老子叫甜甜 提交于 2019-12-04 05:07:10
问题 I am serving two different swfs that read and write to the same SharedObject variable. The SharedObject variable is a number, and each swf checks that number to make sure it isn't using the same number twice. It then stores the last number it selects. In this way both swfs should never use the same number twice, no matter which order they're loaded. If I repeatedly load one of the swfs, the never-twice rotation works. However, when switching back and forth between swfs, sometimes the number

How would I go about sharing variables in a C++ class with Lua?

人走茶凉 提交于 2019-12-03 16:26:14
I'm fairly new to Lua, I've been working on trying to implement Lua scripting for logic in a Game Engine I'm putting together. I've had no trouble so far getting Lua up and running through the engine, and I'm able to call Lua functions from C and C functions from Lua. The way the engine works now, each Object class contains a set of variables that the engine can quickly iterate over to draw or process for physics. While game objects all need to access and manipulate these variables in order for the Game Engine itself to see any changes, they are free to create their own variables, a Lua is

Command Line to see the contents Shared Object Module(lib*.so)

杀马特。学长 韩版系。学妹 提交于 2019-12-03 05:36:32
问题 What is the command line to see the contents of a Shared Object module (lib*.so)? Like how we use: ar -t lib*.a for archives(lib*.a) and it displays all the object files in the library. EDIT1 Example ar -t lib*.a gives me a display: asset.o sldep.o 回答1: use nm -D --defined-only libname.so to get the symbol names from your dynamic library. The --defined-only switch shows you only the symbol that are defined in these files, and not references to external functions. An alternative is to use

Shared Variable Among Ruby Processes

て烟熏妆下的殇ゞ 提交于 2019-12-03 05:12:04
问题 I have a Ruby program that loads up two very large yaml files, so I can get some speed-up by taking advantage of the multiple cores by forking off some processes. I've tried looking, but I'm having trouble figuring how, or even if, I can share variables in different processes. The following code is what I currently have: @proteins = "" @decoyProteins = "" fork do @proteins = YAML.load_file(database) exit end fork do @decoyProteins = YAML.load_file(database) exit end p @proteins["LVDK"] P

Command Line to see the contents Shared Object Module(lib*.so)

喜你入骨 提交于 2019-12-02 18:54:56
What is the command line to see the contents of a Shared Object module (lib*.so)? Like how we use: ar -t lib*.a for archives(lib*.a) and it displays all the object files in the library. EDIT1 Example ar -t lib*.a gives me a display: asset.o sldep.o shodanex use nm -D --defined-only libname.so to get the symbol names from your dynamic library. The --defined-only switch shows you only the symbol that are defined in these files, and not references to external functions. An alternative is to use objdump, and catch only the symbols in the text section : objdump -T /usr/lib/libjpeg.so | grep text ..