diff options
Diffstat (limited to 'po/pt_BR/man2/msgop.2.po')
-rw-r--r-- | po/pt_BR/man2/msgop.2.po | 1610 |
1 files changed, 1610 insertions, 0 deletions
diff --git a/po/pt_BR/man2/msgop.2.po b/po/pt_BR/man2/msgop.2.po new file mode 100644 index 00000000..699369f4 --- /dev/null +++ b/po/pt_BR/man2/msgop.2.po @@ -0,0 +1,1610 @@ +# Brazilian Portuguese translation of manpages +# This file is distributed under the same license as the manpages-l10n package. +# Copyright © of this file: +# André Luiz Fassone <lonely_wolf@ig.com.br>, 2001. +# Walter Rodrigo de Sá Cruz <keytech@bol.com.br>, 2001. +msgid "" +msgstr "" +"Project-Id-Version: manpages-l10n\n" +"POT-Creation-Date: 2024-03-01 17:02+0100\n" +"PO-Revision-Date: 2001-06-02 19:20-0300\n" +"Last-Translator: André Luiz Fassone <lonely_wolf@ig.com.br>\n" +"Language-Team: Brazilian Portuguese <debian-l10n-portuguese@lists.debian." +"org>\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Virtaal 1.0.0-beta1\n" + +#. type: TH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "MSGOP" +msgstr "MSGOP" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "2023-10-31" +msgstr "31 outubro 2023" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "Linux man-pages 6.06" +msgstr "Linux man-pages 6.06" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "NAME" +msgstr "NOME" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "msgop - message operations" +msgid "msgrcv, msgsnd - System V message queue operations" +msgstr "msgop - operações com mensagens" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "LIBRARY" +msgstr "BIBLIOTECA" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Standard C library (I<libc>, I<-lc>)" +msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "SYNOPSIS" +msgstr "SINOPSE" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<#include E<lt>sys/msg.hE<gt>>\n" +msgstr "B<#include E<lt>sys/msg.hE<gt>>\n" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy, no-wrap +#| msgid "B<int msgsnd(int >I<msqid>B<, const void *>I<msgp>B<, size_t >I<msgsz>B<, int >I<msgflg>B<);>\n" +msgid "" +"B<int msgsnd(int >I<msqid>B<, const void >I<msgp>B<[.>I<msgsz>B<], size_t >I<msgsz>B<,>\n" +"B< int >I<msgflg>B<);>\n" +msgstr "B<int msgsnd(int >I<msqid>B<, const void *>I<msgp>B<, size_t >I<msgsz>B<, int >I<msgflg>B<);>\n" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy, no-wrap +#| msgid "" +#| "B<ssize_t msgrcv(int >I<msqid>B<, void *>I<msgp>B<, size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" +#| "B< int >I<msgflg>B<);>\n" +msgid "" +"B<ssize_t msgrcv(int >I<msqid>B<, void >I<msgp>B<[.>I<msgsz>B<], size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" +"B< int >I<msgflg>B<);>\n" +msgstr "" +"B<ssize_t msgrcv(int >I<msqid>B<, void *>I<msgp>B<, size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" +"B< int >I<msgflg>B<);>\n" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "DESCRIPTION" +msgstr "DESCRIÇÃO" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The B<msgsnd>() and B<msgrcv>() system calls are used to send messages to, " +"and receive messages from, a System\\ V message queue. The calling process " +"must have write permission on the message queue in order to send a message, " +"and read permission to receive a message." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The I<msgflg> argument asserts none, one or more (or-ing them) among the " +#| "following flags:" +msgid "" +"The I<msgp> argument is a pointer to a caller-defined structure of the " +"following general form:" +msgstr "" +"O argumento I<msgflg> declara nenhum, um ou mais (ou lógico entre eles) " +"entres as seguintes opções:" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"struct msgbuf {\n" +" long mtype; /* message type, must be E<gt> 0 */\n" +" char mtext[1]; /* message data */\n" +"};\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "but with an array B<mtext> of size I<msgsz>, a non-negative integer " +#| "value. The structure member B<mtype> must have a strictly positive " +#| "integer value that can be used by the receiving process for message " +#| "selection (see the section about B<msgrcv>)." +msgid "" +"The I<mtext> field is an array (or other structure) whose size is specified " +"by I<msgsz>, a nonnegative integer value. Messages of zero length (i.e., no " +"I<mtext> field) are permitted. The I<mtype> field must have a strictly " +"positive integer value. This value can be used by the receiving process for " +"message selection (see the description of B<msgrcv>() below)." +msgstr "" +"mas com um array B<mtext> de tamanho I<msgsz>, um inteiro de valor não-" +"negativo. O membro da estrutura B<mtype> deve ter um valor estritamente " +"positivo que pode ser usado pelo pelo processo receptor para a seleção de " +"mensagem (veja a seção sobre B<msgrcv>)." + +#. type: SS +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "msgsnd()" +msgstr "msgsnd()" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The B<msgsnd> system call enqueues a copy of the message pointed to by " +#| "the I<msgp> argument on the message queue whose identifier is specified " +#| "by the value of the I<msqid> argument." +msgid "" +"The B<msgsnd>() system call appends a copy of the message pointed to by " +"I<msgp> to the message queue whose identifier is specified by I<msqid>." +msgstr "" +"A chamada de sistema B<msgsnd> enfileira uma cópia da mensagem apontada pelo " +"argumento I<msgp> na fila de mensagens cujo identificador é especificado " +"pelo valor do argumento I<msqid>." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"If sufficient space is available in the queue, B<msgsnd>() succeeds " +"immediately. The queue capacity is governed by the I<msg_qbytes> field in " +"the associated data structure for the message queue. During queue creation " +"this field is initialized to B<MSGMNB> bytes, but this limit can be modified " +"using B<msgctl>(2). A message queue is considered to be full if either of " +"the following conditions is true:" +msgstr "" + +#. type: IP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "\\[bu]" +msgstr "\\[bu]" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Adding a new message to the queue would cause the total number of bytes in " +"the queue to exceed the queue's maximum size (the I<msg_qbytes> field)." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Adding another message to the queue would cause the total number of messages " +"in the queue to exceed the queue's maximum size (the I<msg_qbytes> field). " +"This check is necessary to prevent an unlimited number of zero-length " +"messages being placed on the queue. Although such messages contain no data, " +"they nevertheless consume (locked) kernel memory." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"If insufficient space is available in the queue, then the default behavior " +"of B<msgsnd>() is to block until space becomes available. If B<IPC_NOWAIT> " +"is specified in I<msgflg>, then the call instead fails with the error " +"B<EAGAIN>." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "A blocked B<msgsnd>() call may also fail if:" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The message queue is removed from the system. In such a case the system " +#| "call fails with B<errno> set to B<EIDRM>." +msgid "" +"the queue is removed, in which case the system call fails with I<errno> set " +"to B<EIDRM>; or" +msgstr "" +"A fila de mensagens é removida do sistema. Nesse caso, a chamada de sistema " +"falha com B<errno> selecionado para B<EIDRM>." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"a signal is caught, in which case the system call fails with I<errno> set to " +"B<EINTR>;B<see> B<signal>(7). (B<msgsnd>() is never automatically " +"restarted after being interrupted by a signal handler, regardless of the " +"setting of the B<SA_RESTART> flag when establishing a signal handler.)" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Upon successful completion the message queue data structure is updated as " +"follows:" +msgstr "" +"Numa finalização bem sucedida, a estrutura de dados da fila é atualizada do " +"seguinte modo:" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "B<msg_lspid> is set to the process-\\ID of the calling process." +msgid "I<msg_lspid> is set to the process ID of the calling process." +msgstr "B<msg_lspid> é selecionado para o PID do processo solicitante." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "I<msg_qnum> is incremented by 1." +msgstr "I<msg_qnum> é incrementado em 1." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "I<msg_stime> is set to the current time." +msgstr "I<msg_stime> é selecionado para a hora atual." + +#. type: SS +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "msgrcv()" +msgstr "msgrcv()" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The system call B<msgrcv> reads a message from the message queue " +#| "specified by I<msqid> into the B<msgbuf> pointed to by the I<msgp> " +#| "argument removing from the queue, on success, the read message." +msgid "" +"The B<msgrcv>() system call removes a message from the queue specified by " +"I<msqid> and places it in the buffer pointed to by I<msgp>." +msgstr "" +"A chamada de sistema B<msgrcv> lê uma mensagem da fila de mensagens " +"especificada por I<msqid> no B<msgbuf> apontado pelo argumento I<msgp>, " +"removendo da fila, no caso de sucesso, a mensagem lida." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The argument I<msgsz> specifies the maximum size in bytes for the member " +#| "B<mtext> of the structure pointed to by the I<msgp> argument. If the " +#| "message text has length greater than I<msgsz>, then if the I<msgflg> " +#| "argument asserts B<MSG_NOERROR>, the message text will be truncated (and " +#| "the truncated part will be lost), otherwise the message isn't removed " +#| "from the queue and the system call fails returning with B<errno> set to " +#| "B<E2BIG>." +msgid "" +"The argument I<msgsz> specifies the maximum size in bytes for the member " +"I<mtext> of the structure pointed to by the I<msgp> argument. If the " +"message text has length greater than I<msgsz>, then the behavior depends on " +"whether B<MSG_NOERROR> is specified in I<msgflg>. If B<MSG_NOERROR> is " +"specified, then the message text will be truncated (and the truncated part " +"will be lost); if B<MSG_NOERROR> is not specified, then the message isn't " +"removed from the queue and the system call fails returning -1 with I<errno> " +"set to B<E2BIG>." +msgstr "" +"O argumento I<msgsz> especifica o tamanha máximo em bytes para o membro da " +"estrutura B<mtext> apontado pelo argumento I<msgp>. Se o texto da mensagem " +"tem tamanho maior que I<msgsz>, então se o argumento I<msgflg> declara " +"B<MSG_NOERROR>, o texto da mensagem será truncado (e a parte truncada será " +"perdida), senão, a mensagem não é removida da fila e a chamada de sistema " +"falha, com B<errno> setado para B<E2BIG>." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The argument I<msgtyp> specifies the type of message requested as follows:" +msgid "" +"Unless B<MSG_COPY> is specified in I<msgflg> (see below), the I<msgtyp> " +"argument specifies the type of message requested, as follows:" +msgstr "O argumento I<msgtyp> especifica o tipo de mensagem como segue:" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "If I<msgtyp> is B<0>, then the message on the queue's front is read." +msgid "If I<msgtyp> is 0, then the first message in the queue is read." +msgstr "" +"Se I<msgtyp> é B<0>, então a mensagem a mensagem na frente da fila e lida." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "If I<msgtyp> is greater than B<0>, then the first message on the queue of " +#| "type I<msgtyp> is read if B<MSG_EXCEPT> isn't asserted by the I<msgflg> " +#| "argument, otherwise the first message on the queue of type not equal to " +#| "I<msgtyp> will be read." +msgid "" +"If I<msgtyp> is greater than 0, then the first message in the queue of type " +"I<msgtyp> is read, unless B<MSG_EXCEPT> was specified in I<msgflg>, in which " +"case the first message in the queue of type not equal to I<msgtyp> will be " +"read." +msgstr "" +"Se I<msgtyp> é maior que B<0>, então a primeira mensagem na fila do tipo " +"I<msgtyp> é lida se B<MSG_EXCEPT> não está declarada pelo argumento " +"I<msgflg>, de outra forma a primeira mensagem na ila de tipo nao igual a " +"I<msgtyp> será lida." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"If I<msgtyp> is less than 0, then the first message in the queue with the " +"lowest type less than or equal to the absolute value of I<msgtyp> will be " +"read." +msgstr "" +"Se I<msgtyp> é menor que 0, então a primeira mensagem na fila com o tipo " +"menor que ou igual ao valor absoluto de I<msgtyp> será lida." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The I<msgflg> argument asserts none, one or more (or-ing them) among the " +#| "following flags:" +msgid "" +"The I<msgflg> argument is a bit mask constructed by ORing together zero or " +"more of the following flags:" +msgstr "" +"O argumento I<msgflg> declara nenhum, um ou mais (ou lógico entre eles) " +"entres as seguintes opções:" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<IPC_NOWAIT>" +msgstr "B<IPC_NOWAIT>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "B<IPC_NOWAIT> For immediate return if no message of the requested type is " +#| "on the queue. The system call fails with errno set to B<ENOMSG>." +msgid "" +"Return immediately if no message of the requested type is in the queue. The " +"system call fails with I<errno> set to B<ENOMSG>." +msgstr "" +"B<IPC_NOWAIT> Para retorno imediato se nenhuma mensagem do tipo requisitado " +"está na fila. A chamada de sistema retona com errno selecionado para " +"B<ENOMSG>." + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MSG_COPY> (since Linux 3.8)" +msgstr "" + +#. commit 4a674f34ba04a002244edaf891b5da7fc1473ae8 +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Nondestructively fetch a copy of the message at the ordinal position in the " +"queue specified by I<msgtyp> (messages are considered to be numbered " +"starting at 0)." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"This flag must be specified in conjunction with B<IPC_NOWAIT>, with the " +"result that, if there is no message available at the given position, the " +"call fails immediately with the error B<ENOMSG>. Because they alter the " +"meaning of I<msgtyp> in orthogonal ways, B<MSG_COPY> and B<MSG_EXCEPT> may " +"not both be specified in I<msgflg>." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The B<MSG_COPY> flag was added for the implementation of the kernel " +"checkpoint-restore facility and is available only if the kernel was built " +"with the B<CONFIG_CHECKPOINT_RESTORE> option." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MSG_EXCEPT>" +msgstr "B<MSG_EXCEPT>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Used with I<msgtyp> greater than 0 to read the first message in the queue " +"with message type that differs from I<msgtyp>." +msgstr "" +"Usado com I<msgtyp> maior que 0 para ler a primeira mensagem na fila com o " +"tipo de mensagem diferente de I<msgtyp>." + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MSG_NOERROR>" +msgstr "B<MSG_NOERROR>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "To truncate the message text if longer than I<msgsz> bytes." +msgstr "Para truncar o texto da mensagem se ele for maior que I<msgsz> bytes." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "If no message of the requested type is available and B<IPC_NOWAIT> isn't " +#| "asserted in I<msgflg>, the calling process is blocked until one of the " +#| "following conditions occurs:" +msgid "" +"If no message of the requested type is available and B<IPC_NOWAIT> isn't " +"specified in I<msgflg>, the calling process is blocked until one of the " +"following conditions occurs:" +msgstr "" +"Se nenhuma mensagem do tipo requisitado está disponível e B<IPC_NOWAIT> não " +"está selecionado em I<msgflg>, o processo solicitante é bloqueado até uma " +"das seguintes condições acontecerem:" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "A message of the desired type is placed in the queue." +msgstr "Uma mensagem do tipo desejado é colocada na fila." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The message queue is removed from the system. In such a case the system " +#| "call fails with B<errno> set to B<EIDRM>." +msgid "" +"The message queue is removed from the system. In this case, the system call " +"fails with I<errno> set to B<EIDRM>." +msgstr "" +"A fila de mensagens é removida do sistema. Nesse caso, a chamada de sistema " +"falha com B<errno> selecionado para B<EIDRM>." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The calling process catches a signal. In this case, the system call fails " +"with I<errno> set to B<EINTR>. (B<msgrcv>() is never automatically " +"restarted after being interrupted by a signal handler, regardless of the " +"setting of the B<SA_RESTART> flag when establishing a signal handler.)" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "I<msg_lrpid> is set to the process ID of the calling process." +msgstr "I<msg_lrpid> é selecionado para o PID do processo solicitante." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "I<msg_qnum> is decremented by 1." +msgstr "I<msg_qnum> é decrementado em 1." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "I<msg_rtime> is set to the current time." +msgstr "I<msg_rtime> é selecionado para a hora atual." + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "RETURN VALUE" +msgstr "VALOR DE RETORNO" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "On failure both functions return -1 with I<errno> indicating the error, " +#| "otherwise B<msgsnd>() returns 0 and B<msgrcv>() returns the number of " +#| "bytes actually copied into the I<mtext> array." +msgid "" +"On success, B<msgsnd>() returns 0 and B<msgrcv>() returns the number of " +"bytes actually copied into the I<mtext> array. On failure, both functions " +"return -1, and set I<errno> to indicate the error." +msgstr "" +"Em caso de erro, ambas as funções retornam -1 com I<errno> indicando o erro, " +"se não B<msgsnd>() devolve 0 e B<msgrcv>() retorna o número de bytes " +"atualmente copiados no array I<mtext>." + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "ERRORS" +msgstr "ERROS" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "When B<msgsnd>() fails, I<errno> will be set to one among the following " +#| "values:" +msgid "B<msgsnd>() can fail with the following errors:" +msgstr "" +"Quando B<msgsnd>() falha, I<errno> será setado para um dos seguintes valores:" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<EACCES>" +msgstr "B<EACCES>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The calling process does not have write permission on the message queue, and " +"does not have the B<CAP_IPC_OWNER> capability in the user namespace that " +"governs its IPC namespace." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<EAGAIN>" +msgstr "B<EAGAIN>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The message can't be sent due to the B<msg_qbytes> limit for the queue " +#| "and B<IPC_NOWAIT> was asserted in I<mgsflg>." +msgid "" +"The message can't be sent due to the I<msg_qbytes> limit for the queue and " +"B<IPC_NOWAIT> was specified in I<msgflg>." +msgstr "" +"A mensagem não pode ser enviada devido do limite B<msg_qbytes> imposto para " +"a fila e B<IPC_NOWAIT> estava setado em I<mgsflg>." + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<EFAULT>" +msgstr "B<EFAULT>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The address pointed to by I<msgp> isn't accessible." +msgstr "O endereço apontado por I<msgp> não é acessível." + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<EIDRM>" +msgstr "B<EIDRM>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The message queue was removed." +msgstr "A fila de mensagens foi removida." + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<EINTR>" +msgstr "B<EINTR>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "Sleeping on a full message queue condition, the process received a signal " +#| "that had to be caught." +msgid "" +"Sleeping on a full message queue condition, the process caught a signal." +msgstr "" +"Esperando por uma condição de fila de mensagens completa, o processo recebeu " +"um sinal que teve de ser tratado." + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<EINVAL>" +msgstr "B<EINVAL>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Invalid I<msqid> value, or nonpositive I<mtype> value, or invalid I<msgsz> " +"value (less than 0 or greater than the system value B<MSGMAX>)." +msgstr "" +"Valor inválido para I<msqid>, ou valor I<mtype> não positivo, ou valor de " +"I<msgsz> inválido (menor que 0 ou maior que o valor de sistema B<MSGMAX>)." + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<ENOMEM>" +msgstr "B<ENOMEM>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The system has not enough memory to make a copy of the supplied B<msgbuf>." +msgid "" +"The system does not have enough memory to make a copy of the message pointed " +"to by I<msgp>." +msgstr "" +"O sistema não tem memória suficiente para fazer uma cópia do B<msgbuf> " +"suprido." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "When B<msgrcv>() fails, I<errno> will be set to one among the following " +#| "values:" +msgid "B<msgrcv>() can fail with the following errors:" +msgstr "" +"Quando B<msgrcv>() falha, I<errno> será setado para um dos seguintes valores:" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<E2BIG>" +msgstr "B<E2BIG>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The message text length is greater than I<msgsz> and B<MSG_NOERROR> isn't " +#| "asserted in I<msgflg>." +msgid "" +"The message text length is greater than I<msgsz> and B<MSG_NOERROR> isn't " +"specified in I<msgflg>." +msgstr "" +"O tamanho do texto da mensagem é maior que I<msgsz> e B<MSG_NOERROR> não " +"está selecionado em I<msgflg>." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The calling process does not have read permission on the message queue, and " +"does not have the B<CAP_IPC_OWNER> capability in the user namespace that " +"governs its IPC namespace." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"While the process was sleeping to receive a message, the message queue was " +"removed." +msgstr "" +"Enquanto o processo estava esperando receber uma mensagem, a fila de " +"mensagens foi removida." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "While the process was sleeping to receive a message, the process received " +#| "a signal that had to be caught." +msgid "" +"While the process was sleeping to receive a message, the process caught a " +"signal; see B<signal>(7)." +msgstr "" +"Enquanto o processo estava esperando receber uma mensagem, o processo " +"recebeu um sinal que teve de ser tratado." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +msgid "I<msqid> was invalid, or I<msgsz> was less than 0." +msgstr "Valor de I<msgqid>, ou I<msgsz> menor que B<0>." + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<EINVAL> (since Linux 3.14)" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "I<msgflg> specified B<MSG_COPY>, but not B<IPC_NOWAIT>." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "I<msgflg> specified both B<MSG_COPY> and B<MSG_EXCEPT>." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<ENOMSG>" +msgstr "B<ENOMSG>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "B<IPC_NOWAIT> was asserted in I<msgflg> and no message of the requested " +#| "type existed on the message queue." +msgid "" +"B<IPC_NOWAIT> was specified in I<msgflg> and no message of the requested " +"type existed on the message queue." +msgstr "" +"B<IPC_NOWAIT> estava setado em I<msgflg> e não existia nenhuma mensagem do " +"tipo requisitado na fila de mensagens." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"B<IPC_NOWAIT> and B<MSG_COPY> were specified in I<msgflg> and the queue " +"contains less than I<msgtyp> messages." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<ENOSYS> (since Linux 3.8)" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Both B<MSG_COPY> and B<IPC_NOWAIT> were specified in I<msgflg>, and this " +"kernel was configured without B<CONFIG_CHECKPOINT_RESTORE>." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "STANDARDS" +msgstr "PADRÕES" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "POSIX.1-2008." +msgstr "POSIX.1-2008." + +#. MSG_COPY since glibc 2.18 +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The B<MSG_EXCEPT> and B<MSG_COPY> flags are Linux-specific; their " +"definitions can be obtained by defining the B<_GNU_SOURCE> feature test " +"macro." +msgstr "" + +#. type: SH +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "HISTORY" +msgstr "HISTÓRICO" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "POSIX.1-2001, SVr4." +msgstr "POSIX.1-2001, SVr4." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The pointer argument is declared as I<struct msgbuf *> with libc4, libc5, " +#| "glibc 2.0, glibc 2.1. It is declared as I<void *> (I<const void *> for " +#| "I<msgsnd()>) with glibc 2.2, following the SUSv2." +msgid "" +"The I<msgp> argument is declared as I<struct msgbuf\\ *> in glibc 2.0 and " +"2.1. It is declared as I<void\\ *> in glibc 2.2 and later, as required by " +"SUSv2 and SUSv3." +msgstr "" +"O argumento ponteiro é declarado como I<struct msgbuf *> com libc4, libc5, " +"glibc 2.0, glibc 2.1. Ele é declarado como I<void *> (I<const void *> for " +"I<msgsnd()>) com a glibc 2.2, seguindo o SUSv2." + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "NOTES" +msgstr "NOTAS" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "The followings are system limits affecting a B<msgsnd> system call:" +msgid "" +"The following limits on message queue resources affect the B<msgsnd>() call:" +msgstr "" +"A seguir, alguns limites do sistema que podem afetar a chamada de sistema " +"B<msgsnd>:" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MSGMAX>" +msgstr "B<MSGMAX>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Maximum size of a message text, in bytes (default value: 8192 bytes). On " +"Linux, this limit can be read and modified via I</proc/sys/kernel/msgmax>." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MSGMNB>" +msgstr "B<MSGMNB>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Maximum number of bytes that can be held in a message queue (default value: " +"16384 bytes). On Linux, this limit can be read and modified via I</proc/sys/" +"kernel/msgmnb>. A privileged process (Linux: a process with the " +"B<CAP_SYS_RESOURCE> capability) can increase the size of a message queue " +"beyond B<MSGMNB> using the B<msgctl>(2) B<IPC_SET> operation." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, fuzzy +#| msgid "" +#| "The implementation has no intrinsic limits for the system wide maximum " +#| "number of message headers (B<MSGTQL>) and for the system wide maximum " +#| "size in bytes of the message pool (B<MSGPOOL>)." +msgid "" +"The implementation has no intrinsic system-wide limits on the number of " +"message headers (B<MSGTQL>) and the number of bytes in the message pool " +"(B<MSGPOOL>)." +msgstr "" +"A implementação não tem limites intrinsecos para o total máximo do sistema " +"número de headers de mensagem (B<MSGTQL>) e para o valor total em bytes do " +"pool de mensagens (B<MSGPOOL>)." + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "BUGS" +msgstr "BUGS" + +#. http://marc.info/?l=linux-kernel&m=139048542803605&w=2 +#. commit 4f87dac386cc43d5525da7a939d4b4e7edbea22c +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"In Linux 3.13 and earlier, if B<msgrcv>() was called with the B<MSG_COPY> " +"flag, but without B<IPC_NOWAIT>, and the message queue contained less than " +"I<msgtyp> messages, then the call would block until the next message is " +"written to the queue. At that point, the call would return a copy of the " +"message, I<regardless> of whether that message was at the ordinal position " +"I<msgtyp>. This bug is fixed in Linux 3.14." +msgstr "" + +#. http://marc.info/?l=linux-kernel&m=139048542803605&w=2 +#. commit 4f87dac386cc43d5525da7a939d4b4e7edbea22c +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Specifying both B<MSG_COPY> and B<MSC_EXCEPT> in I<msgflg> is a logical " +"error (since these flags impose different interpretations on I<msgtyp>). In " +"Linux 3.13 and earlier, this error was not diagnosed by B<msgrcv>(). This " +"bug is fixed in Linux 3.14." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "EXAMPLES" +msgstr "EXEMPLOS" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The program below demonstrates the use of B<msgsnd>() and B<msgrcv>()." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The example program is first run with the B<-s> option to send a message and " +"then run again with the B<-r> option to receive a message." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The following shell session shows a sample run of the program:" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"$B< ./a.out -s>\n" +"sent: a message at Wed Mar 4 16:25:45 2015\n" +msgstr "" +"$B< ./a.out -s>\n" +"sent: a message at Wed Mar 4 16:25:45 2015\n" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"$B< ./a.out -r>\n" +"message received: a message at Wed Mar 4 16:25:45 2015\n" +msgstr "" +"$B< ./a.out -r>\n" +"message received: a message at Wed Mar 4 16:25:45 2015\n" + +#. type: SS +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Program source" +msgstr "Fonte do programa" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "" +"#include E<lt>errno.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>sys/ipc.hE<gt>\n" +"#include E<lt>sys/msg.hE<gt>\n" +"#include E<lt>time.hE<gt>\n" +"#include E<lt>unistd.hE<gt>\n" +"\\&\n" +"struct msgbuf {\n" +" long mtype;\n" +" char mtext[80];\n" +"};\n" +"\\&\n" +"static void\n" +"usage(char *prog_name, char *msg)\n" +"{\n" +" if (msg != NULL)\n" +" fputs(msg, stderr);\n" +"\\&\n" +" fprintf(stderr, \"Usage: %s [options]\\en\", prog_name);\n" +" fprintf(stderr, \"Options are:\\en\");\n" +" fprintf(stderr, \"-s send message using msgsnd()\\en\");\n" +" fprintf(stderr, \"-r read message using msgrcv()\\en\");\n" +" fprintf(stderr, \"-t message type (default is 1)\\en\");\n" +" fprintf(stderr, \"-k message queue key (default is 1234)\\en\");\n" +" exit(EXIT_FAILURE);\n" +"}\n" +"\\&\n" +"static void\n" +"send_msg(int qid, int msgtype)\n" +"{\n" +" time_t t;\n" +" struct msgbuf msg;\n" +"\\&\n" +" msg.mtype = msgtype;\n" +"\\&\n" +" time(&t);\n" +" snprintf(msg.mtext, sizeof(msg.mtext), \"a message at %s\",\n" +" ctime(&t));\n" +"\\&\n" +" if (msgsnd(qid, &msg, sizeof(msg.mtext),\n" +" IPC_NOWAIT) == -1)\n" +" {\n" +" perror(\"msgsnd error\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" printf(\"sent: %s\\en\", msg.mtext);\n" +"}\n" +"\\&\n" +"static void\n" +"get_msg(int qid, int msgtype)\n" +"{\n" +" struct msgbuf msg;\n" +"\\&\n" +" if (msgrcv(qid, &msg, sizeof(msg.mtext), msgtype,\n" +" MSG_NOERROR | IPC_NOWAIT) == -1) {\n" +" if (errno != ENOMSG) {\n" +" perror(\"msgrcv\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" printf(\"No message available for msgrcv()\\en\");\n" +" } else {\n" +" printf(\"message received: %s\\en\", msg.mtext);\n" +" }\n" +"}\n" +"\\&\n" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" int qid, opt;\n" +" int mode = 0; /* 1 = send, 2 = receive */\n" +" int msgtype = 1;\n" +" int msgkey = 1234;\n" +"\\&\n" +" while ((opt = getopt(argc, argv, \"srt:k:\")) != -1) {\n" +" switch (opt) {\n" +" case \\[aq]s\\[aq]:\n" +" mode = 1;\n" +" break;\n" +" case \\[aq]r\\[aq]:\n" +" mode = 2;\n" +" break;\n" +" case \\[aq]t\\[aq]:\n" +" msgtype = atoi(optarg);\n" +" if (msgtype E<lt>= 0)\n" +" usage(argv[0], \"-t option must be greater than 0\\en\");\n" +" break;\n" +" case \\[aq]k\\[aq]:\n" +" msgkey = atoi(optarg);\n" +" break;\n" +" default:\n" +" usage(argv[0], \"Unrecognized option\\en\");\n" +" }\n" +" }\n" +"\\&\n" +" if (mode == 0)\n" +" usage(argv[0], \"must use either -s or -r option\\en\");\n" +"\\&\n" +" qid = msgget(msgkey, IPC_CREAT | 0666);\n" +"\\&\n" +" if (qid == -1) {\n" +" perror(\"msgget\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" if (mode == 2)\n" +" get_msg(qid, msgtype);\n" +" else\n" +" send_msg(qid, msgtype);\n" +"\\&\n" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" + +#. SRC END +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "SEE ALSO" +msgstr "VEJA TAMBÉM" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"B<msgctl>(2), B<msgget>(2), B<capabilities>(7), B<mq_overview>(7), " +"B<sysvipc>(7)" +msgstr "" +"B<msgctl>(2), B<msgget>(2), B<capabilities>(7), B<mq_overview>(7), " +"B<sysvipc>(7)" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "2023-02-05" +msgstr "5 fevereiro 2023" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "Linux man-pages 6.03" +msgstr "Linux man-pages 6.03" + +#. type: Plain text +#: debian-bookworm +msgid "POSIX.1-2001, POSIX.1-2008, SVr4." +msgstr "POSIX.1-2001, POSIX.1-2008, SVr4." + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, fuzzy, no-wrap +#| msgid "" +#| "#include E<lt>stdio.hE<gt>\n" +#| "#include E<lt>stdlib.hE<gt>\n" +#| "#include E<lt>string.hE<gt>\n" +#| "#include E<lt>time.hE<gt>\n" +#| "#include E<lt>unistd.hE<gt>\n" +#| "#include E<lt>errno.hE<gt>\n" +#| "#include E<lt>sys/types.hE<gt>\n" +#| "#include E<lt>sys/ipc.hE<gt>\n" +#| "#include E<lt>sys/msg.hE<gt>\n" +msgid "" +"#include E<lt>errno.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>sys/ipc.hE<gt>\n" +"#include E<lt>sys/msg.hE<gt>\n" +"#include E<lt>time.hE<gt>\n" +"#include E<lt>unistd.hE<gt>\n" +msgstr "" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>string.hE<gt>\n" +"#include E<lt>time.hE<gt>\n" +"#include E<lt>unistd.hE<gt>\n" +"#include E<lt>errno.hE<gt>\n" +"#include E<lt>sys/types.hE<gt>\n" +"#include E<lt>sys/ipc.hE<gt>\n" +"#include E<lt>sys/msg.hE<gt>\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"struct msgbuf {\n" +" long mtype;\n" +" char mtext[80];\n" +"};\n" +msgstr "" +"struct msgbuf {\n" +" long mtype;\n" +" char mtext[80];\n" +"};\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"static void\n" +"usage(char *prog_name, char *msg)\n" +"{\n" +" if (msg != NULL)\n" +" fputs(msg, stderr);\n" +msgstr "" +"static void\n" +"usage(char *prog_name, char *msg)\n" +"{\n" +" if (msg != NULL)\n" +" fputs(msg, stderr);\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" fprintf(stderr, \"Usage: %s [options]\\en\", prog_name);\n" +" fprintf(stderr, \"Options are:\\en\");\n" +" fprintf(stderr, \"-s send message using msgsnd()\\en\");\n" +" fprintf(stderr, \"-r read message using msgrcv()\\en\");\n" +" fprintf(stderr, \"-t message type (default is 1)\\en\");\n" +" fprintf(stderr, \"-k message queue key (default is 1234)\\en\");\n" +" exit(EXIT_FAILURE);\n" +"}\n" +msgstr "" +" fprintf(stderr, \"Usage: %s [options]\\en\", prog_name);\n" +" fprintf(stderr, \"Options are:\\en\");\n" +" fprintf(stderr, \"-s send message using msgsnd()\\en\");\n" +" fprintf(stderr, \"-r read message using msgrcv()\\en\");\n" +" fprintf(stderr, \"-t message type (default is 1)\\en\");\n" +" fprintf(stderr, \"-k message queue key (default is 1234)\\en\");\n" +" exit(EXIT_FAILURE);\n" +"}\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, fuzzy, no-wrap +#| msgid "" +#| "static void\n" +#| "get_msg(int qid, int msgtype)\n" +#| "{\n" +#| " struct msgbuf msg;\n" +msgid "" +"static void\n" +"send_msg(int qid, int msgtype)\n" +"{\n" +" time_t t;\n" +" struct msgbuf msg;\n" +msgstr "" +"static void\n" +"get_msg(int qid, int msgtype)\n" +"{\n" +" struct msgbuf msg;\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid " msg.mtype = msgtype;\n" +msgstr " msg.mtype = msgtype;\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, fuzzy, no-wrap +#| msgid "" +#| " time(&t);\n" +#| " snprintf(msg.mtext, sizeof(msg.mtext), \"a message at %s\",\n" +#| " ctime(&t));\n" +msgid "" +" time(&t);\n" +" snprintf(msg.mtext, sizeof(msg.mtext), \"a message at %s\",\n" +" ctime(&t));\n" +msgstr "" +" time(&t);\n" +" snprintf(msg.mtext, sizeof(msg.mtext), \"a message at %s\",\n" +" ctime(&t));\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, fuzzy, no-wrap +#| msgid "" +#| " if (msgsnd(qid, (void *) &msg, sizeof(msg.mtext),\n" +#| " IPC_NOWAIT) == -1) {\n" +#| " perror(\"msgsnd error\");\n" +#| " exit(EXIT_FAILURE);\n" +#| " }\n" +#| " printf(\"sent: %s\\en\", msg.mtext);\n" +#| "}\n" +msgid "" +" if (msgsnd(qid, &msg, sizeof(msg.mtext),\n" +" IPC_NOWAIT) == -1)\n" +" {\n" +" perror(\"msgsnd error\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" printf(\"sent: %s\\en\", msg.mtext);\n" +"}\n" +msgstr "" +" if (msgsnd(qid, (void *) &msg, sizeof(msg.mtext),\n" +" IPC_NOWAIT) == -1) {\n" +" perror(\"msgsnd error\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" printf(\"sent: %s\\en\", msg.mtext);\n" +"}\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"static void\n" +"get_msg(int qid, int msgtype)\n" +"{\n" +" struct msgbuf msg;\n" +msgstr "" +"static void\n" +"get_msg(int qid, int msgtype)\n" +"{\n" +" struct msgbuf msg;\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, fuzzy, no-wrap +#| msgid "" +#| " if (msgrcv(qid, (void *) &msg, sizeof(msg.mtext), msgtype,\n" +#| " MSG_NOERROR | IPC_NOWAIT) == -1) {\n" +#| " if (errno != ENOMSG) {\n" +#| " perror(\"msgrcv\");\n" +#| " exit(EXIT_FAILURE);\n" +#| " }\n" +#| " printf(\"No message available for msgrcv()\\en\");\n" +#| " } else\n" +#| " printf(\"message received: %s\\en\", msg.mtext);\n" +#| "}\n" +msgid "" +" if (msgrcv(qid, &msg, sizeof(msg.mtext), msgtype,\n" +" MSG_NOERROR | IPC_NOWAIT) == -1) {\n" +" if (errno != ENOMSG) {\n" +" perror(\"msgrcv\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" printf(\"No message available for msgrcv()\\en\");\n" +" } else {\n" +" printf(\"message received: %s\\en\", msg.mtext);\n" +" }\n" +"}\n" +msgstr "" +" if (msgrcv(qid, (void *) &msg, sizeof(msg.mtext), msgtype,\n" +" MSG_NOERROR | IPC_NOWAIT) == -1) {\n" +" if (errno != ENOMSG) {\n" +" perror(\"msgrcv\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" printf(\"No message available for msgrcv()\\en\");\n" +" } else\n" +" printf(\"message received: %s\\en\", msg.mtext);\n" +"}\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, fuzzy, no-wrap +#| msgid "" +#| "int\n" +#| "main(int argc, char *argv[])\n" +#| "{\n" +#| " int qid, opt;\n" +#| " int mode = 0; /* 1 = send, 2 = receive */\n" +#| " int msgtype = 1;\n" +#| " int msgkey = 1234;\n" +msgid "" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" int qid, opt;\n" +" int mode = 0; /* 1 = send, 2 = receive */\n" +" int msgtype = 1;\n" +" int msgkey = 1234;\n" +msgstr "" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" int qid, opt;\n" +" int mode = 0; /* 1 = send, 2 = receive */\n" +" int msgtype = 1;\n" +" int msgkey = 1234;\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, fuzzy, no-wrap +#| msgid "" +#| " while ((opt = getopt(argc, argv, \"srt:k:\")) != -1) {\n" +#| " switch (opt) {\n" +#| " case \\(aqs\\(aq:\n" +#| " mode = 1;\n" +#| " break;\n" +#| " case \\(aqr\\(aq:\n" +#| " mode = 2;\n" +#| " break;\n" +#| " case \\(aqt\\(aq:\n" +#| " msgtype = atoi(optarg);\n" +#| " if (msgtype E<lt>= 0)\n" +#| " usage(argv[0], \"-t option must be greater than 0\\en\");\n" +#| " break;\n" +#| " case \\(aqk\\(aq:\n" +#| " msgkey = atoi(optarg);\n" +#| " break;\n" +#| " default:\n" +#| " usage(argv[0], \"Unrecognized option\\en\");\n" +#| " }\n" +#| " }\n" +msgid "" +" while ((opt = getopt(argc, argv, \"srt:k:\")) != -1) {\n" +" switch (opt) {\n" +" case \\[aq]s\\[aq]:\n" +" mode = 1;\n" +" break;\n" +" case \\[aq]r\\[aq]:\n" +" mode = 2;\n" +" break;\n" +" case \\[aq]t\\[aq]:\n" +" msgtype = atoi(optarg);\n" +" if (msgtype E<lt>= 0)\n" +" usage(argv[0], \"-t option must be greater than 0\\en\");\n" +" break;\n" +" case \\[aq]k\\[aq]:\n" +" msgkey = atoi(optarg);\n" +" break;\n" +" default:\n" +" usage(argv[0], \"Unrecognized option\\en\");\n" +" }\n" +" }\n" +msgstr "" +" while ((opt = getopt(argc, argv, \"srt:k:\")) != -1) {\n" +" switch (opt) {\n" +" case \\(aqs\\(aq:\n" +" mode = 1;\n" +" break;\n" +" case \\(aqr\\(aq:\n" +" mode = 2;\n" +" break;\n" +" case \\(aqt\\(aq:\n" +" msgtype = atoi(optarg);\n" +" if (msgtype E<lt>= 0)\n" +" usage(argv[0], \"-t option must be greater than 0\\en\");\n" +" break;\n" +" case \\(aqk\\(aq:\n" +" msgkey = atoi(optarg);\n" +" break;\n" +" default:\n" +" usage(argv[0], \"Unrecognized option\\en\");\n" +" }\n" +" }\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" if (mode == 0)\n" +" usage(argv[0], \"must use either -s or -r option\\en\");\n" +msgstr "" +" if (mode == 0)\n" +" usage(argv[0], \"must use either -s or -r option\\en\");\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid " qid = msgget(msgkey, IPC_CREAT | 0666);\n" +msgstr " qid = msgget(msgkey, IPC_CREAT | 0666);\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" if (qid == -1) {\n" +" perror(\"msgget\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +msgstr "" +" if (qid == -1) {\n" +" perror(\"msgget\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" if (mode == 2)\n" +" get_msg(qid, msgtype);\n" +" else\n" +" send_msg(qid, msgtype);\n" +msgstr "" +" if (mode == 2)\n" +" get_msg(qid, msgtype);\n" +" else\n" +" send_msg(qid, msgtype);\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" +" exit(EXIT_SUCCESS);\n" +"}\n" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "2023-05-03" +msgstr "3 maio 2023" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages 6.05.01" +msgstr "Linux man-pages 6.05.01" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "2023-03-30" +msgstr "30 março 2023" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "Linux man-pages 6.04" +msgstr "Linux man-pages 6.04" |