if you know there is one, can you let me know what its for ? if not please say so : ) thanks.
Signature : void * malloc(unsigned long size, struct malloc_type type, int flags);
for example. other flags are...
M_ZERO
Causes the allocated memory to be set to all zeros.
M_WAITOK
Indicates that it is OK to wait for...
What are some of the major pro/con of FreeBSD vs GNU Linux vs OpenSolaris?
Which is the best operating system to program/develop against?
...
i try to config apache & php for my project to create web-based for file config management to open vpn in bsd unix, but i can't run as superuser to start or stop service
...
I have few years of exp on linux, mainly ubuntu (dual-boot). Now i am shifting to windows, and installing linux in VirtualBox (PUEL). I am looking for a light-weight distro for development machine setup. Thought of using debian-unstable-minimum, and installing build-essentials, openbox(or a little more feature light-WM, ps recommend), ss...
I have installed
mysql-client-5.4.2 Multithreaded SQL database (client)
mysql-server-5.4.2 Multithreaded SQL database (server)
on my FreeBSD 8.0 box
Why isnt there mysqldumpslow command available? What port should i install to make it available
...
Hi, I want to run my PostgreSQL database server from memory. The reason is that on my new server, I have 24 GB of memory, and hardly any of it is used.
I know I can run this command to make a ramdisk:
mdmfs -s 1024m md2 /mnt
And I could theoretically have PostgreSQL store its data there. But the problem with this is that if the serv...
I have a PHP code block I've written that uses imagemagick's convert program (called through exec()) to create thumbnails of uploaded images (originally we tried using the PHP module calls, but kept running into memory errors).
Of course to do this I have to have the full path to convert, which varies from system to system (on my mac it...
NOTE: This is not the same question as Python: Persistent shell variables in subprocess, as that question is actually about environment variables, not shell variables.
I'm trying to automate a basic benchmark that I'm doing in csh using the shell built-in time command. You can tweak the output of time by setting the variable of the sam...
Microsoft creates their windows and MFC DLL library, etc. An open source develop write a new MFC application and release the source code as GPL. The app has to link with the MS DLL/libraries to run in Windows, but I don't think anyone can argue that we now have the right to force the Microsoft's GPL their DLL.
Does this mean the GPL...
Hi,
I am testing our server-application (written Java) on different operating systems and thought that OpenSolaris (2008.11) would be the least troublesome due to the nice Java integration. Turns out I was wrong, as I end up with a UnknownHostException
try {
computerName = InetAddress.getLocalHost().getHostName();
if (computerName.i...
I need to write to an executable file that is being executed, but I can't open it for writing. For example:
#include <stdio.h>
#include <fcntl.h>
int main(int argc, char **argv)
{
int fd = open(argv[0], O_RDWR);
if (fd == -1) perror(NULL);
return 0;
}
% uname -rs
FreeBSD 8.0-STABLE
% ./example_ETXTBSY
Text file busy
Th...
Hi,
I know how to search for a string in files using grep
grep -Flr --include "*" 'string' files/
However how would I search for right double angle quotes ( » ) as the character will not appear in the terminal.
Thanks.
...
I’ve got ethernet interface on FreeBSD 7.1 with 3 ip adresses binded to it.
# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:e0:81:b1:1b:4b
inet 89.xx.xx.1 netmask 0xfffffc00 broadcast 89.xx.xx.255
inet 89.xx.xx.2 netmask 0x...
I'm trying to execute a shell script from cron on Freebsd.
To test wether crontab is working at all, i wrote the line
* * * * * echo "Hello" > /home/myuser/logile
and it work fine.
But when trying to execute any script it doesn't do anything, not even an error. (In the script i tried to run is just the same echo command)
Below is the...
I'm looking for a way to install php 5.2.8 using ports on freebsd 7.0.
I just don't know how to choose php 5.2.8, make under /usr/ports/lang/php5 begins by fetching php-5.2.10.tar.bz2.
thx in advance guys
...
chkrootkit output gives :
...
Checking w55808'... not infected
Checkingwted'... 1 deletion(s) between Mon Jan 18 14:55:33 2010 and Mon Jan 18 17:21:16 2010
1 deletion(s) between Mon Jan 18 17:22:39 2010 and Wed Jan 20 16:24:17 2010
Checking `scalper'... not infected
...
So, I searched about wtmp and wted some, and couldn't decide that t...
I'm trying to port some code from FreeBSD to OS X. The code is fairly low-level and it creates a number of special device files using make_dev() and controls functionality using functions like ioctl().
Ideally I'd like to keep my code as close to the original as possible so I can more easily merge upstream changes in the future: my q...
Under Freebsd 7.0, the if_bridge(4) driver now supports RFC 3378 EtherIP. Wondering whether ng_bridge has similar support for RFC 3378 EtherIP. As well as if ng_bridge can bridge gif interfaces.
...
I need a more-or-less portable programmatic way for querying the the dynamic library path list. For Linux, I can concatenate the $LD_LIBRARY_PATH and the contents of /etc/ld.so.conf (processing the include directives as needed and possibly filtering by architecture), but that doesn't work e.g. on FreeBSD.
Ultimately, I need a Python fun...
Hi!
We have OpenLDAP server 2.3.43 (it runs on FreeBSD 7.2) and plenty of client servers with FreeBSD 7.2 as well. They authenticate against OpenLDAP server by means of nss_ldap and pam_ldap.
nss_ldap-1.265_3 (We’ve also tried 1.266 version)
openldap-client-2.4.21
pam_ldap-1.8.4_1
Actually we have an odd problem with nss_ldap. From t...