linuxÄÚºËcryto½Ó¿ÚµÄʵÏÖÒÔ¼°ÓëopensslµÄ±È½Ï
linuxÄÚºËʵÏÖÁËcrypto½Ó¿Ú£¬ÓÃÓÚÀàËÆIPSecÖ®ÀàÒªÔÚÄÚºËÖÐʵÏÖµÄÓë²Ù×÷ϵͳ°ó¶¨µÄ°²È«»úÖÆ£¬Èç¹û²»ÊÇÓÃÓÚÕâÑùµÄ»úÖÆ£¬²»ÒªÊ¹ÓÃÄÚºËÖеÄcrypto½Ó¿Ú£¬×ܵÄÀ´Ëµ£¬linuxµÄcryptoÖÐ×îÖØÒªµÄ½á¹¹ÌåÓÐÁ½¸ö£ºcrypto_tfmºÍcrypto_alg
struct crypto_tfm {
u32 crt_flags;
union {
struct cipher_tfm cipher;
struct digest_tfm digest;
struct compress_tfm compress;
} crt_u; //¸ÃÁªºÏÌåÖ¸³ölinuxʵÏÖÁËcipher£¬digestºÍcompressÈýÀàËã·¨£¬Ã¿Ò»ÀàÖÐÓÐÐí¶àÖÖËã·¨£¬×¢ÒâÕâ¸öÁªºÏµÄÿһ¸ö¶¼½ö½öʵÏÖÁËÒ»´óÀàËã·¨µÄʵÏÖ·â×°£¬²¢²»ÊǾßÌåµÄʵÏÖ¡£
struct crypto_alg *__crt_alg;
char __crt_ctx[] __attribute__ ((__aligned__));
};
ÏÂÃæÕâ¸ö½á¹¹Ìå²ÅÊǾßÌåËã·¨µÄʵÏÖ£¬ÉÏÃæcrypto_tfmÖеÄcrt_uÖÐһϵÁк¯Êý¶¼ÊǶÔÏÂÃæ½á¹¹ÌåÖÐcra_uÖÐһϵÁк¯ÊýµÄ·â×°£º
struct crypto_alg {
struct list_head cra_list;
u32 cra_flags; //Õâ¸öflagsºÜÖØÒª
unsigned int cra_blocksize;
unsigned int cra_ctxsize;
unsigned int cra_alignmask;
int cra_priority;
char cra_name[CRYPTO_MAX_ALG_NAME];
char cra_driver_name[CRYPTO_MAX_ALG_NAME];
union {
struct cipher_alg cipher;
struct digest_alg digest;
struct compress_alg compress;
} cra_u;
int (*cra_init)(struct crypto_tfm *tfm);
void (*cra_exit)(struct crypto_tfm *tfm);
struct module *cra_module;
};
ÉÏÃæµÄÁ½¸ö½á¹¹Öж¼ÓÐÒ»¸öÁªºÏÌ壬ÊÂʵÉÏÿ¸öÁªºÏÌå×ֶζ¼ÊÇÒ»¸öÍêÕûµÄË㷨ʵÏÖ£¬¶øÇÒÈý¸öËã·¨ÀàÐͼ¸ºõûÓÐÈκι²Í¬µã¿ÉÑÔ£¬¶ÔÓÚÕªÒªÀàËã·¨À´Ëµ£¬»Øµ÷º¯ÊýÊÇinit£¬update£¬finalµÈ£¬¶ø¶ÔÓÚcipher¶øÑÔ£¬¾ÍÊÇencryptºÍdecryptµÈ£¬linuxʵ¼ÊÉÏÊÇÀûÓÃÁªºÏ
Ïà¹ØÎĵµ£º
Ò»¡¢Ð½¨²¢³õʼ»¯°æ±¾¿â
1.н¨´úÂë²Ö¿â
# svnadmin create /home/myrepos
ÕâÑù£¬ÎÒÃǾÍÔÚ/homeĿ¼ÏÂн¨ÁË°æ±¾¿âmyrepos¡£
2.³õʼ»¯´úÂë²Ö¿â
#mkdir -p code/{branches,tags,trunk}
°´ÕÕsvnÊÖ²áÉϵĽ¨Ò飬ÎÒÃÇ°æ±¾¿âµÄ²¼¾Ö²ÉÓÃbranches/tags/trunkÕâÑùµÄÈý¸öĿ¼¡£
È»ºó¿ÉÒÔ½«´úÂëÖ±½Ó¿½±´µÄtrunkĿ¼£¬Ò²¿ÉÒÔËæºó ......
crontabµÄÓ÷¨---linux¶¨Ê±ÈÎÎñ
2008Äê07ÔÂ30ÈÕ ÐÇÆÚÈý ÏÂÎç 01:00
crontabµÄÓ÷¨---linux¶¨Ê±ÈÎÎñ
Step 1:
ʹÓÃÃüÁîcrontab
-e±à¼Ò»¸ö¶¨Ê±Ö´ÐеÄÈÎÎñ»òÔÚ/var/spool/cron/crontabsĿ¼ÏÂн¨Ò»¸öÓë×Ô¼ºÓû§ÃûÏàͬµÄÈÎÎñ.
¼´:
#ÿ¸ôÒ»·ÖÖÓÖ´ÐÐÒ»´Îº ......
ÔÚlinuxÏÂʹÓù²ÏíÄÚ´æʱ£¬ÕÕ×ÅÊéÉÏ»òÕßÍøÉϵķ½·¨£¬Ê¹ÓÃshmatº¯Êýʱ£¬ÀÏÊÇ»áÅöµ½Ò»¸öÎÊÌâ
Ìáʾ:
shmat error
permission denied
ÿ´ÎÐèÒªsudoһϲÅÄܹ»Õý³£ÔËÐУ¬²¢ÇÒÈç¹ûÆÕͨÓû§Ê¹ÓÃipcs²é¿´µÄ»°£¬ÊÇ¿´²»¼ûÒѾ·ÖÅäµÄ¹²ÏíÄÚ´æµÄ£¬ÐèÒªÔÚrootÓû§Ï²ÅÄÜ¿´¼û£¬ ×ʼÒÔΪÊÇshmatÐèÒªrootÓû§µÄȨÏÞ£¬ºóÀ´·¢ÏÖ²»ÊÇÕâÑ ......
Ò»¡¢
SVN
·þÎñÆ÷»·¾³µÄ´î½¨
ÎÒÃÇ¿ª·¢µÄÏîÄ¿ÊôÓÚ»ùÓÚ
ARM9
ºË
linux
ϵͳµÄǶÈëʽ¹ÜÀíÈí¼þ£¬Õû¸ö¿ª·¢±àÒë»·¾³±ØÐëÊÇÔÚ
linux
ÏÂÃæ¡£Òò´Ë£¬
SVN
·þÎñÆ÷µÄ»·¾³Ò²±ØÐëÊÇÔÚ
linux
ϵͳ¡£
ÏÖÓеķþÎñÆ÷»·¾³£º²Ù×÷ϵͳ£º
Redhat Linux AS4U4
£¬Äں˰汾Ϊ£º
2.6.13
......
LinuxϵĶ¨Ê±Æ÷ÓÐÁ½ÖÖ£¬ÒÔÏ·ֱð½éÉÜ£º
1¡¢alarm
Èç¹û²»ÒªÇóºÜ¾«È·µÄ»°£¬ÓÃalarm()ºÍsignal()¾Í¹»ÁË
unsigned int alarm(unsigned int seconds)
º¯Êý˵Ã÷:
alarm()ÓÃÀ´ÉèÖÃÐźÅSIGALRMÔÚ¾¹ý²ÎÊýsecondsÖ¸¶¨µÄÃëÊýºó´«Ë͸øÄ¿Ç°µÄ½ø³Ì¡£Èç¹û²ÎÊýsecondsΪ0£¬Ôò֮ǰÉèÖõÄÄÖÖӻᱻȡ
......