Notes by voodoo

Displaying keyword search results 1 - 10
Created by voodoo on May 22, 2012 12:26:41    Last update: May 22, 2012 12:26:41
My program core dumped but there was no core file. The problem was that the core file size was 0: $ ulimit -a core file size (blocks, -c... Use ulimit to enable it: $ sudo bash # ulimit -c unlimited
Created by voodoo on August 14, 2011 15:42:43    Last update: August 14, 2011 15:42:43
When I ran this code snippet with strace : f = fopen("TZ", "rb"); fseek(f, 0, SEEK_END); ... I saw ENOTTY error with uClibc : open("TZ", O_RDONLY|O_LARGEFILE) = 3 ioc... With the normal gnu libc , there's no such error: open("TZ", O_RDONLY) = 3 fstat64... There was no error running the program. But for some reason, uClibc did a ioctl call when it opened a file, and handled it appropriately.
Created by voodoo on August 12, 2011 14:43:57    Last update: August 14, 2011 15:19:21
#include <stdio.h> #include <stdlib.h> i...
Created by voodoo on August 12, 2011 14:44:45    Last update: August 12, 2011 14:44:45
#include <fstream> #include <iostream> i...
Created by voodoo on August 12, 2011 12:47:50    Last update: August 12, 2011 13:03:00
Use fstream and seekg : #include <iostream> #include <fstream> i... With stat : #include <iostream> #include <sys/stat.h> ...
Created by voodoo on August 08, 2011 12:28:16    Last update: August 08, 2011 12:28:16
$ sudo yum whatprovides pcre-devel Loaded plugi...
Created by voodoo on March 10, 2011 11:08:45    Last update: March 10, 2011 11:09:18
Looks like for Linux fdisk , cylinders as display units was deprecated, using sectors is the new way. # fdisk -v fdisk (util-linux-ng 2.18) # ... Notice that cylinder numbers actually overlap for the last 2 partitions.
Created by voodoo on March 07, 2011 15:24:26    Last update: March 07, 2011 15:24:26
# yum install mysql-server Loaded plugins: pres...
Created by voodoo on March 04, 2011 12:20:34    Last update: March 04, 2011 12:20:34
# yum whatprovides libmpfr.so.1 Loaded plugins:...
Created by voodoo on March 04, 2011 12:16:52    Last update: March 04, 2011 12:16:52
# yum whatprovides libgmp Loaded plugins: prest...
Previous  1 2 Next