1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
|
5 |
On Nov 19, 2004, at 10:52 AM, Greg KH wrote: |
6 |
|
7 |
> On Fri, Nov 19, 2004 at 11:46:20AM -0500, Chris Gianelloni wrote: |
8 |
>> On Fri, 2004-11-19 at 10:38 -0600, Kito wrote: |
9 |
>>>> Can you think of a nice portable way of doing this test? That would |
10 |
>>>> be |
11 |
>>>> really helpful. |
12 |
>>> |
13 |
>>> Why not a sysctl call? as mentioned above, not all systems have /proc |
14 |
>> |
15 |
>> sysctl requires proc. |
16 |
> |
17 |
> Not true. The sysctl syscall does not require it. |
18 |
|
19 |
% sysctl hw.memsize |
20 |
hw.memsize: 1073741824 |
21 |
|
22 |
% ls /proc |
23 |
ls: /proc: No such file or directory |
24 |
|
25 |
|
26 |
> |
27 |
> thanks, |
28 |
> |
29 |
> greg k-h |
30 |
> |
31 |
> -- |
32 |
> gentoo-dev@g.o mailing list |
33 |
> |
34 |
-----BEGIN PGP SIGNATURE----- |
35 |
Version: GnuPG v1.2.6 (Darwin) |
36 |
|
37 |
iD8DBQFBnicfJ0rMK/3OwgsRAl60AKCR1WapJCNWoD5g/y1r1I9rTpcaFQCgoBtB |
38 |
Pro5eAdD2G1+pPDQjzRV6j0= |
39 |
=Rbkl |
40 |
-----END PGP SIGNATURE----- |
41 |
|
42 |
|
43 |
-- |
44 |
gentoo-dev@g.o mailing list |