This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/init.h> | |
#include <linux/fs.h> | |
#include <asm/uaccess.h> | |
/* 主设备号 */ | |
#define MAJOR_NUM 250 | |
static ssize_t freg_read(struct file* filp, char __user *buf, size_t count, loff_t* f_pos); | |
static ssize_t freg_write(struct file* filp, const char __user *buf, size_t count, loff_t* f_pos); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/fs.h> | |
#include <linux/cdev.h> | |
#include <asm/uaccess.h> | |
static struct cdev freg_cdev; //An instance of a character device | |
static dev_t ndev; //The node of the device | |
/* "freg"设备的全局变量 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/fs.h> | |
#include <linux/cdev.h> | |
#include <asm/uaccess.h> | |
static struct cdev freg_cdev; //An instance of a character device | |
static dev_t ndev; //The node of the device | |
/* "freg"设备的全局变量 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux | |
index 060db6a..65fdde2 100644 | |
--- a/pppd/Makefile.linux | |
+++ b/pppd/Makefile.linux | |
@@ -32,7 +32,7 @@ endif | |
# CC = gcc | |
# | |
-COPTS = -O2 -pipe -Wall -g | |
+COPTS = -static -O2 -pipe -Wall -g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <sys/wait.h> | |
#include <malloc.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#ifdef __ANDROID__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.wizhong.os.printimage.service; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.net.MalformedURLException; | |
import android.util.Log; | |
import com.itextpdf.text.BadElementException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 7ab79f39748021f34c886c8d8ed3834c26319930 Mon Sep 17 00:00:00 2001 | |
From: kangear <[email protected]> | |
Date: Tue, 3 Sep 2013 15:02:32 +0800 | |
Subject: Update installation.md | |
--- | |
doc/install/installation.md | 8 ++++++-- | |
1 file changed, 6 insertions(+), 2 deletions(-) | |
diff --git a/doc/install/installation.md b/doc/install/installation.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
# 1.判断busybox是否存在 如果存在获致其路径 | |
echo "Determining If 'busybox' Exist..." | |
BUSYBOX_PATH=`busybox find / -name busybox -type f` | |
if [ $? != 0 ] ; then | |
echo "Sorry, 'busybox' NOT exist" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c | |
index 9338d11..96a1b01 100644 | |
--- a/sound/soc/samsung/dma.c | |
+++ b/sound/soc/samsung/dma.c | |
@@ -34,7 +34,9 @@ static const struct snd_pcm_hardware dma_hardware = { | |
.info = SNDRV_PCM_INFO_INTERLEAVED | | |
SNDRV_PCM_INFO_BLOCK_TRANSFER | | |
SNDRV_PCM_INFO_MMAP | | |
- SNDRV_PCM_INFO_MMAP_VALID, | |
+ SNDRV_PCM_INFO_MMAP_VALID| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <dirent.h> | |
#include <signal.h> | |
#include <time.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
static void do_coldboot(DIR *d, int lvl) | |
{ |
OlderNewer