Skip to content

Commit

Permalink
feat:update post's draft property
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojian.liang authored and xiaojian.liang committed Aug 23, 2023
1 parent c117b3f commit 3530d5c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 73 deletions.
2 changes: 1 addition & 1 deletion content/posts/go_channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author: "fakecore"
# author: ["Me", "You"] # multiple authors
showToc: true
TocOpen: false
draft: false
draft: true
hidemeta: false
comments: false
description: "Desc Text."
Expand Down
4 changes: 2 additions & 2 deletions content/posts/go_package_function_visible.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ title: "GO Package 函数可见性,编译顺序分析"
date: 2023-07-06T15:27:23+08:00
# weight: 1
# aliases: ["/first"]
tags: ["first"]
tags: ["go"]
author: "fakecore"
# author: ["Me", "You"] # multiple authors
showToc: true
TocOpen: false
draft: false
draft: true
hidemeta: false
comments: false
description: "Desc Text."
Expand Down
20 changes: 10 additions & 10 deletions content/posts/linux_shm_and_mmap_compared.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Linux下shm和mmap的比较"
date: 2023-06-19T15:12:12+08:00
# weight: 1
# aliases: ["/first"]
tags: ["first"]
tags: ["linux"]
author: "fakecore"
# author: ["Me", "You"] # multiple authors
showToc: true
Expand Down Expand Up @@ -116,9 +116,9 @@ shm_unlink: 关闭shm segement
O_RDONLY
Open the object for read access. A shared memory object opened in this way can be
mmap(2)ed only for read (PROT_READ) access.

O_RDWR Open the object for read-write access.

O_CREAT
Create the shared memory object if it does not exist. The user and group owner-
ship of the object are taken from the corresponding effective IDs of the calling
Expand All @@ -127,15 +127,15 @@ shm_unlink: 关闭shm segement
(see umask(2)) are cleared for the new object. A set of macro constants which can
be used to define mode is listed in open(2). (Symbolic definitions of these con-
stants can be obtained by including <sys/stat.h>.)

A new shared memory object initially has zero length--the size of the object can
be set using ftruncate(2). The newly allocated bytes of a shared memory object
are automatically initialized to 0.

O_EXCL If O_CREAT was also specified, and a shared memory object with the given name al-
ready exists, return an error. The check for the existence of the object, and its
creation if it does not exist, are performed atomically.

O_TRUNC
If the shared memory object already exists, truncate it to zero bytes.

Expand Down Expand Up @@ -179,16 +179,16 @@ int ftruncate(int fd, off_t length);

The truncate() and ftruncate() functions cause the regular file named by path or refer-
enced by fd to be truncated to a size of precisely length bytes.

If the file previously was larger than this size, the extra data is lost. If the file
previously was shorter, it is extended, and the extended part reads as null bytes ('\0').

The file offset is not changed.

If the size changed, then the st_ctime and st_mtime fields (respectively, time of last
status change and time of last modification; see inode(7)) for the file are updated, and
the set-user-ID and set-group-ID mode bits may be cleared.

With ftruncate(), the file must be open for writing; with truncate(), the file must be
writable.

Expand Down
2 changes: 1 addition & 1 deletion content/posts/rc_and_refcell.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Rc和refcell"
date: 2023-06-19T15:12:35+08:00
# weight: 1
# aliases: ["/first"]
tags: ["first"]
tags: ["linux","rust"]
author: "fakecore"
# author: ["Me", "You"] # multiple authors
showToc: true
Expand Down
4 changes: 2 additions & 2 deletions content/posts/runc_share_01.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ title: "Runc分享01"
date: 2023-06-19T15:12:50+08:00
# weight: 1
# aliases: ["/first"]
tags: ["first"]
tags: ["go","runc","docker"]
author: "fakecore"
# author: ["Me", "You"] # multiple authors
showToc: true
TocOpen: false
draft: false
draft: true
hidemeta: false
comments: false
description: "Desc Text."
Expand Down
57 changes: 0 additions & 57 deletions content/posts/tauri_share_01.md

This file was deleted.

0 comments on commit 3530d5c

Please sign in to comment.