- 博客(7)
- 收藏
- 关注
转载 操作系统实验一 测试系统调用程序代码
//第一个//测试myid系统调用的程序#define _GNU_SOURCE#include <unistd.h>#include <sys/syscall.h>int main(){syscall(294);}//第二个//测试nice_prio系统调用的程序,功能是修改nice和prio值的系统调用功能。#define _GNU_SOURCE#include <unistd.h>#include <sys/syscall.h>
2021-06-05 14:56:45 341
原创 操作系统实验一 系统调用代码实现
SYSCALL_DEFINE5(mysetnice,pid_t,pid,int,flag,int,nicevalue,void __user*,prio,void __user*,nice){ struct pid * kpid; struct task_struct * task; kpid = find_get_pid(pid);/* 返回pid */ task = pid_task(kpid, PIDTYPE_PID);/* 返回task_struct */ int n; n = tas
2021-06-05 12:29:47 236 1
原创 密码学课程设计-RSA
#include<iostream>#include<string.h>#include<string>using namespace std;#define SIZE 33#define MULSIZE 2*SIZEtypedef struct Bigint{ unsigned char num[SIZE];}Bigint;typedef struct Bigint2{ unsigned char num[2 * SIZE];}Bigi
2021-05-28 09:59:02 821 3
原创 密码学课程设计--DES
// DES(C++).cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。//#include<iostream> #include<string.h>using namespace std;char m[1000] = { 0 }; //明文 //DES明文每组64个比特,即八个字符char c[1000] = { 0 }; //密文char m1[1000] = { 0 };char k[1000];int bl
2021-05-06 23:11:58 520
原创 c大作业
#include<stdio.h>#include<string.h>#include <stdlib.h>struct drama{ int num; //剧目编号 char name[50]; //剧名 char type[50]; //剧目类型 char time[50]; //演出时间 char location[50]; //演出地点 int
2021-01-04 23:21:15 127
原创 C++ 票务系统
#include<iostream>#include<cmath>#include<stdlib.h>#include<string>using namespace std;void print0() //首页界面{ cout<<"*****************************************"<<endl; cout<<"*
2020-12-22 23:00:13 770
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人