Browse Source

Restoring authorship annotation for <vskipin@yandex-team.ru>. Commit 1 of 2.

vskipin 3 years ago
parent
commit
4e4b78bd7b

+ 3 - 3
build/rules/contrib_restricted.policy

@@ -179,9 +179,9 @@ ALLOW library/cpp/testing/gmock -> contrib/restricted/googletest/googlemock
 # allow usage of MIT part
 ALLOW .* -> contrib/restricted/librseq/headeronly
 
-# we use nfs-ganesha for Network File Store gateway
-ALLOW cloud/filestore/gateway/nfs -> contrib/restricted/nfs_ganesha
-
+# we use nfs-ganesha for Network File Store gateway 
+ALLOW cloud/filestore/gateway/nfs -> contrib/restricted/nfs_ganesha 
+ 
 ALLOW yandex_io -> contrib/restricted/patched/hostap_client
 
 # Default policies:

+ 2 - 2
build/sysincl/ibdrv.yml

@@ -6,7 +6,7 @@
 
 - source_filter: "^contrib/libs/ibdrv"
   includes:
-    - infiniband/sa.h
+    - infiniband/sa.h 
     - infiniband/verbs.h
-    - infiniband/verbs_api.h
+    - infiniband/verbs_api.h 
     - rdma/rdma_cma.h

+ 1 - 1
build/sysincl/linux.yml

@@ -6,7 +6,7 @@
   - argp.h
   - argz.h
   - bfd.h
-  - bits/endian.h
+  - bits/endian.h 
   - bits/fenv.h
   - bits/libc-lock.h
   - bits/reg.h

+ 5 - 5
build/sysincl/misc.yml

@@ -417,14 +417,14 @@
     - nlist.h: contrib/restricted/libelf/lib/nlist.h
     - sys_elf.h: contrib/restricted/libelf/lib/sys_elf.h
 
-- source_filter: "^contrib/libs/dpdk/"
+- source_filter: "^contrib/libs/dpdk/" 
   includes:
     - process.h: contrib/libs/dpdk/drivers/bus/dpaa/include/process.h
 
-- source_filter: "^contrib/libs/dpdk_arm64/"
-  includes:
-    - process.h: contrib/libs/dpdk_arm64/drivers/bus/dpaa/include/process.h
-
+- source_filter: "^contrib/libs/dpdk_arm64/" 
+  includes: 
+    - process.h: contrib/libs/dpdk_arm64/drivers/bus/dpaa/include/process.h 
+ 
 - source_filter: "^contrib/libs/usrsctp/"
   includes:
     - netinet/sctp_uio.h: contrib/libs/usrsctp/usrsctplib/netinet/sctp_uio.h

+ 11 - 11
contrib/libs/grpc/src/core/lib/iomgr/executor.cc

@@ -85,8 +85,8 @@ const EnqueueFunc
                              {{default_enqueue_short, default_enqueue_long},
                               {resolver_enqueue_short, resolver_enqueue_long}};
 
-size_t threads_limit_ = 0;
-
+size_t threads_limit_ = 0; 
+ 
 }  // namespace
 
 TraceFlag executor_trace(false, "executor");
@@ -95,17 +95,17 @@ Executor::Executor(const char* name) : name_(name) {
   adding_thread_lock_ = GPR_SPINLOCK_STATIC_INITIALIZER;
   gpr_atm_rel_store(&num_threads_, 0);
   max_threads_ = GPR_MAX(1, 2 * gpr_cpu_num_cores());
-  if (threads_limit_) {
-    max_threads_ = GPR_MIN(max_threads_, threads_limit_);
-  }
-}
-
-size_t Executor::SetThreadsLimit(size_t count) {
-  size_t prev = threads_limit_;
-  threads_limit_ = count;
-  return prev;
+  if (threads_limit_) { 
+    max_threads_ = GPR_MIN(max_threads_, threads_limit_); 
+  } 
 }
 
