{"id":1361,"date":"2009-01-22T09:37:08","date_gmt":"2009-01-21T23:37:08","guid":{"rendered":"http:\/\/www.flamingspork.com\/blog\/?p=1361"},"modified":"2009-01-22T09:37:08","modified_gmt":"2009-01-21T23:37:08","slug":"what-the-fuck-were-they-smoking","status":"publish","type":"post","link":"https:\/\/www.flamingspork.com\/blog\/2009\/01\/22\/what-the-fuck-were-they-smoking\/","title":{"rendered":"what the fuck were they smoking"},"content":{"rendered":"<p>\/*<br \/>\nFunction to free dboptions hash element<br \/>\n*\/<\/p>\n<p>extern &#8220;C&#8221; void free_dbopt(void *dbopt);<\/p>\n<p>void free_dbopt(void *dbopt)<br \/>\n{<br \/>\nfree((unsigned char*) dbopt);<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* Function to free dboptions hash element *\/ extern &#8220;C&#8221; void free_dbopt(void *dbopt); void free_dbopt(void *dbopt) { free((unsigned char*) dbopt); }<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[75],"tags":[],"class_list":["post-1361","post","type-post","status-publish","format-standard","hentry","category-drizzle-work-et-al"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5a6n8-lX","jetpack-related-posts":[{"id":411,"url":"https:\/\/www.flamingspork.com\/blog\/2005\/05\/24\/dont-you-just-love-being-compatible\/","url_meta":{"origin":1361,"position":0},"title":"Don&#8217;t you just love being compatible?","author":"Stewart Smith","date":"2005-05-24","format":false,"excerpt":"\/* Force server down. kill all connections and threads and exit *\/ #if defined(OS2) || defined(__NETWARE__) extern \"C\" void kill_server(int sig_ptr) #define RETURN_FROM_KILL_SERVER DBUG_VOID_RETURN #elif !defined(__WIN__) static void *kill_server(void *sig_ptr) #define RETURN_FROM_KILL_SERVER DBUG_RETURN(0) #else static void __cdecl kill_server(int sig_ptr) #define RETURN_FROM_KILL_SERVER DBUG_VOID_RETURN #endif { DBUG_ENTER(\"kill_server\"); (from sql\/mysqld.cc) There just has\u2026","rel":"","context":"In &quot;mysql&quot;","block_context":{"text":"mysql","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":925,"url":"https:\/\/www.flamingspork.com\/blog\/2007\/11\/14\/better-disk-allocation-with-mythtv-and-xfs\/","url_meta":{"origin":1361,"position":1},"title":"Better disk allocation with MythTV and XFS","author":"Stewart Smith","date":"2007-11-14","format":false,"excerpt":"Running MythTV on XFS? Noticed that all your recordings end up rather fragmented? (use xfs_bmap to find out) Well, the culprit is MythTV not being too nice to the file system. Good news is, it's rather fixable. From the MythTV source code, edit libs\/libmythtv\/ThreadedFileWrite.cpp and look for the following: void\u2026","rel":"","context":"In &quot;mythtv&quot;","block_context":{"text":"mythtv","link":"https:\/\/www.flamingspork.com\/blog\/category\/mythtv\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4532,"url":"https:\/\/www.flamingspork.com\/blog\/2019\/12\/31\/speeding-up-blackbird-boot-the-sbe\/","url_meta":{"origin":1361,"position":2},"title":"Speeding up Blackbird boot: the SBE","author":"Stewart Smith","date":"2019-12-31","format":false,"excerpt":"The Self Boot Engine (SBE) is a small embedded PPE42 core inside the POWER9 CPU which has the unenvious job of getting a single POWER9 core ready enough to start executing instructions out of L3 cache, and poking some instructions into said cache for the core to start executing. It's\u2026","rel":"","context":"In &quot;code&quot;","block_context":{"text":"code","link":"https:\/\/www.flamingspork.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":349,"url":"https:\/\/www.flamingspork.com\/blog\/2005\/01\/31\/gnomeabout-stuff\/","url_meta":{"origin":1361,"position":3},"title":"GnomeAbout stuff","author":"Stewart Smith","date":"2005-01-31","format":false,"excerpt":"As far as I can work out, this is a good handler to make sure that an About box is shown every time you select Help->About from the menu (i should really look at some other project's code). void on_about1_activate(GtkWidget *w) { GtkWidget *about; GladeXML *xml = glade_xml_new (PACKAGE_SOURCE_DIR\"\/Finance.glade\", \"about\",\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.flamingspork.com\/blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":704,"url":"https:\/\/www.flamingspork.com\/blog\/2006\/05\/30\/i-heart-valgrind-or-an-early-patch-integrating-the-mysql-mem_root-stuff-with-valgrind\/","url_meta":{"origin":1361,"position":4},"title":"I heart valgrind (or: an early patch integrating the MySQL MEM_ROOT stuff with valgrind)","author":"Stewart Smith","date":"2006-05-30","format":false,"excerpt":"Everybody knows that valgrind is great. Well, I was observing a problem in some MySQL code, it looked like we were writing over some memory that we weren't meant to be (as the structure hadn't been initialised yet). But, seeing as this was memory that had been allocated off a\u2026","rel":"","context":"In &quot;mysql&quot;","block_context":{"text":"mysql","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2152,"url":"https:\/\/www.flamingspork.com\/blog\/2010\/10\/18\/new-apis-in-haildb\/","url_meta":{"origin":1361,"position":5},"title":"New APIs in HailDB","author":"Stewart Smith","date":"2010-10-18","format":false,"excerpt":"In the current HailDB we have a couple of new API calls that you may like: ib_status_get_all() Is very similar to ib_cfg_get_all(). This allows the library to add new status variables without applications having to know about them - because we return a list of what there are. For Drizzle,\u2026","rel":"","context":"In &quot;drizzle&quot;","block_context":{"text":"drizzle","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/drizzle-work-et-al\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/1361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/comments?post=1361"}],"version-history":[{"count":1,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/1361\/revisions"}],"predecessor-version":[{"id":1362,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/1361\/revisions\/1362"}],"wp:attachment":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/media?parent=1361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/categories?post=1361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/tags?post=1361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}