-
About:
hamsterdb is a database engine written in ANSI C. It supports a B+Tree index structure, uses memory mapped I/O (if available), supports cursors, and can create in-memory databases.
Release focus: Major feature enhancements
Changes:
This release comes with many changes and new features. It can manage multiple databases in one file. A new flag (HAM_Lock_EXCLUSIVE) places an exclusive Lock on the file. hamsterdb was ported to Windows CE, and the Solution file for Visual Studio 2005 now supports builds for x64. Several minor bugs were fixed, performance was improved, and small API changes occurred. Pre-built libraries for Windows (32-bit and 64-bit) are available for download.
Author:
cruppstahl
標(biāo)簽:
C.
hamsterdb
structure
database
上傳時(shí)間:
2013-12-11
上傳用戶:LouieWu
-
學(xué)會(huì)對(duì)文件的記錄鎖定,及解鎖。#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
int main()
{
int fd
int i
struct {
char name[20]
uint ID
int age
} myrec
fd =open("name", O_RDWR|O_CREAT, 0755)
if (fd == -1) return -1
printf("Input your name:") scanf("%s", myrec.name)
printf("Inpute your ID :") scanf("%d", &myrec.ID)
printf("Input your age :") scanf("%d", &myrec.age)
lseek(fd, 0,SEEK_END)
Lockf(fd, 1, 0)
write(fd, (void *)&myrec, sizeof(myrec))
Lockf(fd, 0 ,0)
return 0
}
執(zhí)行命令cc Lock.c –o Lock.out
Chmod +x Lock.out
./Lock.out
標(biāo)簽:
記錄
上傳時(shí)間:
2016-01-04
上傳用戶:亞亞娟娟123
-
If you have programming experience and a familiarity with C--the dominant language in embedded systems--Programming Embedded Systems, Second Edition is exactly what you need to get started with embedded software. This software is ubiquitous, hidden away inside our watches, DVD players, mobile phones, anti-Lock brakes, and even a few toasters. The military uses embedded software to guide missiles, detect enemy aircraft, and pilot UAVs. Communication satellites, deep-space probes, and many medical instruments would have been nearly impossible to create without embedded software.
標(biāo)簽:
familiarity
programming
experience
dominant
上傳時(shí)間:
2013-12-11
上傳用戶:362279997
-
鍵盤(pán)過(guò)濾驅(qū)動(dòng)源碼,本例子是過(guò)濾了Caps Lock鍵,修改成了Ctrl鍵.
標(biāo)簽:
鍵盤(pán)
過(guò)濾驅(qū)動(dòng)
源碼
上傳時(shí)間:
2016-10-01
上傳用戶:epson850
-
SD卡驅(qū)動(dòng)
SD_CARD_TIMEOUT 當(dāng)一個(gè)SD卡的操作超出時(shí)限,將導(dǎo)致返回錯(cuò)誤和該標(biāo)記被置位
SD_CARD_EXIST 當(dāng)卡槽內(nèi)插入了合適的卡體,不管是什么卡,都會(huì)使該位被設(shè)置;
SD_CARD_WRITE_PROTECT 當(dāng)卡體的寫(xiě)保護(hù)開(kāi)關(guān)被 Lock 時(shí),則該位被設(shè)置;
SD_CARD_READY 當(dāng)卡槽內(nèi)的卡被正確識(shí)別,并可以隨時(shí)訪問(wèn)時(shí),則該位被設(shè)置;
SD_CARD_DOOR_CLOSE 當(dāng)卡槽的門(mén)(產(chǎn)品外殼上的擋板開(kāi)關(guān))關(guān)閉時(shí),則該位被設(shè)置;
SD_CARD_IS_SD 當(dāng)卡槽內(nèi)插入的是 SD 卡時(shí),則該位被設(shè)置。
SD_CARD_IS_MMC 當(dāng)卡槽內(nèi)插入的是 MMC 卡時(shí),則該位被設(shè)置;
注意:不要使用 0x80,免得和整數(shù)作邏輯運(yùn)算時(shí)被誤為負(fù)數(shù)。
標(biāo)簽:
SD_CARD_TIMEOUT
SD卡
驅(qū)動(dòng)
操作
上傳時(shí)間:
2014-01-09
上傳用戶:稀世之寶039
-
BlackBerry Hacks will enhance your mobile computing with great tips and tricks. You ll learn that the BlackBerry is capable of things you never thought possible, and you ll learn how to make it an even better email and web workhorse:
Get the most out of the built-in applications
Take control of email with filters, searches, and more
Rev up your mobile gaming--whether you re an arcade addict or poker pro
Browse the web, chat over IM, and keep up with news and weblogs
Work with office documents, spell check your messages, and send faxes
Become more secure, Lock down your BlackBerry and stash secure information somewhere safe
Manage and monitor the BlackBerry Enterprise Server (BES) and Mobile Data System (MDS)
Create web sites that look great on a BlackBerry
Develop and deploy BlackBerry applications
標(biāo)簽:
BlackBerry
computing
enhance
mobile
上傳時(shí)間:
2016-12-07
上傳用戶:GavinNeko
-
MTK加密字庫(kù)讀手機(jī)密碼的好平臺(tái),只要打開(kāi)平臺(tái)手機(jī)開(kāi)機(jī)自動(dòng)聯(lián)機(jī)點(diǎn)SHOW PHONE Lock 即可讀出手機(jī)密碼
標(biāo)簽:
MTK
加密
字庫(kù)
手機(jī)
上傳時(shí)間:
2013-12-19
上傳用戶:康郎
-
A user-space device driver can do many of the things that kernel drivers can t, such as perform a long-running computation, bLock while waiting for an event, or read files from the file system. Unlike kernel drivers, a user-space device driver can use other device drivers--that is, access the network, talk to a serial port, get interactive input from the user, pop up GUI windows, or read from disks. User-space drivers implemented using FUSD can be much easier to debug it is impossible for them to crash the machine, are easily traceable using tools such as gdb, and can be killed and restarted without rebooting even if they become corrupted. FUSD drivers don t have to be in C--Perl, Python, or any other language that knows how to read from and write to a file descriptor can work with FUSD. User-space drivers can be swapped out, whereas kernel drivers Lock physical memory.
標(biāo)簽:
user-space
can
drivers
perform
上傳時(shí)間:
2014-01-01
上傳用戶:saharawalker
-
java 線程 靜態(tài)鎖,對(duì)象鎖, synchronized 是鎖方法還是鎖對(duì)象?還是鎖類(lèi)?如何實(shí)現(xiàn)??
部分代碼如下,
public static Object Lock=new Object() //靜態(tài)鎖,鎖類(lèi),不是鎖對(duì)象了!!所以?xún)蓚€(gè)線程同時(shí) 運(yùn)行兩個(gè) TestThread 的execute(
),也可以同步?。?!
public void execute(){ //
synchronized(Lock){ for(int i=0 i<20 i++){
try {
Thread.sleep(30)
} catch (InterruptedException e) {
// TODO Auto-generated catch bLock
e.printStackTrace()
}
System.out.println(Thread.currentThread().getName()+Thread.currentThread
().getName()+" "+i)
}
}
}
標(biāo)簽:
java
線程
上傳時(shí)間:
2017-07-15
上傳用戶:lijianyu172
-
基于單片機(jī)的密碼鎖設(shè)計(jì),內(nèi)含工程文件和源碼文件以及電路圖#include "config.h" void main(){ LCD_Initial(); //lcd初始化 init_sys(); //硬件系統(tǒng)初始化 setpsw(); //密碼設(shè)置 while(1) { time=3; //限定嘗試3次 while(1) { inputpsw(); //輸入密碼 checkpsw(); //密碼驗(yàn)證 checksuper(); //驗(yàn)證是否是超級(jí)密碼 if(error_flag==0) {right();break;} else if(time>1) error(); //允許2次嘗試錯(cuò)誤 else {Lock();break;} //3次錯(cuò)誤,系統(tǒng)鎖定 } }}
標(biāo)簽:
單片機(jī)
電子密碼鎖
上傳時(shí)間:
2022-07-17
上傳用戶:默默