Embedded C language development file IO programming open/close/read/write/stat/fstat/lstat

open/close int fd2; fd2=open(argv[1],O_RDWR | O_CREAT | O_EXCL,0655); if(fd2==-1) { perror("open file error!"); exit(1); } printf("fd2=%d\n",fd2); int ret=close(fd2); printf("fd2=%d\n",fd2); printf("ret=%d\n",ret); Partial code O_RDONLY O_WRONLY O_RDWR: read only write only O_CREAT: create when the f ...

Added by jtrost on Thu, 17 Feb 2022 09:29:27 +0200

Quick installation of ROS system (ubantu: 18. ---) (ROS: melody)

Preparation content 1. You need to install VMware yourself 2. Install the ubantu operating system in the virtual machine (all instructions in this article are applied on ubantu 18.04.6) The personal test is effective, three times. Configuring software and updates for ubuntu Configure software and updates for ubuntu to allow installation ...

Added by jbrave on Wed, 24 Nov 2021 12:36:33 +0200