- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Linux c 网络编程无人超市管理源代码
今天闲着没事,用之前学到的东西写了一个无人超市系统,顺便巩固一下网络编程,socket 可能有很多问题,但是基本操作都可以,就没有过于研究 下面是部分,代码有点多,我打包放下面添加链接描述 //client #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/types.
2020-11-18 15:47:02
702
原创 Linux C daemon源码
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <syslog.h> #include <errno.h> #include <signal.h> #define FNAME "/tmp
2020-09-23 09:30:03
330
原创 linux C 进程学习笔记
1.进程标识符 pid 类型pid_t 命令 ps axf (描述当前进程) ps axm(以详细信息查看) ps ax -L (以linux特有的方式查看) 进程号是顺次向下使用 getpid();获取当前进程的id getppid();获取当前进程的父进程的id 2.进程的产生 fork():(执行一次返回两次) 通过复制当前进程,创建一个新进程 fork()后父子进程的区别; fork的返回值不一样,pid不同 ppid也不同,未决信号和文件锁不继承,资源利用量清
2020-09-21 22:46:57
147
原创 Linux下C语言shell内部命令实现
#include<stdlib.h> #include<stdio.h> #include<unistd.h> #include<string.h> #include<glob.h> #define DELIMS " \t\n" struct cmd_st { glob_t globres; }; static void prompt() { printf("mysh-0.1$ "); } static void parse
2020-09-14 22:02:36
439
原创 关于Ubuntu18.04 在Qtqtcreator中 ibus无法输入中文
修改/etc/profile文件: sudo gedit /etc/profile sudo gedit /etc/profile 然后在文件最后添加以下内容 export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus 最后保存 去命令行中reboot一下就好了
2020-09-11 22:29:48
453
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