加载中
域名,ip相互转换(Linux,getaddrinfo, getnameinfo)

参考链接: http://en.wikipedia.org/wiki/Getaddrinfo 代码: /* ip_to_hostname ip */ #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <unistd.h> #include...

overlayfs may be merged into 3.10 kernel

目前kernel中没有支持overlay filesystem (或者union filesystem),overlayfs目前的状态是,有可能会被merge进kernel。unionfs或者aufs显然是没有可能了。 OverlayFS File-System Proposed F...

A Collection of Good Articles on Embedded Syste...

http://www.linuxjournal.com/article/11027 (Debugging Embedded Linux Platforms with GDB and Python) http://www.linuxjournal.com/magazine/introduction-typical-embedded-system (Int...

2012/08/11 18:38
29
为什么我的Linux系统中空闲内存如此之少?

"How come there is only so few free memory on my Linux PC?" Come to same question? No matter how much you put RAM in your motherboard, you quickly notice the free RAM is reduced...

processes, threads and signals in Linux

之前想知道process和threads在Linux kernel中的调度问题,后来就想知道linux如何支持multithreaded application了;感谢几位osc的朋友提供的资料和帮助。对于以上两个问题,我了解了个大概。...

Unionfs Usage

Reference: http://www.linuxjournal.com/article/7714?page=0,0 Merging Distribution ISO Images Most Linux distributions are available as both ISO images and also as individual pac...

2012/12/21 20:47
61
Yocto System Startup (design, implementation & ...

=========================== Problems with yocto initscripts =========================== 1. Some initscrits does not regard the possibility of a read-only rootfs. Some boot scrip...

c语言中的面向对象(2)----method的封装

Steve McConnell在《code complete》中提到一个概念:programming in a language 和 programming into a language的区别。我们做自己的项目时,正确的方法应该是,先对问题充分考察,然后分析...

2012/05/23 10:58
484
A Simple Introduction to Linux Daemon (with exa...

Daemon In Unix and other multitasking computer operating systems, a daemon is a computer program that runs as a background process, rather than being under the direct control of...

Linux: devfs, devtmpfs and udev

Basics Devtmpfs Devtmpfs lets the kernel create a tmpfs very early at kernel initialization, before any driver core device is registered. Every device with a major/minor will ha...

Radix Tree in Linux Kernel

1. Common Introduction to Radix Tree (mainly from wiki) In computer science, a radix tree (also patricia trie or radix trie or compact prefix tree) is a space-optimized trie dat...

2012/06/11 13:01
843
Bash, 双引号,单引号,感叹号

当要引用一个变量的值时,一般推荐使用双引号。使用双引号除了变量名[2]前缀($)、后引符(`)和转义符(\)外,会使shell不再解释引号中其它所有的特殊字符。[3] 用双引号时$仍被当成特殊字符,允...

2012/07/19 18:17
4.7K
检测目录递归循环 (Linux C 实现)

效果: root@localhost :/home/James/mypro/Linux-Pro/dir_operation# ./detect_dir_loop /home/James/mypro/ Error occured when getting realpath of [link2]: No such file or directory ...

2012/06/01 17:36
513
Linux Shell学习(6)

1. A yes/no dialog box dialog --common-options --yesno text height width e.g. dialog --title "Confirm Infomation" --yesno "Are you sure to continue?" 7 60 (我想到,利用Linux C...

2012/05/15 20:06
46
IPC研究(4) ---- semaphores

============================================================ IPC --- System V IPC --- semaphores Related System Calls: [designed to work for arrays of semaphore values] #include...

2012/05/05 22:31
105
Coding Style

总体来说就是C/C++采用相同的coding style,但是如果是编写Linux内核模块,编写完之后,用Lindent来进行标准的Linux内核代码风格的缩进。如果是java代码,则进行标准java代码的缩进。 命名风...

2012/04/17 17:51
165
How to log time in Linux? (C Programming)

#include <unistd.h> #include <stdio.h> #include <time.h> #include <stdlib.h> #include <string.h> #include <assert.h> /* time, gmtime, asctime */ static void log_time() { ...

2012/06/13 14:11
63
Linux RootFS Details

This doc is mainly about the older initrd technique. Most distro use initramfs intead. 1) References http://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.t...

对Linux系统中的时钟和时间的探讨

概要 1)介绍Linux系统中时钟的基本概念 2)探讨hwclock命令的工作方式。 3)系统启动过程中Linux系统对系统时钟和硬件时钟的同步。 主要术语和背景知识 UTC: Coordinated Universal Time, ...

Credentials and Access Control in Linux

Credentials and Access Control in Linux ======================================= File ower and permission [important] ------------------------------------ File mode (permission),...

没有更多内容

加载失败,请刷新页面

返回顶部
顶部