+size_t Executor::SetThreadsLimit(size_t count) { 
+  size_t prev = threads_limit_; 
+  threads_limit_ = count; 
+  return prev; 
+} 
+ 
 void Executor::Init() { SetThreading(true); }
 
 size_t Executor::RunClosures(const char* executor_name,

+ 3 - 3
contrib/libs/grpc/src/core/lib/iomgr/executor.h

@@ -103,9 +103,9 @@ class Executor {
   // Return if the DEFAULT executor is threaded
   static bool IsThreadedDefault();
 
-  // Set the maximum numbers of executor treads
-  static size_t SetThreadsLimit(size_t count);
-
+  // Set the maximum numbers of executor treads 
+  static size_t SetThreadsLimit(size_t count); 
+ 
  private:
   static size_t RunClosures(const char* executor_name, grpc_closure_list list);
   static void ThreadMain(void* arg);

+ 21 - 21
contrib/libs/libaio/io_cancel.c

@@ -1,22 +1,22 @@
-/* io_cancel.c
-   libaio Linux async I/O interface
-   Copyright 2002 Red Hat, Inc.
-
-   This library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2 of the License, or (at your option) any later version.
-
-   This library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with this library; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
- */
-#include "libaio.h"
-#include "syscall.h"
-
+/* io_cancel.c 
+   libaio Linux async I/O interface 
+   Copyright 2002 Red Hat, Inc. 
+ 
+   This library is free software; you can redistribute it and/or 
+   modify it under the terms of the GNU Lesser General Public 
+   License as published by the Free Software Foundation; either 
+   version 2 of the License, or (at your option) any later version. 
+ 
+   This library is distributed in the hope that it will be useful, 
+   but WITHOUT ANY WARRANTY; without even the implied warranty of 
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+   Lesser General Public License for more details. 
+ 
+   You should have received a copy of the GNU Lesser General Public 
+   License along with this library; if not, write to the Free Software 
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA 
+ */ 
+#include "libaio.h" 
+#include "syscall.h" 
+ 
 io_syscall3(int, io_cancel, io_cancel, io_context_t, ctx, struct iocb *, iocb, struct io_event *, event)

+ 23 - 23
contrib/libs/libaio/io_destroy.c

@@ -1,23 +1,23 @@
-/* io_destroy
-   libaio Linux async I/O interface
-   Copyright 2002 Red Hat, Inc.
-
-   This library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2 of the License, or (at your option) any later version.
-
-   This library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with this library; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
- */
-#include <errno.h>
-#include "libaio.h"
-#include "syscall.h"
-
-io_syscall1(int, io_destroy, io_destroy, io_context_t, ctx)
+/* io_destroy 
+   libaio Linux async I/O interface 
+   Copyright 2002 Red Hat, Inc. 
+ 
+   This library is free software; you can redistribute it and/or 
+   modify it under the terms of the GNU Lesser General Public 
+   License as published by the Free Software Foundation; either 
+   version 2 of the License, or (at your option) any later version. 
+ 
+   This library is distributed in the hope that it will be useful, 
+   but WITHOUT ANY WARRANTY; without even the implied warranty of 
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+   Lesser General Public License for more details. 
+ 
+   You should have received a copy of the GNU Lesser General Public 
+   License along with this library; if not, write to the Free Software 
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA 
+ */ 
+#include <errno.h> 
+#include "libaio.h" 
+#include "syscall.h" 
+ 
+io_syscall1(int, io_destroy, io_destroy, io_context_t, ctx) 

+ 54 - 54
contrib/libs/libaio/io_getevents.c

@@ -1,56 +1,56 @@
-/* io_getevents.c
-   libaio Linux async I/O interface
-   Copyright 2002 Red Hat, Inc.
-
-   This library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2 of the License, or (at your option) any later version.
-
-   This library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with this library; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
- */
-#include "libaio.h"
-#include <errno.h>
-#include <stdlib.h>
-#include <time.h>
-#include "syscall.h"
-
-io_syscall5(int, __io_getevents_0_4, io_getevents, io_context_t, ctx, long, min_nr, long, nr, struct io_event *, events, struct timespec *, timeout)
-
-#define AIO_RING_MAGIC                  0xa10a10a1
-
-/* Ben will hate me for this */
-struct aio_ring {
-	unsigned        id;     /* kernel internal index number */
-	unsigned        nr;     /* number of io_events */
-	unsigned        head;
-	unsigned        tail;
-
-	unsigned        magic;
-	unsigned        compat_features;
-	unsigned        incompat_features;
-	unsigned        header_length;  /* size of aio_ring */
-};
-
+/* io_getevents.c 
+   libaio Linux async I/O interface 
+   Copyright 2002 Red Hat, Inc. 
+ 
+   This library is free software; you can redistribute it and/or 
+   modify it under the terms of the GNU Lesser General Public 
+   License as published by the Free Software Foundation; either 
+   version 2 of the License, or (at your option) any later version. 
+ 
+   This library is distributed in the hope that it will be useful, 
+   but WITHOUT ANY WARRANTY; without even the implied warranty of 
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+   Lesser General Public License for more details. 
+ 
+   You should have received a copy of the GNU Lesser General Public 
+   License along with this library; if not, write to the Free Software 
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA 
+ */ 
+#include "libaio.h" 
+#include <errno.h> 
+#include <stdlib.h> 
+#include <time.h> 
+#include "syscall.h" 
+ 
+io_syscall5(int, __io_getevents_0_4, io_getevents, io_context_t, ctx, long, min_nr, long, nr, struct io_event *, events, struct timespec *, timeout) 
+ 
+#define AIO_RING_MAGIC                  0xa10a10a1 
+ 
+/* Ben will hate me for this */ 
+struct aio_ring { 
+	unsigned        id;     /* kernel internal index number */ 
+	unsigned        nr;     /* number of io_events */ 
+	unsigned        head; 
+	unsigned        tail; 
+ 
+	unsigned        magic; 
+	unsigned        compat_features; 
+	unsigned        incompat_features; 
+	unsigned        header_length;  /* size of aio_ring */ 
+}; 
+ 
 
 int io_getevents(io_context_t ctx, long min_nr, long nr, struct io_event * events, struct timespec * timeout)
-{
-	struct aio_ring *ring;
-	ring = (struct aio_ring*)ctx;
-	if (ring==NULL || ring->magic != AIO_RING_MAGIC)
-		goto do_syscall;
-	if (timeout!=NULL && timeout->tv_sec == 0 && timeout->tv_nsec == 0) {
-		if (ring->head == ring->tail)
-			return 0;
-	}
-
-do_syscall:
-	return __io_getevents_0_4(ctx, min_nr, nr, events, timeout);
-}
+{ 
+	struct aio_ring *ring; 
+	ring = (struct aio_ring*)ctx; 
+	if (ring==NULL || ring->magic != AIO_RING_MAGIC) 
+		goto do_syscall; 
+	if (timeout!=NULL && timeout->tv_sec == 0 && timeout->tv_nsec == 0) { 
+		if (ring->head == ring->tail) 
+			return 0; 
+	} 
+ 
+do_syscall: 
+	return __io_getevents_0_4(ctx, min_nr, nr, events, timeout); 
+} 

+ 33 - 33
contrib/libs/libaio/io_queue_init.c

@@ -1,33 +1,33 @@
-/* io_queue_init.c
-   libaio Linux async I/O interface
-   Copyright 2002 Red Hat, Inc.
-
-   This library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2 of the License, or (at your option) any later version.
-
-   This library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with this library; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
- */
-#include "libaio.h"
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <errno.h>
-
-#include "syscall.h"
-
-int io_queue_init(int maxevents, io_context_t *ctxp)
-{
-	if (maxevents > 0) {
-		*ctxp = NULL;
-		return io_setup(maxevents, ctxp);
-	}
-	return -EINVAL;
-}
+/* io_queue_init.c 
+   libaio Linux async I/O interface 
+   Copyright 2002 Red Hat, Inc. 
+ 
+   This library is free software; you can redistribute it and/or 
+   modify it under the terms of the GNU Lesser General Public 
+   License as published by the Free Software Foundation; either 
+   version 2 of the License, or (at your option) any later version. 
+ 
+   This library is distributed in the hope that it will be useful, 
+   but WITHOUT ANY WARRANTY; without even the implied warranty of 
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+   Lesser General Public License for more details. 
+ 
+   You should have received a copy of the GNU Lesser General Public 
+   License along with this library; if not, write to the Free Software 
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA 
+ */ 
+#include "libaio.h" 
+#include <sys/types.h> 
+#include <sys/stat.h> 
+#include <errno.h> 
+ 
+#include "syscall.h" 
+ 
+int io_queue_init(int maxevents, io_context_t *ctxp) 
+{ 
+	if (maxevents > 0) { 
+		*ctxp = NULL; 
+		return io_setup(maxevents, ctxp); 
+	} 
+	return -EINVAL; 
+} 

Some files were not shown because too many files changed in this diff