- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 138 for newRule (0.26 sec)
-
src/runtime/debug/stack.go
return err } runtime.KeepAlive(f) // prevent finalization before dup fd = uintptr(fd2) } if prev := runtime_setCrashFD(fd); prev != ^uintptr(0) { // We use NewFile+Close because it is portable // unlike syscall.Close, whose parameter type varies. os.NewFile(prev, "").Close() // ignore error } return nil } //go:linkname runtime_setCrashFD runtime.setCrashFD
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 15:19:04 UTC 2024 - 3.2K bytes - Viewed (0) -
build-logic/packaging/src/main/kotlin/gradlebuild/instrumentation/transforms/InstrumentationMetadataTransform.kt
private fun MetadataFileChange.writeChange(output: File) { when (this) { is MetadataNotChanged -> Unit is MetadataRemoved -> output.delete() is MetadataModified -> this.newFile.copyTo(output, overwrite = true) } } private fun writeSuperTypes(superTypesFile: File, superTypes: Properties) { superTypesFile.writer().use {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 19 14:00:26 UTC 2024 - 5.8K bytes - Viewed (0) -
src/cmd/internal/buildid/note.go
func readELF(name string, f *os.File, data []byte) (buildid string, err error) { // Assume the note content is in the data, already read. // Rewrite the ELF header to set shoff and shnum to 0, so that we can pass // the data to elf.NewFile and it will decode the Prog list but not // try to read the section headers and the string table from disk. // That's a waste of I/O when all we care about is the Prog list // and the one ELF note.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 20:40:42 UTC 2023 - 6K bytes - Viewed (0) -
pkg/test/framework/components/gcemetadata/gcemetadata.go
// Cluster to be used in a multicluster environment Cluster cluster.Cluster } // New returns a new instance of stackdriver. func New(ctx resource.Context, c Config) (i Instance, err error) { return newKube(ctx, c) } // NewOrFail returns a new GCE Metadata Server instance or fails test. func NewOrFail(t test.Failer, ctx resource.Context, c Config) Instance { t.Helper() i, err := New(ctx, c) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 04 22:47:52 UTC 2023 - 1.8K bytes - Viewed (0) -
testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/AbstractScriptCachingIntegrationTest.kt
gradleExecuterFor( arrayOf( "--debug", // Required to verify script compilation via log messages "-Dorg.gradle.internal.operations.trace=${newFile("operation-trace")}", *arguments ) )
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 11:33:23 UTC 2024 - 1.9K bytes - Viewed (0) -
src/debug/pe/file.go
f.closer = nil } return err } // TODO(brainman): add Load function, as a replacement for NewFile, that does not call removeAuxSymbols (for performance) // NewFile creates a new [File] for accessing a PE binary in an underlying reader. func NewFile(r io.ReaderAt) (*File, error) { f := new(File) sr := io.NewSectionReader(r, 0, 1<<63-1) var dosheader [96]byte if _, err := r.ReadAt(dosheader[0:], 0); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 17.2K bytes - Viewed (0) -
platforms/software/platform-base/src/integTest/groovy/org/gradle/api/plugins/BasePluginIntegrationTest.groovy
def "clean failure message indicates file"() { given: buildFile << """ apply plugin: 'base' """ and: def channel = new RandomAccessFile(file("build/newFile").createFile(), "rw").channel def lock = channel.lock() when: fails "clean" then: failure.assertThatCause(containsString("Unable to delete directory '${file('build')}'"))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 28 23:38:57 UTC 2024 - 6.9K bytes - Viewed (0) -
internal/logger/logrotate.go
Level: ErrorKind, Message: msg, Time: time.Now().UTC(), Trace: &log.Trace{Message: msg}, }) } } path := filepath.Join(w.opts.Directory, w.opts.FileNameFunc()) f, err := newFile(path) if err != nil { return fmt.Errorf("unable to create new file at %v: %w", path, err) } w.f = f return nil }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.8K bytes - Viewed (0) -
src/os/file_plan9.go
func (f *File) Fd() uintptr { if f == nil { return ^(uintptr(0)) } return uintptr(f.fd) } // NewFile returns a new File with the given file descriptor and // name. The returned value will be nil if fd is not a valid file // descriptor. func NewFile(fd uintptr, name string) *File { fdi := int(fd) if fdi < 0 { return nil } f := &File{&file{fd: fdi, name: name}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:35:30 UTC 2024 - 16K bytes - Viewed (0) -
src/os/signal/signal_cgo_test.go
// we must ignore SIGTTOU. We are also an orphaned process // group (see above), so we must mask SIGTTOU to be eligible to // become foreground at all. signal.Ignore(syscall.SIGTTOU) pty := os.NewFile(ptyFD, "pty") controlW := os.NewFile(controlFD, "control-pipe") var ( ctx = context.Background() cmdArgs = []string{"-test.run=^TestTerminalSignal$"} ) if deadline, ok := t.Deadline(); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 10:09:15 UTC 2024 - 10.7K bytes - Viewed (0)