Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 195 for strdup (0.16 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      fstat(fd, &st);
      if (S_ISDIR(st.st_mode)) {
        TF_SetStatus(status, TF_FAILED_PRECONDITION, "path is a directory");
        close(fd);
        return;
      }
    
      file->plugin_file = new tf_random_access_file::PosixFile({strdup(path), fd});
      TF_SetStatus(status, TF_OK, "");
    }
    
    static void NewWritableFile(const TF_Filesystem* filesystem, const char* path,
                                TF_WritableFile* file, TF_Status* status) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      int num_entries = childrens.size();
      *entries = static_cast<char**>(
          plugin_memory_allocate(num_entries * sizeof((*entries)[0])));
      for (int i = 0; i < num_entries; i++)
        (*entries)[i] = strdup(childrens[i].c_str());
      TF_SetStatus(status, TF_OK, "");
      return num_entries;
    }
    
    void Stat(const TF_Filesystem* filesystem, const char* path,
              TF_FileStatistics* stats, TF_Status* status) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/modular_filesystem.cc

        return FileSystem::FilesExist(files, token, status);
    
      std::vector<char*> translated_names;
      translated_names.reserve(files.size());
      for (int i = 0; i < files.size(); i++)
        translated_names.push_back(strdup(TranslateName(files[i]).c_str()));
    
      bool result;
      if (status == nullptr) {
        result = ops_->paths_exist(filesystem_.get(), translated_names.data(),
                                   files.size(), nullptr);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  4. cmd/server-startup-msg.go

    	formatStr := fmt.Sprintf("%ds", strLen+padding)
    	return "%" + formatStr
    }
    
    // Prints the formatted startup message.
    func printStartupMessage(apiEndpoints []string, err error) {
    	logger.Info(color.Bold(MinioBannerName))
    	if err != nil {
    		if globalConsoleSys != nil {
    			globalConsoleSys.Send(GlobalContext, fmt.Sprintf("Server startup failed with '%v', some features may be missing", err))
    		}
    	}
    
    	if !globalSubnetConfig.Registered() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  5. cmd/server-startup-msg_test.go

    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatal(err)
    	}
    
    	apiEndpoints := []string{"http://127.0.0.1:9000"}
    	printCLIAccessMsg(apiEndpoints[0], "myminio")
    }
    
    // Test print startup message.
    func TestPrintStartupMessage(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 20 00:53:08 GMT 2023
    - 4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/AndroidIncompatible.java

     *       that we could probably work around. Or we could manually strip the test from open-source
     *       Guava while continuing to run it internally, as we do with many other tests. This would
     *       suffice because we our Android users and tests are using the open-source version, which
     *       would no longer have the problematic test. But why bother when we can instead strip it with
     *       a more precisely named annotation?
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Jul 07 15:40:13 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/AndroidIncompatible.java

     *       that we could probably work around. Or we could manually strip the test from open-source
     *       Guava while continuing to run it internally, as we do with many other tests. This would
     *       suffice because we our Android users and tests are using the open-source version, which
     *       would no longer have the problematic test. But why bother when we can instead strip it with
     *       a more precisely named annotation?
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Jul 07 15:40:13 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  8. tests/test_router_events.py

            return {"message": "Hello World"}
    
        @app.on_event("startup")
        def app_startup() -> None:
            state.app_startup = True
    
        @app.on_event("shutdown")
        def app_shutdown() -> None:
            state.app_shutdown = True
    
        router = APIRouter()
    
        @router.on_event("startup")
        def router_startup() -> None:
            state.router_startup = True
    
        @router.on_event("shutdown")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/events.md

    !!! warning
        The recommended way to handle the *startup* and *shutdown* is using the `lifespan` parameter of the `FastAPI` app as described above. If you provide a `lifespan` parameter, `startup` and `shutdown` event handlers will no longer be called. It's all `lifespan` or all events, not both.
    
        You can probably skip this part.
    
    There's an alternative way to define this logic to be executed during *startup* and during *shutdown*.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  10. docs/en/docs/deployment/server-workers.md

    [19511] [INFO] Waiting for application startup.
    [19511] [INFO] Application startup complete.
    [19513] [INFO] Started server process [19513]
    [19513] [INFO] Waiting for application startup.
    [19513] [INFO] Application startup complete.
    [19514] [INFO] Started server process [19514]
    [19514] [INFO] Waiting for application startup.
    [19514] [INFO] Application startup complete.
    [19515] [INFO] Started server process [19515]
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.1K bytes
    - Viewed (0)
Back to top