* [patch] shmop.2: tfix
@ 2021-05-04 13:52 Vishwajith.K
2021-05-08 10:07 ` Vishwajith.K
0 siblings, 1 reply; 3+ messages in thread
From: Vishwajith.K @ 2021-05-04 13:52 UTC (permalink / raw)
To: linux-man; +Cc: alx.manpages, mtk.manpages
[-- Attachment #1: Type: text/plain, Size: 693 bytes --]
From 8f678998296fab3d68b3637f5334d8ded37f3c99 Mon Sep 17 00:00:00 2001
From: Vishwajith K <vishuvikas1996@gmail.com>
Date: Tue, 4 May 2021 10:09:11 -0400
Subject: [PATCH] tfix: shmop.2 example code
---
man2/shmop.2 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/man2/shmop.2 b/man2/shmop.2
index 3a6c908ee..c7e66af0e 100644
--- a/man2/shmop.2
+++ b/man2/shmop.2
@@ -387,8 +387,8 @@ main(int argc, char *argv[])
errExit("shmget");
semid = semget(IPC_PRIVATE, 1, IPC_CREAT | 0600);
- if (shmid == \-1)
- errExit("shmget");
+ if (semid == \-1)
+ errExit("semget");
/* Attach shared memory into our address space. */
--
2.27.0
[-- Attachment #2: 0001-tfix-shmop.2-example-code.patch --]
[-- Type: application/octet-stream, Size: 697 bytes --]
From 8f678998296fab3d68b3637f5334d8ded37f3c99 Mon Sep 17 00:00:00 2001
From: Vishwajith K <vishuvikas1996@gmail.com>
Date: Tue, 4 May 2021 10:09:11 -0400
Subject: [PATCH] tfix: shmop.2 example code
---
man2/shmop.2 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/man2/shmop.2 b/man2/shmop.2
index 3a6c908ee..c7e66af0e 100644
--- a/man2/shmop.2
+++ b/man2/shmop.2
@@ -387,8 +387,8 @@ main(int argc, char *argv[])
errExit("shmget");
semid = semget(IPC_PRIVATE, 1, IPC_CREAT | 0600);
- if (shmid == \-1)
- errExit("shmget");
+ if (semid == \-1)
+ errExit("semget");
/* Attach shared memory into our address space. */
--
2.27.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [patch] shmop.2: tfix
2021-05-04 13:52 [patch] shmop.2: tfix Vishwajith.K
@ 2021-05-08 10:07 ` Vishwajith.K
2021-05-08 16:13 ` Alejandro Colomar (man-pages)
0 siblings, 1 reply; 3+ messages in thread
From: Vishwajith.K @ 2021-05-08 10:07 UTC (permalink / raw)
To: linux-man; +Cc: alx.manpages, mtk.manpages
replying to all;
Consider checking this patch - code duplication typo fix.
Regards,
Vishwa
On Tue, May 4, 2021 at 7:22 PM Vishwajith.K <vishuvikas1996@gmail.com> wrote:
>
> From 8f678998296fab3d68b3637f5334d8ded37f3c99 Mon Sep 17 00:00:00 2001
> From: Vishwajith K <vishuvikas1996@gmail.com>
> Date: Tue, 4 May 2021 10:09:11 -0400
> Subject: [PATCH] tfix: shmop.2 example code
>
> ---
> man2/shmop.2 | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/man2/shmop.2 b/man2/shmop.2
> index 3a6c908ee..c7e66af0e 100644
> --- a/man2/shmop.2
> +++ b/man2/shmop.2
> @@ -387,8 +387,8 @@ main(int argc, char *argv[])
> errExit("shmget");
>
> semid = semget(IPC_PRIVATE, 1, IPC_CREAT | 0600);
> - if (shmid == \-1)
> - errExit("shmget");
> + if (semid == \-1)
> + errExit("semget");
>
> /* Attach shared memory into our address space. */
>
> --
> 2.27.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch] shmop.2: tfix
2021-05-08 10:07 ` Vishwajith.K
@ 2021-05-08 16:13 ` Alejandro Colomar (man-pages)
0 siblings, 0 replies; 3+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-05-08 16:13 UTC (permalink / raw)
To: Vishwajith.K, linux-man; +Cc: mtk.manpages
Hello Vishwajith,
On 5/8/21 12:07 PM, Vishwajith.K wrote:
> replying to all;
> Consider checking this patch - code duplication typo fix.
Sorry, I forgot to reply to you. I applied the patch to my tree on Tuesday.
Thanks!
Alex
>> ---
>> man2/shmop.2 | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/man2/shmop.2 b/man2/shmop.2
>> index 3a6c908ee..c7e66af0e 100644
>> --- a/man2/shmop.2
>> +++ b/man2/shmop.2
>> @@ -387,8 +387,8 @@ main(int argc, char *argv[])
>> errExit("shmget");
>>
>> semid = semget(IPC_PRIVATE, 1, IPC_CREAT | 0600);
>> - if (shmid == \-1)
>> - errExit("shmget");
>> + if (semid == \-1)
>> + errExit("semget");
>>
>> /* Attach shared memory into our address space. */
>>
>> --
>> 2.27.0
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-08 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04 13:52 [patch] shmop.2: tfix Vishwajith.K
2021-05-08 10:07 ` Vishwajith.K
2021-05-08 16:13 ` Alejandro Colomar (man-pages)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.