Similar Threads:
1.Why #pragma pack() not take effect?
Struct definition as following(on 32-bit Linux):
#pragma pack(push, 8)
struct MY_STRUCT
{
char a[2];
short b;
short c;
short d;
int e;
long long x;
long long y;
};
#pragma(pop)
During the test, result of 'sizeof(struct MY_STRUCT)' is 28. Why not 32?
As I had expected, a,b,c,d will be packed into one 8-byte, e one and x, y
two. Ain't I right?
If I get wrong usage of #pragma pack(), could anyone please tell me how to
get it work correctly?
BTW, what on earth is the difference between __attribute__ align() and
#pragma pack()?
Thanks in advance!
2.What does IFS="${IFS}[]()" mean?
Hi,
I have a ksh script as below.
jobs -l | while IFS="${IFS}[]()" read ...
I know IFS is for Field Separator;
However I can't understand what does IFS="${IFS}[]()" mean???
Can Anybody help me on above?
~Deepak
3.differecnce between ${IFS} and "${IFS}"
The following two commands have different effect.
$ echo A${IFS}B
A B
$ echo "A${IFS}B"
A
B
It is obvious that the first one interprets `IFS' as
space, while the second interprets it as new line.
In fect, the `IFS' represents three characters, namely
space, tab, and new line. why different choices occur
in different situations?
--
ego cogito ergo sum
4.Apache 1.3 [unix]: Directives not having effect
Hi.
I've been experimenting with Apache for the past few days. I've made
a few changes but they aren't having the desired effect.
1. When entering the site, the user automatically sees index.htm page.
My Sol: DirectoryIndex index.htm
2. A page in a sub dir is blocked to everybody except a particular IP.
<Directory /home/rpandyan/apache/htdocs/block>
Order Deny,Allow
Deny from all
Allow james.virtual.com
</Directory>
3. I have password protected a few pages also but that also isn't
working.
<Directoy /home/rpandyan/apache/htdocs/hidden>
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /home/rpandyan/apache/passwd/passwords
Require user James
</Directory>
Note: I have made all changes to the httpd.conf file for efficienty
purposes.
The Listen directive works [I see the test page]
If anybody knows what I need to do, please let me know.
Thanks.
5.Why isn't more work done with winelib?
Hi.
Had this experience a couple of times.
I've really wanted some software package, but there isn't a binary
made specially for my distro. I've tried installing from source, only to
discover that it desperately needs some dependency but it won't tell me
what it is, and the srpm just won't work for various reasons.
So I've downloaded the Windows version and discovered it works adequately
with wine.
Why isn't more work done with winelib, rather than win32 - at least for
desktop programs? Rather than making a separate Windows, and Linux
version, you could kill two birds with one stone.
Also makes installing software relatively easy and painless.
6. Why isn't anyone doing Marketing for FOSS ??
7. Why am I doing this???
8. Why Desktop Linux installs in 9 minutes and what can be done to distribute it widely